This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Saturday, April 29, 2006 11:43:44 AM(UTC)
Groups: Registered
Posts: 1
I'm new to this forum and haven't event tried to use the OCR SDK. If the answer to my question is answered favorably, then I'm going for it.
Suppose I have a tif image and somewhere on the image is the text 'Account#: 1234567'. I would want to ocr the document to find 'Account#:', but the text I really want to extract is the '1234567' part. Is this possible?
Thanks,
Mark
#2
Posted
:
Tuesday, May 2, 2006 4:59:29 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
Thank you for contacting LEADTOOLS.
(1) You can use the OCR features to OCR the image that contains the original Text, and then search inside the OCR result.
The details depend on the programming interface that you use.
However, if you are using the COM programming interface, after calling the LEADRasterDocument.Recognize method, you can retrieve the recognized words using the LEADRasterDocument.GetRecognizedWords method. Then you can retrieve the recognized word in a specific index by using the LEADRasterDocument.RecognizedWord property, which is updated by the GetRecognizedWords method with an array of strings, in which each string is one of the recognized words.
After this, you can compare between the string that you want (For example "1234567") with the recognized string.
For more information about the correlation bitmap method, please refer to the LEADTOOLS OCR Com Help file and read the following topics:
- GetRecognizedWords method (ILEADRasterDocument).
- RecognizedWord property (ILEADRasterDocument).
(2) If you have the text on image (as bitmap, not as text) you may try to use the LEADRasterProcess.Correlation method, which compares the bitmap references by pCorrelationRaster (or part of the bitmap) with all the areas of the same dimensions in the bitmap references by pRaster and finds those portions that match according to the measure of correlation.
For more information about the correlation bitmap method, please refer to the LEADTOOLS Main Com Help file and read the following topic:
- Correlation method (ILEADRasterProcess).
Please try the above instructions and let me know if this helps.
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.