r1me / TTesseractOCR4

Object Pascal binding for tesseract-ocr - an optical character recognition engine
MIT License
145 stars 46 forks source link

floating point invalid operation as 0x75b9cbb2 #4

Closed ericduarte closed 6 years ago

ericduarte commented 6 years ago

Hello

I'm getting this error while trying to create pdf from attached file.

I'm using portuguese language.

input.zip

Thanks.

r1me commented 6 years ago

The issue is within Tesseract itself, we have already discussed it here. Please don't create issues related to this topic, until it is solved in Tesseract.

ericduarte commented 6 years ago

The error from topic you mentioned was resolved using the build you attached in it,i think this error is different and thought there might be a solution. I tried using the tesseract.exe itself to create pdf and worked OK.

Thanks .

r1me commented 6 years ago

I've wrapped call to Tesseract's PDF renderer, with custom exception mask (it will ignore division by zero) so PDF is created successfully. The issue is still in the Tesseract, most likely in C interface, while C++ methods are handled differently, thus no error with tesseract.exe. Changes: https://github.com/r1me/TTesseractOCR4/commit/dbaf2f8f96ecca1d97839f0f799d59361cb46d86 Latest Tesseract build: http://r1me.pl/tesseractocr-master.zip

ericduarte commented 6 years ago

I found this solution and would suggest to you. I'm glad you changed it, in this commit.

Thanks for attention.