Tesseract 4.0 Win64 LSTM release mode fails

74 views
Skip to first unread message

THintz

unread,
Nov 1, 2017, 3:28:12 PM11/1/17
to tesseract-ocr
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

THintz

unread,
Nov 1, 2017, 4:48:43 PM11/1/17
to tesseract-ocr
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.
Reply all
Reply to author
Forward
0 new messages