A machine learning method for pedestrian detection