This document presents an advanced algorithm for real-time detection of curvy lanes, addressing significant challenges faced by autonomous vehicles in recognizing curves under adverse conditions. The proposed method utilizes Hough transforms combined with weighted centroids, clustering of lines, and shadow/illumination correction techniques to accurately determine lane boundaries in the presence of noise and discontinuities. The algorithm is noted for its capacity to detect various curves with desired slopes, surpassing the limitations of existing libraries such as OpenCV and Matlab.