Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, August 17, 2006 11:13:57 AM(UTC)

icr  
icr

Groups: Registered
Posts: 4


I would like to evaluate Leadtools for ICR.

Could someone please tell me where I can find information on ICR form design for Leadtools; e.g., registration marks, size and color of fields, etc.

Also, does the trial downloads or help files contain any ICR samples?

Thank you.

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, August 22, 2006 1:00:37 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

LEADTOOLS supports the ICR
module (which is a part from the OCR engine) that converts the handwritten text and numbers into a readable strings and documents.

So, the ICR module is the OCR part that is specialized in hand printed recognition.
The ICR module is represented by two main recognition modules:

(1) HNR hand-printed numeral recognition module:
This module can be used for
recognition of hand-printed numerals and four additional signs. If
further hand-printed characters are to be recognized, the use of the RECOGMODULE_RER_PRINTED recognition module is recommended.

(2) RER hand-printed recognition module.

The details depend on the programming interface (COM, API, DotNet) you are using.

For example, if you are using
the COM programming interface you can use the GetHandPrintOptions
method (ILEADRasterDocument) and SetHandPrintOptions method (ILEADRasterDocument).


You can find the COM ICR demos
(that converts the handwritten text and numbers into a readable strings and documents) on the following path on your machine:

- MFC Hand Written Number: [LEADTOOLS 14.5 folder]\Examples\COM\MSVC5\HNRNUM
- VB Hand Written Number: [LEADTOOLS 14.5 folder]\Examples\COM\VB\HNRNUM
- MFC Hand Written Text: [LEADTOOLS 14.5 folder]\Examples\COM\MSVC5\HNRTEXT
- VB Hand Written Text: [LEADTOOLS 14.5 folder]\Examples\COM\VB\HNRTEXT

For more information about the ICR module, you can refer to:
http://www.leadtools.com/sdk/document/document-addon-icr.htm

Also, you can refer to the "LEADTOOLS OCR COM Helpfile" and read the following topics:
- GetHandPrintOptions method (ILEADRasterDocument)
- SetHandPrintOptions method (ILEADRasterDocument)

Regards,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Thursday, August 24, 2006 1:41:26 PM(UTC)

icr  
icr

Groups: Registered
Posts: 4


I downloaded the .Net version and ran the demo 13 "hand written number". I didn't spend much time with it, but the sample image just contained several numbers.

I would like to perform traditional ICR; where the end user fills out a paper form which is then scanned and processed. Can this be done with Leadtools?

 

Thank you

 
#4 Posted : Saturday, August 26, 2006 11:57:33 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

Yes, you can do this by using ICR functionality in LEADTOOLS .Net environment. You can do this using LEADTOOLS .Net programming interface as follows:
(1) After scanning the image, insert it to the OCR engine:
+---------------------------+
_rasterOcr.AddPage(_viewer.Image, -1)
+---------------------------+

(2) Define and add a zone that contains the page that you want to recognize:
+---------------------------+
Dim zoneData As RasterOcrZoneData = New RasterOcrZoneData

zoneData.Rectangle = New Rectangle(0, 0, _rasterOcr.GetPageInfo(0).Width, _rasterOcr.GetPageInfo(0).Height)
zoneData.FillMethod = RasterOcrFillMethod.HandPrint
zoneData.RecognizeModule = RasterOcrRecognizeModule.RerPrinted
zoneData.CharacterFilter = RasterOcrCharacterFilter.All
zoneData.Type = RasterOcrZoneType.FlowText

_rasterOcr.AddZone(0, 0, zoneData)
Messager.ShowInformation(Me, "The specified Zone inserted successfully")
+---------------------------+

(3) Recognize the handwritten page:
+---------------------------+
_rasterOcr.EnableSubSystem = True
_rasterOcr.EnableCorrection = True
_rasterOcr.SpellLanguageID = RasterOcrLanguage.English
_rasterOcr.RecognitionDataFileName = String.Format("c:\hnrtext.rdf", _imagesKeyValue)
_rasterOcr.Recognize(0, 1)
+---------------------------+

(4) Save the result recognized page:
+---------------------------+
Dim resOptions As RasterOcrResultOptions = New RasterOcrResultOptions
resOptions = _rasterOcr.SaveResultOptions

resOptions.Format = RasterOcrFormatType.Pdf
resOptions.FormatLevel = RasterOcrFormatLevel.Full

_rasterOcr.SaveResultOptions = resOptions
_rasterOcr.SaveResultsToFile("C:\test.pdf")
+---------------------------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Monday, August 28, 2006 6:09:11 AM(UTC)

icr  
icr

Groups: Registered
Posts: 4


Maen

Thank you for this. A few more questions - Is there a way to determine if an image is scanned upside-down? What is an imaged is skewed while scanning, is there a way to handle this?

I am using a pre-printed paper form with boxes containing numbers to be recognized. How can I handle the situation where I use the rectangle method and the borders of the box are within the rectangle; will the ICR recognize the borders as numbers?

If I use dotted lines for the box borders, is there any type of de-speckle algorithm that will discard them during processing?

Thanks again.

 
#6 Posted : Wednesday, August 30, 2006 4:15:21 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

About the scanned images, after scanning the image, it may be necessary to alter the orientation of a page to make it more readable. This can be done automatically by calling the RasterOcr.AutoOrientPage Method. This method corrects the rotation of the page and automatically updates the image data.

About the boxes with border issue, can you please provide me with a sample image that shows the problem?

About the dots on your image, you can use the DespeckleCommand Class to Removes speckles from an image. Typically, this command is used to clean up scanned images (such as FAX images). This command is available in the Document/Medical Toolkits.

Please let me know how it goes.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.137 seconds.