Patent ID: 11967093
Assignee: APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 6:
7. 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, wherein information of the current frame of image comprises light holder position information;
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; and
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;
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.