Obstacle and pedestrian detection