Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello,

I'm writing interesting application where I want to get numbers out of a runner t-shirt. I was playing around with AForge.NET and emguCV to get the desired result and I think I'm very close to solving my problem, but still I would like to get opinion from the more experience users.
First I have this image:
https://www.dropbox.com/s/qrbbk6z3yjcaikh/Original%20Image.JPG[^]
After that I apply it a max contrast and some lightening and I get this result:
https://www.dropbox.com/s/i3nklw8riuxxtcg/ContrastWithLight.JPG[^]
Next I binarize the image and get this final result:
https://www.dropbox.com/s/mw3b2zmkf2tkgp3/Binarize.JPG[^]

Next I apply some basic filters to clear out the small blobs and the very big ones. Next I try to find blobs who have their height>width and after that I try to find similar blob sizes and shapes who are one next to another.
This is my approach and in most of the situations works for me.
What I want to know is there any different approach that you would do? Like mixing channels, converting to HSV space and maybe filtering black colors?
My whole idea is to get those numbers with small amount of blobs that aren't numbers.
I would appreciate any kind of suggestions.
Comments and ideas are just fine, if you want to write code please do.
Thank You...
Posted
Comments
Zoltán Zörgő 15-Sep-13 7:13am    
I would try to find white rectangles (rectangular like spots) with black artifacts inside. So I would concentrate on such black inside white areas.
Vanco Pavlevski 15-Sep-13 7:43am    
great yeah. I thought to examine the two major colors in those rectangular areas. Like build a histogram find the mean and solve the problem. If black(ish) and white(isch) pixels are dominating it means it's a letter. Thank you... Still any other suggestions about filters are welcomed...
Thank You

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900