提交 b657a3a6 编写于 作者: qq_25193841's avatar qq_25193841

change label filename

change label filename
上级 f1d0c8a2
......@@ -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>")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册