Пример #1
0
        public static string Parse(string img, string language, Rectangle rect)
        {
            string result;

            using (Bitmap bitmap = new Bitmap(img))
            {
                result = TSOCRHelper.Parse(bitmap, language, rect);
            }
            return(result);
        }
Пример #2
0
        public static string Parse(string img, string language)
        {
            string result;

            using (Bitmap bitmap = new Bitmap(img))
            {
                Rectangle rect = new Rectangle(0, 0, bitmap.Width, bitmap.Height);
                result = TSOCRHelper.Parse(bitmap, language, rect);
            }
            return(result);
        }