# US 2021/0334559 A1 · Light color identifying method and apparatus of signal light, and roadside device

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

- Number: US 2021/0334559 A1
- Document ID: US20210334559A1
- Status: Published application
- Kind: A1
- Application number: 17/366,838
- Filed: 2021-07-02
- Published: 2021-10-28
- Earliest claimed: 2020-12-03
- Assignees: Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd.
- Applicants: Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd.
- Inventors: Bo LIU
- Web page: https://patentgrep.com/patent/US20210334559A1

## CPC

- G06T 7/254: involving subtraction of images
- G06T 7/194: involving foreground-background segmentation
- G06T 7/90: Determination of colour characteristics
- G06V 20/584: {of vehicle lights or traffic lights}
- G06N 3/08: Learning methods
- G06T 2207/10024: Color image
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A light color identifying method and apparatus of a signal light, and a roadside device provided in the present application relate to the field of intelligent transportation. A solution includes: collecting an image including the signal light through an image collecting apparatus; determining a background image according to N preceding frames of images of a current frame of image, where N is a positive integer greater than or equal to 1; performing foreground identification on the current frame of image according to the background image to obtain a moving foreground, where the moving foreground represents a change of the current frame of image relative to the background image; and determining, according to the moving foreground, a light color of a light that is turned on in the current frame of image.

## Claims

### Claim 1

A light color identifying method of a signal light, comprising:
collecting an image comprising the signal light through an image collecting apparatus;
determining a background image according to N preceding frames of images of a current frame of image, wherein N is a positive integer greater than or equal to 1;
performing foreground identification on the current frame of image according to the background image to obtain a moving foreground, wherein the moving foreground represents a change of the current frame of image relative to the background image; and
determining, according to the moving foreground, a light color of a light that is turned on in the current frame of image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining, according to the moving foreground, the light color of the light that is turned on in the current frame of image comprises:
when the current frame of image has no moving foreground identified, determining, according to a light color of a light that was turned on in a preceding frame of image, the light color of the light that is turned on in the current frame of image.

### Claim 3 (depends on 2)

The method according to claim 2, wherein information of the current frame of image comprises light holder position information; and
the determining, according to the moving foreground, the light color of the light that is turned on in the current frame of image comprises:
determining, according to a light holder position corresponding to the moving foreground in the current frame of image, the light color of the light that is turned on in the current frame of image.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the determining, according to the light holder position corresponding to the moving foreground in the current frame of image, the light color of the light that is turned on in the current frame of image comprises:
when two moving foregrounds corresponding to different light holder positions are identified in the current frame of image, determining, according to the light color of the light that was turned on in the preceding frame of image and a preset light color switching process, the light color of the light that is turned on in the current frame of image.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the determining, according to the light holder position corresponding to the moving foreground in the current frame of image, the light color of the light that is turned on in the current frame of image comprises:
when one moving foreground corresponding to one light holder position is identified in the current frame of image, determining, according to the light color corresponding to the light holder position, the light color of the light that is turned on in the current frame of image.

### Claim 6 (depends on 3)

The method according to claim 3, wherein attribute information of the signal light is pre-marked, and the method further comprises:
determining the light color of the signal light corresponding to the light holder position according to the attribute information.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the determining the background image according to the N preceding frames of images of the current frame of image comprises:
performing background modeling according to the N preceding frames of images to determine the background image.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the performing the foreground identification on the current frame of image according to the background image to obtain the moving foreground comprises:
determining, in the current frame of image, a matching area corresponding to the background image; and
comparing the background image with the matching area, and determining, in the current frame of image, the moving foreground according to a comparison result.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the collecting the image comprising the signal light through the image collecting apparatus comprises:
collecting an image to be processed through the image collecting apparatus, wherein the image to be processed comprises a signal light; and
cropping, according to preset mark information, an image comprising the signal light out of the image to be processed.

### Claim 10

A light color identifying apparatus of a signal light, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor;
wherein the memory has stored therein instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
collect an image comprising the signal light through an image collecting apparatus;
determine a background image according to N preceding frames of images of a current frame of image, wherein N is a positive integer greater than or equal to 1;
perform foreground identification on the current frame of image according to the background image to obtain a moving foreground, wherein the moving foreground represents a change of the current frame of image relative to the background image; and
determine, according to the moving foreground, a light color of a light that is turned on in the current frame of image.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein the instructions further enable the at least one processor to:
when the current frame of image has no moving foreground identified, determine, according to a light color of a light that was turned on in a preceding frame of image, the light color of the light that is turned on in the current frame of image.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein information of the current frame of image comprises light holder position information; and
the instructions further enable the at least one processor to:
determine, according to a light holder position corresponding to the moving foreground in the current frame of image, the light color of the light that is turned on in the current frame of image.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the instructions further enable the at least one processor to:
when two moving foregrounds corresponding to different light holder positions are identified in the current frame of image, determine, according to the light color of the light that was turned on in the preceding frame of image and a preset light color switching process, the light color of the light that is turned on in the current frame of image.

### Claim 14 (depends on 12)

The apparatus according to claim 12, wherein the instructions further enable the at least one processor to:
when one moving foreground corresponding to one light holder position is identified in the current frame of image, determine, according to the light color corresponding to the light holder position, the light color of the light that is turned on in the current frame of image.

### Claim 15 (depends on 12)

The apparatus according to claim 12, wherein the instructions further enable the at least one processor to:
determine the light color of the signal light corresponding to the light holder position according to the attribute information.

### Claim 16 (depends on 10)

The apparatus according to claim 10, wherein the instructions further enable the at least one processor to:
perform background modeling according to the N preceding frames of images to determine the background image.

### Claim 17 (depends on 10)

The apparatus according to claim 10, wherein the instructions further enable the at least one processor to:
determine, in the current frame of image, a matching area corresponding to the background image; and
compare the background image with the matching area, and determine, in the current frame of image, the moving foreground according to a comparison result.

### Claim 18 (depends on 10)

The apparatus according to claim 10, wherein the instructions further enable the at least one processor to:
collect an image to be processed through the image collecting apparatus, wherein the image to be processed comprises a signal light; and
crop, according to preset mark information, an image comprising the signal light out of the image to be processed.

### Claim 19

A non-transitory computer readable storage medium having stored therein computer instructions for causing a computer to:
collect an image comprising the signal light through an image collecting apparatus;
determine a background image according to N preceding frames of images of a current frame of image, wherein N is a positive integer greater than or equal to 1;
perform foreground identification on the current frame of image according to the background image to obtain a moving foreground, wherein the moving foreground represents a change of the current frame of image relative to the background image; and
determine, according to the moving foreground, a light color of a light that is turned on in the current frame of image.

### Claim 20 (depends on 10)

A roadside device, comprising: the apparatus according to claim 10.
