Visual perception of obstacles and vehicles for platooning