Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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
Edited 28-Jan-13 10:24am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
aymandesoky at 28-Jan-13 16:36pm
   
but i need umage processing code
Sergey Alexandrovich Kryukov at 28-Jan-13 16:38pm
   
Read more thoroughly. However, I'll add some links.
—SA
Espen Harlinn at 28-Jan-13 16:38pm
   
A Bitmap is an image ...
Sergey Alexandrovich Kryukov at 28-Jan-13 16:43pm
   
:-)
Sergey Alexandrovich Kryukov at 28-Jan-13 16:37pm
   
Good links, a 5.
I added some more, please see my answer.
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
v2
Comments
Espen Harlinn at 28-Jan-13 16:39pm
   
Well answered, Sergey :-D
Sergey Alexandrovich Kryukov at 28-Jan-13 16:42pm
   
Thank you, Espen.
OP is missing something; can you see what? :-)
—SA
aymandesoky at 28-Jan-13 16:40pm
   
this is the step after i finish this step
Sergey Alexandrovich Kryukov at 28-Jan-13 16:41pm
   
Excuse me..?
—SA
aymandesoky at 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 at 28-Jan-13 16:42pm
   
Please see my updated answer, after [EDIT]. You will find it all.
—SA
Espen Harlinn at 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 at 28-Jan-13 17:02pm
   
Hard to argue against the unbreakable logic. :-)
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You may also try Emgu [^] framework which implements most of the image processing algorithms
License_Plate_Recognition_in_CSharp[^]
  Permalink  
Comments
Espen Harlinn at 28-Jan-13 17:05pm
   
Cool links, Emgu looks pretty interesting :-D
jibesh at 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 at 28-Jan-13 17:34pm
   
Agree, a 5.
—SA
jibesh at 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
0 Sergey Alexandrovich Kryukov 588
1 George Jonsson 258
2 CPallini 200
3 OriginalGriff 174
4 Shemeemsha RA 140
0 OriginalGriff 5,985
1 Sergey Alexandrovich Kryukov 5,341
2 CPallini 4,760
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2014
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