US 12,430,926 B2
Method for recognizing illumination state of traffic lights, electronic device, and storage medium
Shih-Chao Chien, New Taipei (TW); and Chin-Pin Kuo, New Taipei (TW)
Assigned to HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed by HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed on Dec. 29, 2022, as Appl. No. 18/091,126.
Claims priority of application No. 202210647518.9 (CN), filed on Jun. 8, 2022.
Prior Publication US 2023/0401875 A1, Dec. 14, 2023
Int. Cl. G06V 20/00 (2022.01); G06T 7/11 (2017.01); G06T 7/70 (2017.01); G06V 10/26 (2022.01); G06V 10/56 (2022.01); G06V 10/60 (2022.01); G06V 10/82 (2022.01); G06V 20/58 (2022.01)
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
OG exemplary drawing
 
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.