Discussion:
[tesseract-ocr] Tesseract 4.0 Win64 LSTM release mode fails
THintz
2017-11-01 19:28:12 UTC
Permalink
The current tesseract 4.0 source reports errors and produces no output.
The same source built in debug mode works without complaint. In both cases
"best" was used for eng.traindata.

D:\Petri\NovTesseract\tesseract\win64\bin\Release>tesseract 0.tif output
--oem 1 -l eng --psm 6
Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
Page 1
Error in pixCreateHeader: height must be > 0
Error in pixCreateNoInit: pixd not made
Error in pixCreate: pixd not made
Error in pixClipRectangle: pixd not made
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+***@googlegroups.com.
To post to this group, send email to tesseract-***@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/35a58524-0418-415a-b379-590800426794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
THintz
2017-11-01 20:48:43 UTC
Permalink
I traced the problem to the project's Inline Function Expansion setting of
"Any Suitable (/Ob2)" applied when release mode is selected.

This is with the current patches of Visual Studio 2017. I don't know
whether or not older Visual Studios have the same problem.
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+***@googlegroups.com.
To post to this group, send email to tesseract-***@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/e343de8c-c2d6-4ffa-a398-163c27bda169%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...