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.96k stars 3.13k forks source link

No module named 'easyocr' #807

Open ammar3010 opened 2 years ago

ammar3010 commented 2 years ago

I installed torch and torch vision using commands from pytorch.ord i.e pip3 install torch torchvision torchaudio I installed easyocr using pip install easyocr But while running the script I am having this error PS C:\Users\SAMSUNG\Desktop\Detection> python -u "c:\Users\SAMSUNG\Desktop\Detection\yolov5\ocr.py" Traceback (most recent call last): File "c:\Users\SAMSUNG\Desktop\Detection\yolov5\ocr.py", line 2, in import easyocr ModuleNotFoundError: No module named 'easyocr'

CODE: reader = easyocr.Reader(['en'],gpu=False) result = reader.readtext(img) print(result)

ghost commented 2 years ago

create virtual env & install requirement.txt

CJ-Uy commented 2 years ago

I had the same problem and figured it out after a few painful hours. The problem was the new opencv update so you need to change the version to a lower one

pip install opencv-python==4.5.5.64

or if your using pipenv

pipenv install opencv-python==4.5.5.64