Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Segment Image for OCR

Hello Sir,
I am working on character recognition using LabVIEW Vision and facing problem with image processing.
I need to segment characters in an image that have different backgrounds e.g dark(black) characters having bright(white) background and bright(white) characters with dark(black) background.
I am using background correction and this works well for dark characters having bright background but for bright characters with dark background i am facing difficulty.

I have attached a snapshot of the image.
Please suggest some solution.

Thanks,
Saukhyada

0 Kudos
Message 1 of 2
(3,636 Views)

Try running a histogram for the area you are interested in, and see if the average is lower for the light characters on a dark background. If it is then invert the section to allow you to use the same font file. Create the ROI from the edges of the dark section.

 

Mike

0 Kudos
Message 2 of 2
(3,629 Views)