EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

No module named 'easyocr'

Open ammar3010 opened this issue 1 year ago • 2 comments

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)

ammar3010 avatar Aug 03 '22 06:08 ammar3010

create virtual env & install requirement.txt

ghost avatar Aug 03 '22 11:08 ghost

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

CJ-Uy avatar Aug 06 '22 12:08 CJ-Uy