PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

未来有可能开放自定义rec_image_shape参数吗

Open VieteChen opened this issue 2 years ago • 2 comments

貌似在源码里写死了,我图片是56*56的,试了一下训练配置文件改为image_shape: [3, 48, 48],源码改为params.rec_image_shape = "3, 48, 48",又快又准。但项目不能改源码,未来有可能开放自定义rec_image_shape参数吗 if params.ocr_version == 'PP-OCRv3': params.rec_image_shape = "3, 48, 320" else: params.rec_image_shape = "3, 32, 320"

VieteChen avatar Sep 19 '22 10:09 VieteChen

whl包的话,你直接在初始化OCR对象的时候,指定rec_image_shape即可

littletomatodonkey avatar Sep 20 '22 07:09 littletomatodonkey

whl包的话,你直接在初始化OCR对象的时候,指定rec_image_shape即可

传参没用,源码写死了。 image image 但貌似用这种奇伎淫巧能改:: ocr.args.rec_image_shape = '3, 48, 48' ocr.text_recognizer = TextRecognizer(ocr.args)

另外请问是否有直接使用TextRecognizer识别的demo

VieteChen avatar Sep 20 '22 07:09 VieteChen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 07 '23 08:07 github-actions[bot]