internal override void DoOCR(string fullFilename)
 {
     if (_OCR != null)
     {
         Value = Tessnet2.OCRImageRegion(fullFilename, _OCR.OCRrect);
     }
 }
        internal override void DoOCR(string fullFilename)
        {
            if (_OCR != null)
            {
                string ocrDouble = Tessnet2.OCRImageRegion(fullFilename, _OCR.OCRrect);

                Value = double.Parse(Regex.Replace(ocrDouble, "[^.0-9-]", ""), System.Globalization.CultureInfo.InvariantCulture);
            }
        }
Exemplo n.º 3
0
        internal override void DoOCR(string fullFilename)
        {
            if (_OCR != null)
            {
                string ocrInt = Tessnet2.OCRImageRegion(fullFilename, _OCR.OCRrect);

                Value = int.Parse((Regex.Replace(ocrInt, "[^0-9-]", "")));
            }
        }