segmentation fault (core dumped)
ABDERRAHMANE-OUALI opened this issue ยท 10 comments
I get this error out of nowhere for some reason
python version is 3.9.4
Fatal Python error: Segmentation fault
Current thread 0x00007fdc6aa93b80 (most recent call first):
File "/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.4/lib/python3.9/site-packages/easyocr/craft_utils.py", line 31 in getDetBoxes_core
File "/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.4/lib/python3.9/site-packages/easyocr/craft_utils.py", line 236 in getDetBoxes
File "/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.4/lib/python3.9/site-packages/easyocr/detection.py", line 55 in test_net
File "/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.4/lib/python3.9/site-packages/easyocr/detection.py", line 95 in get_textbox
File "/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.4/lib/python3.9/site-packages/easyocr/easyocr.py", line 275 in detect
File "/home/linuxbrew/.linuxbrew/Cellar/python@3.9/3.9.4/lib/python3.9/site-packages/easyocr/easyocr.py", line 388 in readtext
File "/home/andruxuis/Documents/Python/doujinTranslator/main.py", line 11 in <module>
[1] 63904 segmentation fault (core dumped)
my code
import easyocr
import faulthandler
faulthandler.enable()
# this needs to run only once to load the model into memory
reader = easyocr.Reader(['ja'], gpu=False)
results = reader.readtext('./my.png', paragraph=True, detail=0)
print(results)
got the same error
the problem is the version of opencv-python-headless, SOLVED downgrading to Nov 2021 version
pip install opencv-python-headless==4.5.4.60
got the same error
the problem is the version of opencv-python-headless, SOLVED downgrading to Nov 2021 version
pip install opencv-python-headless==4.5.4.60
Same with me. It works well. Many thanks! I wasted 2days for it.
FYI, the problem is caused from:
EasyOCR/easyocr/craft_utils.py
Line 31 in ea2db54
+1
Same error, solved by downgrading opencv. Thanks a lot! @varunsingh3000 @venergiac-bh
got the same error
the problem is the version of opencv-python-headless, SOLVED downgrading to Nov 2021 version
pip install opencv-python-headless==4.5.4.60
Faced the same issue. Downgrading works like a charm !
Now that the error seems fixed on opencv side, is it possible to remove the dependency lock on the version ?
downgrading did not work in my case
Any ideas on this?