07-16-2014 11:52 AM
I am doing a project where I need to do OCR on some printed lables
the font size is on 4...
and I am having a hard time seperating the letters - I am getting closer, but any hints would be highly appriciated!
ocr1 - orginal image
ocr3 - incresed brightness and contrasts
ocr4 - converted to binary, and used erode
07-16-2014 02:33 PM
Try Gray Morphology - Dilate followed by Threshold. To separate characters you need to be able to draw a straight line vertically between characters without touching anything (blank space). You need to have at least one-pixel between characters. See attached image and example.
07-16-2014 02:43 PM
07-16-2014 02:44 PM
Yes, seems to work in reverse of what you would think. Play with both and you will see why I chose dilate.
Matt
07-16-2014 02:46 PM
07-16-2014 02:49 PM
07-16-2014 02:54 PM
That is why you get to enter a security phrase when you buy tickets to prevent OCR automated buying.