Pedestrian detection and posture estimation