From 254786752a2659e184822b4b2de5637a05236590 Mon Sep 17 00:00:00 2001 From: andyj <87074272+andyjpaddle@users.noreply.github.com> Date: Wed, 9 Aug 2023 19:15:49 +0800 Subject: [PATCH] [BUG FIX] Fix pdf2word in whl (#10584) * add finetune en doc & test=document_fix * fix dead link & test=document_fix * fix dead link & test=document_fix * update check img * fix det res dtype * update args default type & test=document_fix * fix numpy version * support numpy1.24.0 * fix doc & test=document_fix * update doc * update doc, test=document_fix * fix pdf2word in whl, test=document_fix --- paddleocr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddleocr.py b/paddleocr.py index ca28579f..21559567 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -59,7 +59,7 @@ __all__ = [ ] SUPPORT_DET_MODEL = ['DB'] -VERSION = '2.7.0.0' +VERSION = '2.7.0.1' SUPPORT_REC_MODEL = ['CRNN', 'SVTR_LCNet'] BASE_DIR = os.path.expanduser("~/.paddleocr/") @@ -808,7 +808,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 != []: -- GitLab