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
23.77k stars 3.12k forks source link

module 'cv2' has no attribute 'imdecode' #702

Open yourstar9 opened 2 years ago

yourstar9 commented 2 years ago

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 commented 2 years ago

how can i fix it?

yourstar9 commented 2 years ago

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

rkcosmos commented 2 years ago

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

ThinkSYR commented 2 years ago

opencv-contrib-python-4.1.2.30 may help you