Lane departure warning systems have gained considerable research interest in the past decade for its promising usage in automotive, where lane detection and tracking is applied. However, it is a challenging task to improve the robustness of lane detection due to environmental factors, such as perspective effect, possible low visibility of lanes, and partial occlusions. To deal with these issues, we propose a reliable vision-based real-time lane markings detection and tracking system that can adapt to various environmental conditions. The lane detection is composed of three stages: pre-processing, Adaptive Region of Interest (AROI) setting, and lane marking detection and tracking. In the pre-processing stage, smoothing and edge detection operators are applied on input frames to automatically obtain binary images, then, lane markings segmentation are carried out. After that, An Adaptive Region of Interest is extracted to reduce the computational complexity. In the subsequent detection stages, Kalman filter is employed to track road boundaries detected in the AROI using Progressive Probabilistic Hough Transform (PPHT) in the next frame. Based on road boundaries and the vehicle's position, the proposed algorithm decides if the vehicle has drifted off the lane. For the performance evaluation of lane detection and tracking, real-life datasets for both urban roads and highways in various lighting conditions are used. Applying our method to Catltech dataset, the average correct detection rate is 93.82%. In addition, the proposed method outperforms that of the state-of-the-art methods in processing time (21.54ms/frame). INDEX TERMS Advanced driving assistance systems (ADAS), lane detection and tracking, lane departure warning system (LDWS), progressive probabilistic Hough transform (PPHT), adaptive region of interest (AROI).