EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

exited with code=3221225501

Open Sniper199999 opened this issue 3 years ago • 3 comments

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

Sniper199999 avatar Nov 20 '22 14:11 Sniper199999

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

bartvnw avatar Mar 05 '24 13:03 bartvnw

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 :(

Sniper199999 avatar Mar 05 '24 20:03 Sniper199999

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!

bartvnw avatar Mar 06 '24 10:03 bartvnw