Significant changes have been made to our OCR toolkit in v22. This forum post serves to address some of the more common circumstances arising from this.
What files need to be included with applications utilizing OCR?The application must have access to
Leadtools.Ocr.LEADEngine.dll. Depending on the application use case, additional files may also be necessary. These are listed in the documentation.
https://www.leadtools.co...th-your-application.htmlLanguage files are optional, but at least one must be made available in the runtime folder.
https://www.leadtools.co...ngine-runtime-files.htmlWhat steps are necessary for ICR support?Intelligent Character Recognition (ICR) is included by default in LEADTOOLS v22 as a feature of the LEAD engine. It is no longer necessary to download and install auxiliary packages for ICR support. Note you'll need to include a new library in your application:
Leadtools.Icr.LEADEngine.dllWhat ICR demos are there?Our standard OCR demo can be used for ICR. You can find this in your installation folder.
C:\LEADTOOLS22\Shortcuts\OCR - ICR - MICR - OMR\.NET Framework Class Libraries\Main OCR Demos
Once zones have been drawn, open the Update Zones dialog from the menu bar: Zones -> Update Zones. In the dialog, in the Properties section from the Type dropdown, choose "Icr".
Alternatively, the "OCR Modules" demo available in the installation folder showcases ICR functionality. Change the drop-down to "Auto - ICR". Note this demo doesn't expose created zones to be modified but can be used as a quick proof-of-concept.
C:\LEADTOOLS22\Shortcuts\OCR - ICR - MICR - OMR\.NET Framework Class Libraries\More OCR Demos
How do I create an ICR Zone in code?In code, the OcrZone.ZoneType property can be set to OcrZoneType.Icr.
https://www.leadtools.co...fo/ocrzone-zonetype.htmlhttps://www.leadtools.co...k/dh/fo/ocrzonetype.htmlHere's a code snippet which shows how to get the first zone in the collection, change its type to Icr, and assign it back.
Code:OcrZone zone = ocrPage.Zones[0];
zone.ZoneType = OcrZoneType.Icr;
ocrPage.Zones[0] = zone;
Are there any other OCR engine options?At this time, only the LEAD OCR engine is offered. Available OCR engines are listed in the OcrEngineType enum. See the documentation pages. When calling OcrEngineManager.CreateEngine(), the only option which can be passed is OcrEngineType.LEAD. Other values in this enum are no longer available.
https://www.leadtools.co...dh/fo/ocrenginetype.htmlIs Arabic language recognition available?Apologies, but Arabic language recognition is not supported in v22 at this time.
Edited by moderator Wednesday, December 27, 2023 1:41:29 PM(UTC)
| Reason: Not specified
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.