CarusoSample.OcrTest.DoOcr C# (CSharp) Метод

DoOcr() публичный статический Метод

public static DoOcr ( byte>.Image img ) : Tesseract.Charactor[]
img byte>.Image
Результат Tesseract.Charactor[]
        public static Tesseract.Charactor[] DoOcr(Image<Gray, byte> img)
        {
            Tesseract.Charactor[] chars;
            string text;
            using (var tesseract = new Tesseract("tessdata", "eng", Tesseract.OcrEngineMode.OEM_TESSERACT_CUBE_COMBINED)
                )
            {
                tesseract.Recognize(img);
                text = tesseract.GetText();
                chars = tesseract.GetCharactors();
            }
            Console.WriteLine(text);
            Console.ReadLine();
            return chars;
        }