Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

OCR - array of numbers

Hello

I am beginner in image processing and I  need sugestion how to create array of numbers from image.

So far I ve processed this:

ScreenShot001.jpg

to that:

ScreenShot002.jpg

in vision builder.

 

Now I should divide this square into 9x9 smaller and then run OCR in each of them?

And what about size of the base numbers in OCR, should I create instances of the same number (depending on size?)

 

Thanks for help

 

0 Kudos
Message 1 of 4
(3,107 Views)

Good effort!

Can you post your inspection an a few images so we start from a good base to help you?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 4
(3,102 Views)

I ve done that in 6 steps starting from:

ScreenShot003.jpg

 

1) color plane extraction HSL

ScreenShot004.jpg

2)Local Threashold Background Correction  look for dark objects 11x11

ScreenShot005.jpg

3)Binary image conversion

ScreenShot006.jpg

4)Adv Morphology remove border objecst

ScreenShot007.jpg

5)Lookup table Equalize and 4x find straight edge

ScreenShot009.jpg

 

 

but sometimes after morphology i get that:

ScreenShot002.jpg

ScreenShot001.jpg

 

depending on foto quality

thanks for some suggestions

0 Kudos
Message 3 of 4
(3,100 Views)

Hi!

 

It looks to me like you have a lightning issue - which is expected since from what I see, there are no controlled lightning conditions in your application.

 

As the paper folds, the white is different (darker) in the bottom-right corner. This makes tresholding more difficult.

 

I have a few ideas that you may want to try:

1) Use a flash when taking the picture

2) Try to create two separate phases: separate the paper from the background first, then try to detect the black (ink) on the paper with more strict tresholding settings.

3) Try to set the ROI for the paper , or for the table first (trapezoid), then you can use more strict tresholding without the background interfering.

 

I hope I helped.

Simon

 

Best Regards,
T Simon
National Instruments
Applications Engineer
Certified LabVIEW Developer - Certified TestStand Architect
0 Kudos
Message 4 of 4
(3,082 Views)