Click here to Skip to main content
13,201,452 members (73,655 online)
Rate this:
Please Sign up or sign in to vote.
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 28-Jan-13 10:21am
Updated 28-Jan-13 10:24am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

What you need is called OCR, "Optical Character Recognition". Please see:[^].

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:[^],[^].

Please see Andrews articles at CodeProject:[^].

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? :-)
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..?
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
Sergey Alexandrovich Kryukov 28-Jan-13 16:42pm
Please see my updated answer, after [EDIT]. You will find it all.
Espen Harlinn 28-Jan-13 16:48pm
If the code can be used to detect a character, it can certainly be used to detect the rectangle of the plate.
Sergey Alexandrovich Kryukov 28-Jan-13 17:02pm
Hard to argue against the unbreakable logic. :-)
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

You may also try Emgu [^] framework which implements most of the image processing algorithms
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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171020.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100