Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i need to do horizontal and vertical projection with c# and do binarization but i cant. can you help me ?
to do this three steps
1- binarization
2- horizontal projection
3- vertical projection
please quickly
Posted
Updated 28-Jan-13 10:24am
v2

 
Share this answer
 
Comments
aymandesoky 28-Jan-13 16:36pm    
but i need umage processing code
Sergey Alexandrovich Kryukov 28-Jan-13 16:38pm    
Read more thoroughly. However, I'll add some links.
—SA
Espen Harlinn 28-Jan-13 16:38pm    
A Bitmap is an image ...
Sergey Alexandrovich Kryukov 28-Jan-13 16:43pm    
:-)
Sergey Alexandrovich Kryukov 28-Jan-13 16:37pm    
Good links, a 5.
I added some more, please see my answer.
—SA
What you need is called OCR, "Optical Character Recognition". Please see:
http://en.wikipedia.org/wiki/Optical_character_recognition[^].

Unfortunately, I must warn you: I never found any Open-Source OCR solutions which would be perfect, but it could be good enough for just the license plate number. There are few CodeProject solutions I like, but, to best of knowledge, they are all incomplete, would need serious amount of work to make a working application out of them, and they are for .NET, not Java.

Please see these CodeProject articles:

Neural Network OCR[^],
Creating Optical Character Recognition (OCR) applications using Neural Networks[^],
Neural Network Classifier[^],
A C# Project in Optical Character Recognition (OCR) Using Chain Code[^],
Unicode Optical Character Recognition[^],
Hebb neural network[^],
Backpropagation Artificial Neural Network in C++[^],
OCR Line Detection[^].

Maybe there are newer projects I'm not familiar with; so it would not hurt if you do your own search in CodeProject and elsewhere. Please, if you find something good, please reply in the comment to this answer.

[EDIT: in response to a follow-up question to Solution 1:]

Right, you might also need some general image processing to be used before OCR. I recommend the open-source library AForge.NET written by Andrew Kirillov, a CodeProject member:
http://en.wikipedia.org/wiki/AForge.NET[^],
http://www.aforgenet.com/[^].

Please see Andrews articles at CodeProject:
http://www.codeproject.com/Articles/Andrew-Kirillov#articles[^].

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 28-Jan-13 16:39pm    
Well answered, Sergey :-D
Sergey Alexandrovich Kryukov 28-Jan-13 16:42pm    
Thank you, Espen.
OP is missing something; can you see what? :-)
—SA
aymandesoky 28-Jan-13 16:40pm    
this is the step after i finish this step
Sergey Alexandrovich Kryukov 28-Jan-13 16:41pm    
Excuse me..?
—SA
aymandesoky 28-Jan-13 16:41pm    
the step i shoud do now the image processing
i finsh gray scale and edge detection
and need
binarization and projection
You may also try Emgu [^] framework which implements most of the image processing algorithms
License_Plate_Recognition_in_CSharp[^]
 
Share this answer
 
Comments
Espen Harlinn 28-Jan-13 17:05pm    
Cool links, Emgu looks pretty interesting :-D
Jibesh 28-Jan-13 19:06pm    
True. they have a wide range of ready to use algorithms and its easy to use the framework lib
Sergey Alexandrovich Kryukov 28-Jan-13 17:34pm    
Agree, a 5.
—SA
Jibesh 28-Jan-13 19:06pm    
Thanks SA

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