Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Character bounding rectangle. How do manipulate before ocr reading?

Is character bounding rectangle an return value from NIOCR.ReadText2? Or can we change its value in the charReport before NIOCR.Readtext2? We are hopping that by manipulating the character bounding rectangle, it will give us more accurate reading.
0 Kudos
Message 1 of 2
(3,034 Views)
Seanlin,
 
Thank you for your post.  The NIOCR.ReadText2 function identifies all objects in the image based on the properties that you set, and then compares each object with every character in the character set file. For each object, the VI selects the character that most closely matched the object. The function uses the substitution character for any object that did not match any of the trained characters.
 
The Character Report is a cluster of information that contains additional information about each character that the function reads from the image.  "Bounding Rectangle" is one of the fields in this cluster that is an array of five points that specifies the coordinates of the character bounding rectangle. The coordinates are in order starting from the top, left corner and moving clockwise.
 
The rectangle returned is a return value of the function which can not be modified by the external user. 
 
Thanks,
 
Scott Savage
National Instruments
Applcations Engineering
0 Kudos
Message 2 of 2
(3,020 Views)