Update PPOCRLabel.py

解决了导出 JSON 文件时,L2534 将 "cells" 写成 "cell" 的问题。因如下代码取的是cells,否则在训练载入数据时会报 keyerror 的错误。
282eebbd66/ppocr/data/pubtab_dataset.py (L102)
pull/7445/head
dium6i 2022-09-01 08:45:22 +08:00 committed by GitHub
parent b2bd75a14c
commit 3273a198dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
PPOCRLabel

View File

@ -2531,7 +2531,7 @@ class MainWindow(QMainWindow):
split = 'test'
# save dict
html = {'structure': {'tokens': token_list}, 'cell': cells}
html = {'structure': {'tokens': token_list}, 'cells': cells}
json_results.append({'filename': os.path.basename(image_path), 'split': split, 'imgid': imgid, 'html': html})
imgid += 1