We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rec_image_shape
1 parent ae67d96 commit d8a20b1Copy full SHA for d8a20b1
paddleocr.py
@@ -664,6 +664,8 @@ def __init__(self, **kwargs):
664
params.rec_image_shape = "3, 48, 320"
665
else:
666
params.rec_image_shape = "3, 32, 320"
667
+ if kwargs.get("rec_image_shape") is not None:
668
+ params.rec_image_shape = kwargs.get("rec_image_shape")
669
# download model if using paddle infer
670
if not params.use_onnx:
671
maybe_download(params.det_model_dir, det_url)
0 commit comments