PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

limit maximum resizing ratio

Open jinmingteo opened this issue 2 years ago • 2 comments

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)

jinmingteo avatar Aug 05 '22 04:08 jinmingteo

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 05 '22 04:08 CLAassistant

Thanks for your contribution!

paddle-bot[bot] avatar Aug 05 '22 04:08 paddle-bot[bot]

方便提交到dygraph分支吗?然后cp到2.6分支

andyjiang1116 avatar Aug 26 '22 09:08 andyjiang1116

提交在dygraph #7381

jinmingteo avatar Aug 26 '22 14:08 jinmingteo