EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

module 'cv2' has no attribute 'imdecode'

Open yourstar9 opened this issue 2 years ago • 4 comments

I can't useing easyocr to read text in image , img = cv2.imdecode(nparr, cv2.IMREAD_COLOR) AttributeError: module 'cv2' has no attribute 'imdecode'

yourstar9 avatar Apr 07 '22 12:04 yourstar9

how can i fix it?

yourstar9 avatar Apr 07 '22 12:04 yourstar9

when version is 1.4.0,it can work,but update 4.5, i can't use

yourstar9 avatar Apr 07 '22 12:04 yourstar9

it has to do with opencv version. I believe the last update (1.4.2) should fix this.

rkcosmos avatar Apr 09 '22 07:04 rkcosmos

opencv-contrib-python-4.1.2.30 may help you

ThinkSYR avatar May 14 '22 03:05 ThinkSYR