On Thursday, March 10, 2016 at 2:25:59 AM UTC-5, Pixxe wrote:
>
>
> I would like to use tesseract for extracting french language. and i hope
> it is possible to do it with existing tesseract and available french
> dictionary.
>
Yes, that should work.
>
> *--- Changes what i did:*
>
> tesseract::TessBaseAPI *tess = new tesseract::TessBaseAPI();
>
> if (tess->Init(NULL, "fra"))
> {
> fprintf(stderr, "Could not initialize tesseract.\n");
> exit(1);
> }
> tess->SetVariable("tessedit_char_whitelist",
> "abécédéeeffegéacheijikaelleemmeenneopéquerreessetéuvé
> double véixeigreczède ");
>
Why are you using a character whitelist? I'd suggest using the default
unless you're having problems.
If you do use it, it needs to be just a list of characters. The version
above is some kind of weird phonetic spelled out alphabet (e.g. vé, double
vé instead of vw).
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/0e57deab-e6c2-4053-9cf0-0e70efd711f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.