|
@@ -179,10 +179,12 @@ def table(image: TableInfo):
|
|
|
table=Table(html,img)
|
|
|
if table.check_html():
|
|
|
res, html = table_res(table.img)
|
|
|
- cv2.imwrite('table-out.jpg', table.img)
|
|
|
- print(table.html_arr)
|
|
|
- print(table.total)
|
|
|
- print(table.empty)
|
|
|
+ # cv2.imwrite('table-out.jpg', table.img)
|
|
|
+ with open('./html_arr.txt', 'w') as f:
|
|
|
+ f.write(str(table.html_arr))
|
|
|
+ # print(table.html_arr)
|
|
|
+ # print(table.total)
|
|
|
+ # print(table.empty)
|
|
|
|
|
|
if html:
|
|
|
post_hander = PostHandler(html)
|