PaddleOCR
PaddleOCR copied to clipboard
limit maximum resizing ratio
limit max_wh_ratio as the ratio can be higher than max_wh_ratio.
resize_shape = (3,32, 320)
wrong = np.zeros((32, 325, 3))
y= resize_norm_img_chinese(wrong, resize_shape)[0]
y.shape = (3, 32, 325)
Thanks for your contribution!
方便提交到dygraph分支吗?然后cp到2.6分支
提交在dygraph #7381