# US 2023/0401875 A1 · Method for recognizing illumination state of traffic lights, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0401875 A1
- Document ID: US20230401875A1
- Status: Published application
- Kind: A1
- Application number: 18/091,126
- Filed: 2022-12-29
- Published: 2023-12-14
- Earliest claimed: 2022-06-08
- Assignees: Hon Hai Precision Industry Co., Ltd.
- Applicants: Hon Hai Precision Industry Co., Ltd.
- Inventors: SHIH-CHAO CHIEN; CHIN-PIN KUO
- Web page: https://patentgrep.com/patent/US20230401875A1

## CPC

- G06V 20/584: {of vehicle lights or traffic lights}
- G06T 7/11: Region-based segmentation
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06V 10/267: {by performing operations on regions, e.g. growing, shrinking or watersheds}
- G06V 10/56: relating to colour
- G06V 10/60: relating to illumination properties, e.g. using a reflectance or lighting model
- G06V 10/82: using neural networks
- G06T 2207/10024: Color image
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30252: Vehicle exterior; Vicinity of vehicle
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A vehicle-borne method for recognizing the illumination state of traffic lights even against a backlighting of strong sunlight or other light source obtains a first image of a set of traffic lights in a road traffic environment. A segmentation map is acquired by dividing a first region from the first image, and an illumination region in the segmentation map is extracted by marking RGB pixels in the region which are of a preset threshold in brightness according to a training model. A lit color of the set of traffic lights is recognized according to a position of the illumination region in the segmentation map. By utilizing the method, accuracy of recognition of illumination state of traffic lights is improved.

## Claims

### Claim 1

A method for recognizing traffic lights, comprising:
acquiring a first image that comprises a set of traffic lights;
when detecting that the first image is in a 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;
recognizing a lit color of the set of traffic lights according to a position of the illumination region in the segmentation map.

### Claim 2 (depends on 1)

The method of claim 1, wherein extracting an illumination region from the segmentation map comprises:
converting a red green blue (RGB) color gamut of pixels in the segmentation map to a hue, saturation, value (HSV) color gamut, and obtaining a converted segmentation map;
extracting the illumination region from the converted segmentation map using a preset threshold.

### Claim 3 (depends on 2)

The method of claim 2, wherein extracting the illumination region from the converted segmentation map using a preset threshold comprises:
acquiring a value of a V channel of each pixel in the converted segmentation map;
determining pixels whose values of the V channel are greater than the preset threshold as the first pixels;
determining the illumination region by filtering a region where the first pixels are located.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
acquiring values of the V channel of all pixels in the converted segmentation map, and determining a total value according to the acquired values;
obtaining the preset threshold by averaging the total values.

### Claim 5 (depends on 1)

The method of claim 1, wherein recognizing a lit color of the set of traffic lights according to a position of the illumination region in the segmentation map comprises:
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;
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.

### Claim 6 (depends on 1)

The method of claim 1, wherein obtaining a segmentation map by dividing a first region from the first image comprises:
obtaining the segmentation map by using a segmentation network to divide the first region from the first image.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
recognizing the lit color of the set of traffic lights in the first image;
in response that no lit color of the traffic light is recognized, determining that the first image is in the backlight scene.

### Claim 8

An electronic device comprising:
a processor; and
a storage device storing a plurality of instructions, which when executed by the processor, cause the processor to:
acquire a first image that comprises a set of traffic lights;
when detecting that the first image is in a backlight scene, obtain 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;
extract an illumination region from the segmentation map;
recognize a lit color of the set of traffic lights according to a position of the illumination region in the segmentation map.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the processor is further caused to:
convert a red green blue (RGB) color gamut of pixels in the segmentation map to a hue, saturation, value (HSV) color gamut, and obtain a converted segmentation map;
extract the illumination region from the converted segmentation map using a preset threshold.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the processor is further caused to:
acquire a value of a V channel of each pixel in the converted segmentation map;
determine pixels whose values of the V channel are greater than the preset threshold as the first pixels;
determine the illumination region by filtering a region where the first pixels are located.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the processor is further caused to:
acquire values of the V channel of all pixels in the converted segmentation map, and determining a total value according to the acquired values;
obtain the preset threshold by averaging the total values.

### Claim 12 (depends on 8)

The electronic device of claim 8, wherein the processor is further caused to:
divide the segmentation map into three regions equally, wherein each of the three regions corresponds to a signal light in the set of traffic lights;
acquire a location of the illumination region and a location of each of the three regions;
determine 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;
output a lit color corresponding to the target region.

### Claim 13 (depends on 8)

The electronic device of claim 8, wherein the processor is further caused to:
obtain the segmentation map by using a segmentation network to divide the first region from the first image.

### Claim 14 (depends on 8)

The electronic device of claim 8, wherein the processor is further caused to:
recognize the lit color of the set of traffic lights in the first image;
in response that no lit color of the traffic light is recognized, determine that the first image is in the backlight scene.

### Claim 15

A non-transitory storage medium having stored thereon at least one computer-readable instructions that, when executed by a processor of an electronic device, causes the processor to perform a method for adjusting point cloud density, the method comprising:
acquiring a first image that comprises a set of traffic lights;
when detecting that the first image is in a 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;
recognizing a lit color of the set of traffic lights according to a position of the illumination region in the segmentation map.

### Claim 16 (depends on 15)

The non-transitory storage medium of claim 15, wherein extracting an illumination region from the segmentation map comprises:
converting a red green blue (RGB) color gamut of pixels in the segmentation map to a hue, saturation, value (HSV) color gamut, and obtaining a converted segmentation map;
extracting the illumination region from the converted segmentation map using a preset threshold.

### Claim 17 (depends on 16)

The non-transitory storage medium of claim 16, wherein extracting the illumination region from the converted segmentation map using a preset threshold comprises:
acquiring a value of a V channel of each pixel in the converted segmentation map;
determining pixels whose values of the V channel are greater than the preset threshold as the first pixels;
determining the illumination region by filtering a region where the first pixels are located.

### Claim 18 (depends on 17)

The non-transitory storage medium of claim 17, further comprising:
acquiring values of the V channel of all pixels in the converted segmentation map, and determining a total value according to the acquired values;
obtaining the preset threshold by averaging the total values.

### Claim 19 (depends on 15)

The non-transitory storage medium of claim 15, wherein recognizing a lit color of the set of traffic lights according to a position of the illumination region in the segmentation map comprises:
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;
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.

### Claim 20 (depends on 15)

The non-transitory storage medium of claim 15, wherein obtaining a segmentation map by dividing a first region from the first image comprises:
obtaining the segmentation map by using a segmentation network to divide the first region from the first image.
