Real-time moving pedestrian detection using contour features