Learning methods for pedestrian detection under complex environments