I am writing a tutorial on implementing a simple OCR API in Flask using Tesseract. So far this has been surprising, but currently I am facing some strange problem.
Here is what we see:
(Pdb) ENGINE.process_image(image)
*** TesseractError: (-11, 'index >= 0 && index < size_used_:Error:Assert failed:in file ../ccutil/genericvector.h, line 512')
Now I have tried the following. I believe this is a simple installation problem ...
Running tesseract -v gets me:
`` `(codys_app) bobby @devbox: ~ / ocr / flask_server $ tesseract -v tesseract 3.02.02 leptonica-1,70 libjpeg 8d: libpng 1.2.50: libtiff 4.0.3: zlib 1.2.8
`` ``
I tried to remove it and reinstall via apt-get and rebuild it from the source. I was not lucky.
My TESSDATA env var TESSDATA_PREFIX=/usr/local/share/
?
,
https://github.com/rhgraysonii/ocr_tutorial
. , OCR
, , .
!