EasyOCR
EasyOCR copied to clipboard
No module named 'easyocr'
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
CODE: reader = easyocr.Reader(['en'],gpu=False) result = reader.readtext(img) print(result)
create virtual env & install requirement.txt
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