1 | initial version |
I would like to add to the topic that face detection uses a cascade of weak classifiers, invented by Viola Jones, which is not a recognition of faces! This is a big difference. When you know the actual object, recognition can be done as suggested. However, when you do not know the actual object, but just the object class, the training of a model needs to be done.
A nice guide to this can be: http://docs.opencv.org/doc/user_guide/ug_traincascade.html?highlight=train%20cascade