From 87562538000484abc18a99f33e12d0d39c682c53 Mon Sep 17 00:00:00 2001 From: an1018 <614803115@qq.com> Date: Wed, 24 Aug 2022 10:07:30 +0800 Subject: [PATCH] update doc --- paddleocr.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/paddleocr.py b/paddleocr.py index 54ed6a02..1a236f24 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -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)) -- GitLab