Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Read/Verify Text in VBAI

0 Kudos
Message 11 of 15
(1,439 Views)
Thanks for your opinion. But it seems that it's not good. The same problem still exists.
0 Kudos
Message 12 of 15
(1,433 Views)

Hi,

 

How does your inspection work? Do you drive the dashboard to display some specific text, then perform the visual inspection to verify that the text is correct? Basically is it an OCR (Optical Character Recognition) inspection where you don't know a priori what's going to be displayed or an OCV (Optical Character Verification) where you want to verify that the text displayed is correct?

You can tell the engine what type of characters each letter should be. For example, you can specify that the first character should be an uppercase letter, the second a lower case letter etc. To do that, go to the Options tab, check Use Text Pattern, and click on Specify Text Pattern. You can add a specific type for each character. This works well in an OCV type application, where you have some knowledge about the text you expect to read.

Also, in general, make sure to use the same threshold and size options that were used to train the character set file.

You might also want to retrain the characters that are not recognized correctly with the training interface, untill you get perfect recognition.

 

 

Christophe

0 Kudos
Message 13 of 15
(1,418 Views)

Hi Christophe,

 

This is an OCR because the text displayed is not fixed, there's many different text displayed so I can't use an OCV for this case.

I'm sure that I use the same threshold and size options because it's the same inspection. But the quality of OCR is not good between upercase and lowercase or between i, l and !. 

0 Kudos
Message 14 of 15
(1,406 Views)
If changing the thresholding options isn't improving things for you then you're going to need to spend some time training the character set.  I noticed the character set file you posted only has 1 sample per character.  It's going to take a little time, but go through the images you have and train tthe character set more thoroughly.  This is really going to be the only way to get it to recognize differences between such similar characters (i, l, !).
Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 15 of 15
(1,388 Views)