10-11-2011 12:00 PM - edited 10-11-2011 12:01 PM
I am trying to do OCR to extract water bottle label, but im not getting any close. The water bottle label resembles to Arial font, ive trained the characters with arial font. I have tried fiddling with the settings, and light exposure.. but still no good.
I am using the video feed, so even tried to reduce the buffer size but doesnt work..
Any recommendations ?
Thankyou/
Solved! Go to Solution.
10-11-2011 01:39 PM
Hi,
The OCR function uses the segmentation parameters that you specified when you trained the font.
The problem you are running into is that the image you used to train the characters is very different from the one you're actually using the character set file trained and the thresholding options are totally different.
When the function tries to segment the characters on your runtime image, no characters are found.
To train the font, you need to use an image that is acquired in the same condition than the one you'll be using at runtime.
Also, you need to define an ROI that completely emcompasses the characters.
Hope that helps.
Best regards,
-Christophe
10-12-2011 11:02 AM
Thanks for the prompt reply..
Ok so I used original image from the scene and did the fixed range thresholding, it works perfect in the ocr training interface, but after running the VI the results havent changed much i would say the result is 40% improved but im not getting the exact label.. I have slowed down the loop to 1 frame per second, but it doesn't change anything.. even the in the vision assistant script im getting full text?
please help..
10-12-2011 01:34 PM
It looks like the ROI you're using in Vision Assistant and in your LabVIEW code are different. Are you repositioning it in your code?
I could help more if you zipped a couple different images and attach them to the thread, if there is no copyright issues.
-Christophe
10-12-2011 02:48 PM
Increasing the image brightness and/or contrast would probably increase the OCR accuracy too.
-AK2DM
10-20-2011 01:30 AM
ya, it was luminosity, turns out the ambiant light had an unequal spread over the bottle 😛
Thankyou very much for the help, really appreciate it all.
10-20-2011 01:30 AM
ya, it was luminosity, turns out the ambiant light had an unequal spread over the bottle 😛
Thankyou very much for the help, really appreciate it all.