Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

OCR with different illuminations

I want to do an OCR on different images with different illuminations. I want to know if its possible to make an application in Labview, so that no matter how much light there is, the OCR will still get done correctly.

 

Can someone help me?

Thanks in advance!

0 Kudos
Message 1 of 7
(5,220 Views)

Hello Fernan1988,

 

Yes, it is possible you need to have installed the NI Vision Development module:

 

http://sine.ni.com/nips/cds/view/p/lang/es/nid/2881

 

Once you install the module, please check the “OCR.lvproj” within the Find Examples section in LabVIEW.

 

Hope you find this information useful!

 

Regards,

Luis CT
0 Kudos
Message 2 of 7
(5,199 Views)

I do not think NI's OCR function is very robost, it may not as good as you expected.

For example, to my knowledge (may not exactly correct), the OCR function in Labview need to segment the characters/text/number into individual one by some simple threshold method, which tend to be failed if the image background is not even enough. Anyway, if the images quality are good OCR function works well.

0 Kudos
Message 3 of 7
(5,155 Views)

I already installed the NI Vision development Module, but I can't open the example you suggested, because it seems that I need a toolkit that I currently don't have.

Could you please tell me what to do in order to make the OCR work with different illuminations.

Thanks in advance!

0 Kudos
Message 4 of 7
(5,145 Views)

I already saw the example, but I still can't see how this example will help me accomplish what I want. What I want is to be able to use the OCR in labview with different images in different illuminations, so that no matter the illumination, the OCR will get done correctly.

0 Kudos
Message 5 of 7
(5,141 Views)

You could try to use the NI Vision Assistant to help you config the OCR parameters.

0 Kudos
Message 6 of 7
(5,137 Views)

Technically speaking, what you are asking to do is impossible.  Fortunately, I do imposible things all the time.

 

I cannot spoon feed you a solution, but I can give you a rough map to follow.  First, let's set some boundries to the problem.  It cannot be "any light condition".  You have to address conditions of too dark (near dark), and too bright (saturation) with a simple error, and give up on those.

 

If you have unlimited time to accomplish the inspection (on the order of a few seconds), and if your camera supports it, you can perform an analysis of the scene at multiple exposure times, and select the exposure with the best contrast to begin you OCR.

 

The NI OCR stuff uses gemotric match (I think), so you will need to train each font that you want to use.  Each character will need multiple templates.  It is possible to build intraining into your app, so that you are prompted to fill in the blank when an unknown character is found.

 

You can also perform the OCR on multiple exposure images, and do dome logical analysisto determine which result is the most correct.

 

You can also use a dictionary list if the words will be limited in some predictable way.

 

If you are going to rely soley on ambient light available, I can tell you that you should give up right now.  For machine vision to do its job, it needs good cameras, good lenses, good lighting, and good fixturing.  Each time you take one of these away, you reduce your chance of success by 24.25%.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
Message 7 of 7
(5,131 Views)