On Monday, June 13, 2016 at 10:22:32 AM UTC-4, Matthias Schneider wrote:
>
> I'm using latest dev version 3.05.00dev and I used peirick/leptonica (
> https://github.com/peirick/leptonica) to build libtesseract.dll and 
> liblept.dll with Visual Studio 2015.
> However, the resulting DLLs I'm using in Embarcadero C++ Builder 10.1 
> after I created the import libs with implib. And after doing some more 
> debugging it looks like I found the reason: in baselinedetect.cpp there is 
> this code:
>   for (int i = 0; i < positions.size(); ++i)
>      offsets.push_back(fmod(positions[i], *m_out));
>

So, this line 
https://github.com/tesseract-ocr/tesseract/blob/master/textord/baselinedetect.cpp#L761
 
 

> In some cases *m_out can be 0.0 causing fmod to return 'nan' on Visual 
> Studio projects but causing an 'floating point invalid operation' on 
> C++Builder projects.
>

Have you tried switching the floating point processing to be compatible in 
your target compiler?

This looks like it could be relevant: 
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/compdirsfinitefloat_xml.html
ie the {$FINITEFLOAT OFF} directive

Tom 

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/0b08ae3e-1282-467e-8c40-d2602428ddb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to