05-17-2010 01:41 AM
Hi folks,
I'm using NI vision 8.2.1. I'm doing OCR training for LCD segmented display, where i'm facing the issue like a single letter is found as more than one object within defined ROI. How to merge those and can be found as single object.
Thanks in advance.....
05-17-2010 01:53 AM
05-18-2010 01:33 AM
Hello ilabview,
As Muks has already suggested, post the image on what is required as the end result in comparison to what is happening now... We should be able to get a solution once that is clear...
Cheers!
05-18-2010 10:54 AM
There is a parameter in OCR that lets you specify the max spacing between character segments. If the spacing between two pieces is less than this amount, they are considered a single character. Of course, the spacing between adjacent characters needs to be larger than this amount or all the characters will be combined into a single item.
Bruce
08-05-2011 02:07 AM
I have the issue, that within the defined ROI, the OCR sometime recognize two character as single character, but sometime on another image OCR can accurately
recognize the character. I have set the character spacing parameters but still had no effect.
I've attached the sample image and Vision Assistance script for consideration.
Please help
08-05-2011 09:16 AM
I would recommend not thresholding the image prior to calling the OCR step. The OCR step contains advanced threshold parameters that will segment the characters better than the threshold step.
Bruce gave the right recommendation. You need to specify the max character width for the algorithm to work fine.
Here's the modified script and character set file that segments the characters properly.
Hope this helps.
Best regards,
-Christophe