Patent ID: 11915492
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 9:
10. An apparatus, comprising:
one or more processors; and
a memory that is coupled to the one or more processors, wherein the memory is configured to store computer program code, the computer program code comprises instructions, and when the one or more processors execute the instructions, the apparatus performs a traffic light recognition method comprising:
obtaining current positioning information of a vehicle and a first image, wherein the first image is currently obtained by using an image sensor;
determining location information of n first traffic lights in the first image based on the current positioning information of the vehicle, a calibration parameter of the image sensor, and prestored map data, wherein n is an integer greater than or equal to 1;
detecting the first image by using an image detection method, to obtain location information of m second traffic lights in the first image and indication information of the m second traffic lights, wherein the indication information comprises at least one of a color and semantic indication information, and m is an integer greater than or equal to 1;
determining, based on the location information of the n first traffic lights in the first image and the location information of the m second traffic lights in the first image and based on a preset error constraint, a first traffic light and a second traffic light that match each other; and
obtaining indication information of the second traffic light that matches the first traffic light.