I want to do pedestrian detection and tracking.
Input: Video Stream from CCTV camera.
Output:
This is somehow close to a research problem.
You may want to have a look to this website which gathers a lot of references. In particular, the work done by the group from Oxford present therein is pretty close to what you are doing, since their are using HOG for detection. (That work has been extremely illuminating for me). EPFL and Julich have as well work done in the field.
You may also want to give a look to this review which describes several detection/tracking techniques, often involving variants of the HOG algorithm.