The following instructions will allow you to create your own lane detection program using the OpenCV 3.3.1 library.
You will need to install OpenCV 3.3.1 from the following website:
https://opencv.org/releases.html
(check other websites for path and environment settings)
$ g++ -Wall car_lane_detection.cpp -o lane_detector
$ ./lane_detector
Make sure to have a video sample that resembles the following examples: