handwriting-ocr icon indicating copy to clipboard operation
handwriting-ocr copied to clipboard

How to segment character from image?

Open sagarhukkire opened this issue 6 years ago • 6 comments

Hi Thanks for your tutorial, its great help. I was wondering If I have give single image with text, how I can detect word by segmenting each character. name Which should result Sagar Any hints will be great help

Thanks Sagar

sagarhukkire avatar Apr 25 '18 13:04 sagarhukkire

Hi,

the first tip, I would try to remove an unnecessary noise and the small printed text from the picture. It looks like some kind of form, maybe you will be able to subtract the printed text and line. If you get just the word it should make the recognition easier and more precise.

Breta01 avatar Apr 26 '18 20:04 Breta01

Hi Yes you are right. Its bank form, currently I am taking ROI from form by cropping then tryting to segment using CNN. Do you have any idea to filter out printed text and line. ..any link or tutorial to follow Thanks man, your contribution is way to great to solve many OCR problems

sagarhukkire avatar Apr 27 '18 18:04 sagarhukkire

It depends on your documents. If you have an image of the empty form, which matches the filled documents, you can subtract it from filled documents. There are different approaches to it. Search for something like background subtraction opencv, but most of these tutorials are for video.

Breta01 avatar Apr 28 '18 12:04 Breta01

Maybe this could be useful: https://stackoverflow.com/questions/44072956/opencv-image-matching-form-photo-vs-form-template

Breta01 avatar Apr 29 '18 11:04 Breta01

@Breta01 man you are great..this is what i was looking..i will visit prague in two months ..will see you for drink haha

sagarhukkire avatar Apr 29 '18 11:04 sagarhukkire

haha, sounds good. I will be working on something similar, so let me know how it goes.

Breta01 avatar Apr 29 '18 20:04 Breta01