Segmentation fault when using Tesserocr in Docker
GitHub Issue #55 on the tesserocr project on seems to be similar to your problem. Have you tried the fix suggested here?
I faced the same problem. To solve it, first I ran Docker container with tesserocr installed. Inside the container, I ran python and tried this:
from tesserocr import PyTessBaseAPI
... and got this error:
!strcmp(locale, "C"):Error:Assert failed:in file baseapi.cpp
Which lead me here.
Suggested answer:
import localelocale.setlocale(locale.LC_ALL, 'C')import tesserocr
fixed the error.