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 recogntion.

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

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.3.2
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Imaging, Medical, and Document