JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
24.52k stars 3.16k forks source link

[BUG] Resize operation in CRAFT post processing #1300

Open ash2703 opened 2 months ago

ash2703 commented 2 months ago

This PR: https://github.com/JaidedAI/EasyOCR/pull/1050 modifies the interpolation to use Image.Resampling.LANCZOS Although the resize happens using cv2.resize which does not treat it as LANCZOS rather the enum evaluates to constant 1 which is CV_INTER_LINEAR

https://github.com/npinto/opencv/blob/master/modules/imgproc/include/opencv2/imgproc/types_c.h#L318C1-L325C3

Is this intended or atleast known?