I am not sure whether it is my infrastucture that does this weird stuff or the tesseract-ocr itself.
Whenever i use image_to_stirng in single-process environment - the tesseract-ocr works fine. But when I spawn multiple workers with gunicorn and all of them get to do some work with ocr reading - the tesseract-ocr starts reading very poorly (and not from performance-vise, but accuracy-vise). Even after the load is done - tesseract never has the same accuracy. I need to restart all the workers in order to get tesseract working well again.
This is super weird. Maybe anyone has expirienced or heard of this issue ?