Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, can you tell me how to training classifier using Haar Detector in visual C++ 2008 ?
I want to build a project "Object Detection area plate number (Rectangle area) and recognize character plate number"
Posted

Probably want to use a neural network for this.
Neural networks are rather simple in theory, see Wikipedia[^]. They have the same architecture as the brain.

You basically give it a number of input neurons (1 for each pixel), 1 or more hidden layers of X neurons, and then a number of output neurons (probably 1 for each digit in the numberplate). Each neuron is attached to every neuron in the previous and next layer, building a network. Illustrated in another Wikipedia page[^]. Each connection then has a weight, and each neuron has a transfer function.

All weights are randomly initialised. You then give a number (typically thousands for this kind of project) of training sets. You give it an image, and what the numberplate is. This will train the network to recognise the plate.

If your images are taken from a road security camera you might need 2 networks. 1 to recognise each of the cars and then trim down the image to only fit the car (or even just the front of it), and a 2nd to find and read the numberplate on each car. This will give much more accurate results.

This article[^] has a working implementation of a neural network which can recognise written digits. You should be able to use this as a basis for your network.
 
Share this answer
 
This is outside the scope of this forum.

If you have a short concise C++ question, feel free to post it.
 
Share this answer
 
Since the detection of a Haar-like feature is deterministic, it doesn't make sense to 'train' a classifier for it. The point of trainable classifiers is to emulate a functional dependency that you do not know explicitely, or for which the complexity to compute a result is much higher than the size of the input data. (e. g. when the computation requires you to perform a numeric iterative algorithm)

If you're looking for a way to speed up the computation, have a look at http://en.wikipedia.org/wiki/Haar-like_features#Fast_computation_of_Haar-like_features[^]
 
Share this answer
 

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