mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
update doc
This commit is contained in:
+6
-6
@@ -674,12 +674,6 @@ def main():
|
||||
result_sorted = sorted_layout_boxes(result_cp, w)
|
||||
all_res += result_sorted
|
||||
|
||||
for item in result:
|
||||
item.pop('img')
|
||||
item.pop('res')
|
||||
logger.info(item)
|
||||
logger.info('result save to {}'.format(args.output))
|
||||
|
||||
if args.recovery and all_res != []:
|
||||
try:
|
||||
from ppstructure.recovery.recovery_to_doc import convert_info_docx
|
||||
@@ -690,3 +684,9 @@ def main():
|
||||
"error in layout recovery image:{}, err msg: {}".format(
|
||||
img_name, ex))
|
||||
continue
|
||||
|
||||
for item in all_res:
|
||||
item.pop('img')
|
||||
item.pop('res')
|
||||
logger.info(item)
|
||||
logger.info('result save to {}'.format(args.output))
|
||||
|
||||
Reference in New Issue
Block a user