commit
1f3ca7a552
PPOCRLabel
|
@ -2382,7 +2382,7 @@ class MainWindow(QMainWindow):
|
|||
|
||||
# save dict
|
||||
html = {'structure': {'tokens': token_list}, 'cell': cells}
|
||||
json_results.append({'filename': filename, 'split': split, 'imgid': imgid, 'html': html})
|
||||
json_results.append({'filename': os.path.basename(image_path), 'split': split, 'imgid': imgid, 'html': html})
|
||||
imgid += 1
|
||||
|
||||
# save json
|
||||
|
|
|
@ -225,7 +225,7 @@ def convert_token(html_list):
|
|||
if 'rowspan' in col:
|
||||
_, n = col.split('rowspan=')
|
||||
token_list.append(" rowspan=\"{}\"".format(n))
|
||||
token_list.append(">")
|
||||
token_list.extend([">", "</td>"])
|
||||
token_list.append("</tr>")
|
||||
token_list.append("</tbody>")
|
||||
|
||||
|
|
Loading…
Reference in New Issue