This is a tool with which you can make a XML file which contains the result of your object detection training

How to use it can be found here:

http://docs.opencv.org/doc/user_guide/ug_traincascade.html
https://www.youtube.com/watch?v=WEzm7L5zoZE