Learning to Detect Pedestrians by Watching Videos