ICR Intelligent Character Recognition

Intelligent Character Recognition (ICR) is used to recognize hand-written text and numbers. Assuming ICR support is unlocked, ICR can be performed whenever the LEADTOOLS OCR Module - OmniPage Engine is being used.

Recognize handwritten text and number by setting the OcrZoneType to OcrZoneType.Icr to create an ICR zone. Next, specify handwritten text and numbers by setting the OcrZoneCharacterFilters to be OcrZoneCharacterFilters.Numbers.

Note: Normally it is not recommended to use the character filters. However, it is recommended when performing ICR for hand written numbers only.

Keep in mind the following tips:

The following example shows how to perform ICR recognition.

// Create an instance of the engine  
IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.OmniPage, false); 
 
// Start the engine using default parameters  
ocrEngine.Startup(null, null, null, @"C:\LEADTOOLS 20\Bin\Common\OcrOmniPageRuntime"); 
 
// Create an OCR document  
using (IOcrDocument ocrDocument = ocrEngine.DocumentManager.CreateDocument()) 
{ 
 
   RasterImage image = ocrEngine.RasterCodecsInstance.Load(input, 0, CodecsLoadByteOrder.Rgb, 1, -1); 
 
   // Add this image to the document  
   IOcrPage ocrPage = ocrDocument.Pages.AddPage(image, null); 
 
   // Perform default AutoZoning on the page  
   ocrDocument.Pages.AutoZone(null); 
 
   // Iterate through each zone in the document to make them ICR zones 
   for (int i = 0; i < ocrPage.Zones.Count; i++) 
   { 
      OcrZone zone = ocrPage.Zones[i]; 
      zone.ZoneType = OcrZoneType.Icr; 
   } 
 
 
   //Recognize Page 
   ocrDocument.Pages.Recognize(null); 
   ocrDocument.Save(output, DocumentFormat.Text, null); 
} 

Cloud Services

Does your application require document recognition or conversion, but its implementation language is preventing you from using LEADTOOLS directly? Consider using the LEADTOOLS Cloud Services Web API instead. It is a high-powered and scalable Web API. Its hassle-free interface can be used to integrate advanced OCR, barcode, MICR, and document conversion into any application.

References

Leadtools.Ocr Introduction

Leadtools.Ocr Getting Started (Guide to Example Programs)

Programming with LEADTOOLS .NET OCR

An Overview of OCR Recognition Modules

Creating an OCR Engine Instance

Starting and Shutting Down the OCR Engine

Working with OCR Zones

OCR Engine-Specific Settings

Help Version 20.0.2018.10.10
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document