LEADTOOLS Support
Document
Document SDK Questions
Is It Possible To Setup Zones based on Repeating Characters?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, July 21, 2005 4:38:50 AM(UTC)
Groups: Registered
Posts: 2
Suppose I have an image that contains advertisements which are all separated by a single character. Let's say this character is a horizontal line for instance. Is it possible to mark just one of these horizontal lines as BEGINNING a zone?(i.e.I want to mark off sections of my image as zones based upon the presence of this horizontal line being there). Is there a way of doing this programatically in .NET (C# in particular)? I want to be able to highlight just one line on a page and tell the OCR engine to look for this type of line each time and pull out each individual advertisement based upon it's relative position to the horizontal line. The page could be tediously long so it would make no sense to have to highlight EVERY horizontal line and mark it as a zone. In other words, can the OCR engine do Pattern Recognition?
For example:
__________________________________________________________
For Sale - 2004 Honda Accord $22,500
Call 555-5555
___________________________________________________________
For Sale - 2003 Mustang GT $17000
Call 111-1111
___________________________________________________________
For Sale - 2001 Explorer $13000
Call 999-9999
#2
Posted
:
Sunday, July 31, 2005 11:28:11 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You can do this as follows:
1. Use the CorrelationCommand Class to find the occurrences of the "horizontal lines" image (the correlation image) in the image to be searched (the original image), and then the function will return a points array where the "horizontal lines" image is found in the original image.
2. Use the points array that is returned from the CorrelationCommand Class to define the zones using the RasterOcr.AddZone Method.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Document
Document SDK Questions
Is It Possible To Setup Zones based on Repeating Characters?
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.