| CPC G06V 20/584 (2022.01) [G06T 7/11 (2017.01); G06T 7/70 (2017.01); G06V 10/267 (2022.01); G06V 10/56 (2022.01); G06V 10/60 (2022.01); G06V 10/82 (2022.01); G06T 2207/10024 (2013.01); G06T 2207/20021 (2013.01); G06T 2207/20084 (2013.01); G06T 2207/30252 (2013.01)] | 15 Claims |

|
1. A method for recognizing traffic lights, comprising:
acquiring a first image that comprises a set of traffic lights;
recognizing a lit color of the set of traffic lights in the first image;
in response that no lit color of the traffic lights is recognized, confirming that the first image is in a backlight scene;
when confirming that the first image is in the backlight scene, obtaining a segmentation map by dividing a first region from the first image, in which the first region is an image region of the set of traffic lights;
extracting an illumination region from the segmentation map, comprising: dividing the segmentation map into three regions equally, wherein each of the three regions corresponds to a signal light in the set of traffic lights; determining a brightness of each region of the three regions, and determining a region with the highest brightness among the three regions as the illumination region;
recognizing a lit color of the set of traffic lights according to a position of the illumination region in the segmentation map, comprising: acquiring a location of the illumination region and a location of each of the three regions; determining a region where the illumination region is located from the three regions as a target region, according to the location of the illumination region and the location of each of the three regions; outputting a lit color corresponding to the target region.
|