lines. This filtered image is then thresholded robustly by keeping only the highest values, straight lines are detected using simplified Hough transform, which is followed by a RANSAC line fitting step, and then a novel RANSAC spline fitting step is performed to refine the detected straight lines and correctly detect curved lanes. Finally, a cleaning and localization step is performed in the input image for the detected splines