| CPC G06V 20/17 (2022.01) [B64F 1/002 (2013.01); G06T 7/50 (2017.01); G06T 7/70 (2017.01); G06V 10/25 (2022.01); G06V 10/507 (2022.01); G06V 10/56 (2022.01); G06V 10/60 (2022.01); G06V 20/584 (2022.01); G06T 2207/20081 (2013.01); G06T 2207/20084 (2013.01); G06T 2207/30252 (2013.01)] | 20 Claims |

|
1. A system comprising:
a processor; and
a memory, the memory comprising instructions that upon execution by the processor, cause the processor to:
detect a plurality of light sources in a first image received from a vehicle camera;
determine a region of interest for each of the plurality of light sources based on a location of the light source in the first image;
determine a distance between each of the plurality of light sources and a location of the vehicle camera and a relative angle between each of the plurality of light sources and the location of the vehicle camera;
generate a gray scale version of each region of interest based on pre-defined relationships between intensities of a red color, a green color and a blue color in the first image and gray intensities associated with each of the intensities of the red color, the green color, and the blue color;
compare the gray scale version of each region of interest with pre-defined color specific histograms to determine a color associated with each of the plurality of light sources, wherein each pre-defined color specific histogram corresponds to a gray-scale equivalent of an associated color;
determine context data associated with the first image; and
assign a light source type to each of the plurality of light sources based on the color of the light source and the context data.
|