An imaging system for a vehicle comprising: an image sensor positioned in the vehicle for capturing images through a windscreen of the vehicle and for generating image data including color values corresponding to the captured images; and a processor coupled to said image sensor for receiving and analyzing the image data, detecting vehicle light sources in the captured images, and categorizing detected vehicle light sources into at least two light source color bands based on color values of the light sources, wherein said processor is further configured to: (a) determine if a predetermined number of vehicle light sources have been detected within each of the light source color bands, and if the predetermined number of vehicle light sources have not been detected within each of the light source color bands, continue to detect vehicle light sources in the captured images until the predetermined number of light sources have been detected within each of the light source color bands; (b) average color values of each of the predetermined number of detected vehicle light sources within each of the light source color bands; (c) determine differences between the averaged color values and target color values within each of the light source color bands; and (d) store the differences as color compensation values and compensate color values of subsequently detected vehicle light sources within each of the light source color bands using the stored color compensation values for the respective light source color bands. an image sensor positioned in the vehicle for capturing images through a windscreen of the vehicle and for generating image data including color values corresponding to the captured images; and a processor coupled to said image sensor for receiving and analyzing the image data, detecting vehicle light sources in the captured images, and categorizing detected vehicle light sources into at least two light source color bands based on color values of the light sources, wherein said processor is further configured to: (a) determine if a predetermined number of vehicle light sources have been detected within each of the light source color bands, and if the predetermined number of vehicle light sources have not been detected within each of the light source color bands, continue to detect vehicle light sources in the captured images until the predetermined number of light sources have been detected within each of the light source color bands; (b) average color values of each of the predetermined number of detected vehicle light sources within each of the light source color bands; (c) determine differences between the averaged color values and target color values within each of the light source color bands; and (d) store the differences as color compensation values and compensate color values of subsequently detected vehicle light sources within each of the light source color bands using the stored color compensation values for the respective light source color bands. (a) determine if a predetermined number of vehicle light sources have been detected within each of the light source color bands, and if the predetermined number of vehicle light sources have not been detected within each of the light source color bands, continue to detect vehicle light sources in the captured images until the predetermined number of light sources have been detected within each of the light source color bands; (b) average color values of each of the predetermined number of detected vehicle light sources within each of the light source color bands; (c) determine differences between the averaged color values and target color values within each of the light source color bands; and (d) store the differences as color compensation values and compensate color values of subsequently detected vehicle light sources within each of the light source color bands using the stored color compensation values for the respective light source color bands.