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
24.71k stars 3.18k forks source link

exited with code=3221225501 #886

Open Sniper199999 opened 2 years ago

Sniper199999 commented 2 years ago

I am trying to get EasyOCR to output the "readtext" result, but the script always stops/crashes at "readtext" i.e it doesn't execute the following print("Check-2"). There is no error, so I do not what exaclty is causing the issue. Only the following exit code "3221225501". This StackOverflow says it has to do something with AVX compatibility.

My Processor: AMD FX-6300 Compatibility

I have tried installing different versions/combinations of opencv-python and easyocr with no success.

CODE:

import easyocr
import cv2

IMAGE_PATH = 'D:/OCR/ocr/try1.jpg'

reader = easyocr.Reader(['en'])
print("Check-1")
result = reader.readtext(IMAGE_PATH,paragraph="False")
print("Check-2")
print(result)

OUTPUT:

[Running] python -u "d:\OCR\ocr\test.py"
CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
Check-1

[Done] exited with code=3221225501 in 12.416 seconds

PAKAGES INSTALLED:

Package                Version
---------------------- -----------
certifi                2022.9.24
charset-normalizer     2.1.1
easyocr                1.6.2
idna                   3.4
imageio                2.22.4
networkx               2.8.8
ninja                  1.11.1
numpy                  1.23.5
opencv-python          4.5.4.60
opencv-python-headless 4.5.4.60
packaging              21.3
Pillow                 8.2.0
pip                    20.2.3
pyclipper              1.3.0.post4
pyparsing              3.0.9
python-bidi            0.4.2
PyWavelets             1.4.1
PyYAML                 6.0
requests               2.28.1
scikit-image           0.19.3
scipy                  1.9.3
setuptools             49.2.1
Shapely                1.8.5.post1
six                    1.16.0
tifffile               2022.10.10
torch                  1.13.0
torchaudio             0.13.0
torchvision            0.14.0
typing-extensions      4.4.0
urllib3                1.26.12
bartvnw commented 9 months ago

I'm running into the same issue. have you ever found a fix?

Sniper199999 commented 9 months ago

I think it was related to my processor not supporting certain AVX version. What CPU do you have in your system? Check if the AVX compatibility is there for your PC. By the way, I was not able to get this working on my FX6300 :(

bartvnw commented 9 months ago

Ah thanks, that's probably it for me too, I'm running on the Pentium Silver N6000, and I don't think that supports AVX :(
Thanks for the response!