07-25-2012 06:29 AM
C an anyone help me in reading a string using vision assistant ?
Individually i have trained each and every character in the character set file.
But when i am selecting whole image , the OCR read block is unable to recognise the string .
it is detecting each individual character when the same ROI used during the raining is used now
Can anyone clarify ?
07-25-2012 06:54 AM
Find the attached file for better understanding of the problem
07-29-2012 07:41 AM
Hi,
First thing, OCR is designed to recognize characters from one horizontal column. If there are more than one lines of text in your ROI, they won't be read by OCR. If you have a decent idea of the vertical position of your text rows, you can define more than one OCRs with different ROIs, in series to read from different lines.
Secondly, the blue shaded area in your second screenshot represents the pixels which OCR is trying to recognize as characters. It seems like you have set the control 'characters' in the threshold tab to dark on light whereas your text is light on dark background. So with the control 'mode' set to 'uniform', set the 'characters' control to 'light on dark'. I personally prefer to use 'fixed range' as the mode and to adjust the threshold slider until OCR can distinguish well between the characters. For this particular image, suitable minimum threshold is around 140 and maximum is same as default(255). You can also adjust the values in 'size' tab to make the identification boxes fit more closely around the individual characters and get more reliable readings.
Good luck!
07-29-2012 08:21 AM - edited 07-29-2012 08:22 AM
I recently did some Optical Character Recognition (OCR) within the Vision Assistant to read characters in an online Flash game.
Once you've saved your Character Set File, you can use it in OCR by specficying set Regions of Interest (ROIs) to analyze. In terms of programming, you can implement multiple discrete ROIs where you expect characters to be positioned and use OCR on these individual elements.