A real-time heart rate detection system is proposed with webcam to measure the HR of drivers. The HR is obtained by capturing the color variations resulting from blood circulatoin in facial skin. Blind source separation technology is used for data extraction. Experiments in different scenarios have been performed to verify the efficacy of the proposed algorithm.