Introduction - If you have any usage issues, please Google them yourself
A Real-Time System for Detecting and
Tracking People in 2D, is one of the references in opencv, including the appearance model, new object detect and how to find the corresponding one.