This paper presents a real-time monocular-vision-based system for vehicle detection and distance estimation, aimed at avoiding the issues of stereo-vision algorithms. It develops a collision warning system using adaptive features for vehicle detection and distance estimation, maintaining high performance in challenging conditions. Experimental results demonstrate that the proposed algorithm surpasses existing state-of-the-art methods under various weather and lighting situations.