dynamicDotNetTwainThum.IfShowCancelDialogWhenBarcodeOrOCR = true; dynamicDotNetTwainThum.OCRResultFormat = Dynamsoft.DotNet.TWAIN.OCR.ResultFormat.Text; dynamicDotNetTwainThum.OCRLanguage = "eng"; byte[] bytes = dynamicDotNetTwainThum.OCR(dynamicDotNetTwainThum.CurrentSelectedImageIndicesInBuffer); // recognize the buffered image if (bytes != null) { SaveFileDialog dlg = new SaveFileDialog(); dlg.Filter = "Text File(*.txt)|*.txt"; if (dlg.ShowDialog().Value) { System.IO.File.WriteAllBytes(dlg.FileName, bytes); // write recognized text to text file } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)