A sensor is attached to the vehicle's roof while it's in motion; this allows it to capture images of the road, which might be used in an autonomous driving system. The roadways shown in these images may not necessarily be exactly flat, have sharply defined borders, or adhere to any established patterns. Methods such as edge detection, Hough transformation space, and vanishing point detection might be used for autonomous vehicle route recognition. So that it can recognise roads in the freshly processed picture from the vehicle, we normally train our model with hundreds of photographs of various roads. This