I suspect you have saved the Unicode text output with a wrong character
encoding. Try UTF-8 encoding when you save the file. Tesseract may
misrecognize the characters but rarely put question marks in their places.
On Thursday, October 16, 2014 3:18:58 AM UTC-5, Salvo Piazza wrote:
>
> Hi all,
> I've written a little simple program to extract text from image with
> tesseract 3.0.2 as:
>
> Tesseract instance = Tesseract.getInstance();
> instance.setDatapath(currentDir);
> instance.setLanguage("ita");
> String returner = instance.doOCR(new File(filename));
>
> It works fine but I've many question mark chars '?' in the extracted text.
>
> For example the word *fluidi *is recognized as *?uidi *and much more
> example...
>
> Does anyone know some tips in order to fix this behaviour?
>
> Thanks in advance,
> Salvo.
>
>
--
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/d37dec67-624c-46cd-9ce3-c06b3130cde9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.