Take the following steps to create a project and add some code that loads and reads the machine-printed information on a bank check image.
In theSolution Explorerwindow, right-click on theReferencesfolder, and select "Add Reference..." from the context menu. In the "Add Reference" dialog box, select the ".NET" tab, browse to the "
引领tools.dll
引领tools.Codecs.dll
引领tools.Codecs.Cmp.dll
引领tools.Forms.Commands.dll
引领tools.Document.Writer.dll
引领tools.Ocr.dll
引领tools.Ocr.LEADEngine.dll
Add the following lines at the beginning of the file:
using引领tools;
using引领tools.Codecs;
using引领tools.Forms.Commands;
using引领tools.Ocr;
stringMY_LICENSE_FILE ="d:\\temp\\TestLic.lic";
stringMY_DEVELOPER_KEY ="xyz123abc";
RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY);
stringchequePath =@"C:\LEADTOOLS22\Resources\Images\BankCheck.jpg";
RasterCodecs codecs =newRasterCodecs();
RasterImage image = codecs.Load(chequePath);
BankCheckReader chequeReader =newBankCheckReader();
using(IOcrEngine engine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD))
{
engine.Startup(codecs,null,null,null);
chequeReader.OcrEngine = engine;
chequeReader.ProcessImage(image);
engine.Shutdown();
}
foreach(KeyValuePair<string, BankCheckField> kvpinchequeReader.Results)
{
Console.WriteLine(kvp.Key +"\t\t"+ kvp.Value.Text);
}
image.Dispose();
codecs.Dispose();
Console.ReadLine();
Help Collections
Raster.NET|C API|C++ Class Library|HTML5 JavaScript
Document.NET|C API|C++ Class Library|HTML5 JavaScript
Medical.NET|C API|C++ Class Library|HTML5 JavaScript
Medical Web Viewer.NET
188宝金博怎么下载
Media Foundation.NET|C API|Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.