Page 1 of 1

Detect aviable languages

Posted: Thu Jun 06, 2013 11:15 am
by Appstalden
Hi there,

does anyone knows how to detect the installed OCR-Languages?

in previews versions there was a TesseractDictionary (enum).

But now we have only the path to the files.

Did I miss something in the docu, or is it gone?

Re: Detect aviable languages

Posted: Thu Jun 06, 2013 3:54 pm
by Appstalden
I found a way to do it.

Code: Select all

System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(ocr);
            string[] lang = di.GetFiles("???.*").Select(f => f.Name.Substring(0,3)).Distinct().ToArray();
not nice, not secure (because of other files matching the pattern), but it works for me.
8)

Re: Detect aviable languages

Posted: Sun Feb 03, 2019 6:35 pm
by Gabriela
Hello,

here you are with the current release:
https://www.gdpicture.com/guides/gdpicture/web ... ges().html