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); }
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); }