Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Find highlighted character position

Hello,
 
I am having problem in finding the highlighted character in the attached image. right now i am using a pattern matching technique to find the position of the rectangle(see fig). but this solution is not a perfect one (5% failure rate).
If somebody is having any idea then let me know. My final goal is to give the coordinates of the selected character to my OCR vi.
 
Thanks in advance,
-Suhas

Message Edited by Suhas on 08-29-2006 11:03 AM

0 Kudos
Message 1 of 6
(4,183 Views)
Suhas,

Do you expect the character to be at the same location relative to the "DELETE" text? Also, do you expect the orientation of the characters to be relatively horizontal?

Thanks

Satish
0 Kudos
Message 2 of 6
(4,146 Views)
Suhas,
 
After looking at the image you attached, in this case geometric matching might be more effective than pattern matching.  While geometric and pattern matching are similar, geometric matching looks strictly at edges and shapes.  The highlighted E has a lot of good geometric qualities to it, which may help improve your failure rate.
 
Jason
0 Kudos
Message 3 of 6
(4,130 Views)
Hello Satish,
Any charachert from A to Z may be highlighted so the position is not fixed with respect to the "DELETE" text. The orientation of the character is always horizontal.
 
-Suhas
0 Kudos
Message 4 of 6
(4,087 Views)
Hello Jason,
 
Sorry but i forgot to mention that i am using Geometric pattern matching and the failure rate is with respect to that.
Any other suggetion or idea to detect the highlighted characher position?
 
-Suhas
0 Kudos
Message 5 of 6
(4,087 Views)

Suhas,

If the general locations of all the characters will always be the same, even though at times certain different characters will be highlighted, you could possibly used some simple edge detection to improve your accuracy.  Using the location of the "delete" text as a reference point for a coordinate system, you could look for edges along lines above the tops of the two rows of normal characters that would intersect the box around the highlighted character, returning edge locations.  These locations would reflect the position of the highlighted character.

Jason N

0 Kudos
Message 6 of 6
(4,032 Views)