From 1f47bca525de0dbdfd9c021d9398038a253a1574 Mon Sep 17 00:00:00 2001 From: andyj <87074272+andyjpaddle@users.noreply.github.com> Date: Wed, 9 Aug 2023 17:16:43 +0800 Subject: [PATCH] [bug fix] Fix pdf2word in whl (#10585) * add en doc * fix dead link & test=document_fix * fix dead link & test=document_fix * update args default type & test=document_fix * fix doc & test=document_fix * fix pdf2word in whl --- paddleocr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddleocr.py b/paddleocr.py index 409b9334d..a65bf5106 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -729,7 +729,7 @@ def main(): logger.info('processing {}/{} page:'.format(index + 1, len(img_paths))) new_img_name = os.path.basename(new_img_path).split('.')[0] - result = engine(new_img_path, img_idx=index) + result = engine(img, img_idx=index) save_structure_res(result, args.output, img_name, index) if args.recovery and result != []: