From 47683b9e38ba974ce25162307b59622557c7acdd Mon Sep 17 00:00:00 2001 From: whjdark Date: Wed, 7 Sep 2022 13:53:30 +0800 Subject: [PATCH] new table gt format --- PPOCRLabel/PPOCRLabel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 83be574a..390c2b15 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -2506,7 +2506,7 @@ class MainWindow(QMainWindow): 'tokens': tokens, 'bbox': anno['points'] }) - + # 构造标注信息 html = { 'structure': { @@ -2518,8 +2518,8 @@ class MainWindow(QMainWindow): 'filename': os.path.basename(image_path), 'html': html } + # 重构HTML d['gt'] = rebuild_html_from_ppstructure_label(d) - # imgid += 1 fid.write('{}\n'.format( json.dumps( d, ensure_ascii=False))) -- GitLab