To reduce the frequency of road accidents, Lane detection system can be implemented in four wheelers to identify lane borders on the road and further prompt the driver if he switches and moves to erroneous lane markings. There are many algorithms used in this system namely, perspective, sliding window algorithms and many more, so collectively these can be called as a library. Lane boundaries are detected using a camera that captures the view of the road. The camera mounted on the top of the car takes images which serves as the basic input.