提交 47683b9e 编写于 作者: W whjdark

new table gt format

上级 839357fa
...@@ -2506,7 +2506,7 @@ class MainWindow(QMainWindow): ...@@ -2506,7 +2506,7 @@ class MainWindow(QMainWindow):
'tokens': tokens, 'tokens': tokens,
'bbox': anno['points'] 'bbox': anno['points']
}) })
# 构造标注信息 # 构造标注信息
html = { html = {
'structure': { 'structure': {
...@@ -2518,8 +2518,8 @@ class MainWindow(QMainWindow): ...@@ -2518,8 +2518,8 @@ class MainWindow(QMainWindow):
'filename': os.path.basename(image_path), 'filename': os.path.basename(image_path),
'html': html 'html': html
} }
# 重构HTML
d['gt'] = rebuild_html_from_ppstructure_label(d) d['gt'] = rebuild_html_from_ppstructure_label(d)
# imgid += 1
fid.write('{}\n'.format( fid.write('{}\n'.format(
json.dumps( json.dumps(
d, ensure_ascii=False))) d, ensure_ascii=False)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册