Traffic signal lamp detection method, electronic equipment, vehicle, medium and product

By detecting the vehicle driving environment information on the traffic light box and light position, and using a pre-trained detection model to determine the target detection results of the traffic light, the problem of limited identification accuracy in the prior art is solved, and the detection accuracy and command effectiveness are improved.

CN120057003AActive Publication Date: 2025-05-30BYD CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510538926.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-05-30
Estimated Expiration
2045-04-27

AI Technical Summary

Technical Problem

In the prior art, the recognition accuracy of traffic lights is relatively limited, which affects the execution effect of the vehicle's intelligent driving function and the user's driving experience.

Method used

By detecting the vehicle driving environment information on the traffic light box and light position, the pre-trained detection model is used to extract features and detect, and the detection results of the light box and light position are determined, thereby determining the target detection results of the traffic light.

Benefits of technology

It improves the detection accuracy of traffic lights, reduces false detection, adapts to various types of traffic lights, and ensures the effectiveness of instructions generated by vehicles based on target detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120057003A_ABST
    Figure CN120057003A_ABST
Patent Text Reader

Abstract

The invention discloses a traffic signal lamp detection method, electronic equipment, a vehicle, a computer readable storage medium and a computer program product, and the method comprises the steps: carrying out the detection of a traffic signal lamp box and a traffic signal lamp position according to the obtained vehicle driving environment information, and determining a lamp box detection result and a lamp position detection result, and determining a target detection result of the traffic signal lamp according to the lamp box detection result and the lamp position detection result. Therefore, the traffic signal lamp box and the traffic signal lamp position can be detected according to the vehicle driving environment information, and the target detection result of the traffic signal lamp is determined according to the lamp box detection result and the lamp position detection result, so that the detection of the traffic signal lamp is realized based on multi-dimensional information; false detection is avoided, various types of traffic lights are adapted, the precision of the target detection result of the traffic light is guaranteed, and the effectiveness of the instruction generated by the vehicle according to the target detection result is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicles, and particularly relates to a method for detecting traffic lights, an electronic device, a vehicle, a computer-readable storage medium, and a computer program product. Background Art

[0002] To meet the needs of users, vehicles can be equipped with intelligent driving functions, such as identifying information such as the color and shape of traffic lights to assist vehicle driving. However, in this case, the recognition accuracy of traffic lights in related technologies is relatively limited, thus affecting the execution effect of the vehicle intelligent driving function to a certain extent, and further affecting the vehicle riding experience of users. Summary of the Invention

[0003] The present application provides a method for detecting traffic lights, an electronic device, a vehicle, a computer-readable storage medium, and a computer program product.

[0004] An embodiment of the present application provides a method for detecting traffic lights, including: Detect the traffic light light box and the traffic light position for the obtained vehicle driving environment information to determine the light box detection result and the light position detection result; Determine the target detection result of the traffic light according to the light box detection result and the light position detection result.

[0005] In this way, in the embodiment of the present application, the vehicle driving environment information can be detected for the traffic light light box and the traffic light position, and the target detection result of the traffic light can be determined according to the light box detection result and the light position detection result. Thus, to a certain extent, the detection of traffic lights is realized based on multi-dimensional information, and misdetection can be avoided to a certain extent and various types of traffic lights can be adapted, so as to ensure the accuracy of the target detection result of the traffic light, and further ensure the effectiveness of the instruction generated by the vehicle according to the target detection result.

[0006] In some embodiments of the present application, the target detection result includes at least one of the light box position, the light position color, and the light position shape.

[0007] In this way, in the embodiment of the present application, at least one of the light box position, the light position color, and the light position shape of the traffic light can be determined through the light box detection result and the light position detection result, so as to complete the detection of the traffic light.

[0008] In some embodiments of the present application, the vehicle driving environment information includes a vehicle driving environment image.

[0009] Thus, in the embodiments of the present application, it is possible to detect the traffic signal light box and the traffic signal light position for the driving environment image, thereby ensuring the detection accuracy of the traffic signal light box and the traffic signal light position to a certain extent.

[0010] In some embodiments of the present application, the detection of the traffic signal light box and the traffic signal light position for the obtained vehicle driving environment information, and determining the light box detection result and the light position detection result, include: According to a detection model that has been pre-trained and can be deployed in a vehicle, performing the detection on the vehicle driving environment image to determine the light box detection result and the light position detection result, wherein the detection model is configured to perform detection on the vehicle driving environment image for the traffic signal light box and the traffic signal light position.

[0011] Thus, in the embodiments of the present application, it is possible to perform detection on the vehicle driving environment image through a detection model that has been pre-trained and can be deployed in a vehicle, so as to determine the light box detection result and the light position detection result. To a certain extent, it can ensure the efficient determination of the light box detection result and the light position detection result, and further ensure the detection efficiency of traffic signals.

[0012] In some embodiments of the present application, the detection model is configured to: Extract features from the vehicle driving environment image to determine vehicle driving environment image features; Perform detection on the vehicle driving environment image features for the traffic signal light box and the traffic signal light position to determine the light box detection result and the light position detection result.

[0013] Thus, in the embodiments of the present application, it is possible to extract features from the vehicle driving environment image based on the detection model to determine vehicle driving environment image features, and perform detection on the vehicle driving environment image features for the traffic signal light box and the traffic signal light position to determine the light box detection result and the light position detection result. Thereby, the light box detection result and the light position detection result can be determined based on the vehicle driving environment image features, ensuring the reliability of the light box detection result and the light position detection result to a certain extent.

[0014] In some embodiments of the present application, the detection model includes a backbone module and at least two branch modules; The backbone module is configured to extract features from the vehicle driving environment image to determine vehicle driving environment image features; At least one of the branch modules is configured to perform detection on the vehicle driving environment image features for the traffic signal light box to determine the light box detection result; At least another one of the branch modules is configured to detect the image features of the vehicle driving environment for the traffic signal light positions and determine the light position detection results.

[0015] Thus, in the embodiments of the present application, the detection model can be implemented based on the backbone module and at least two branch modules.

[0016] In some embodiments of the present application, the light box detection results include at least one of the light box size, the number of light positions in the light box, the light box type, and the light box prediction probability.

[0017] Thus, in the embodiments of the present application, at least one of the light box size, the number of light positions in the light box, the light box type, and the light box prediction probability can be detected according to the vehicle driving environment information, thereby determining the light box detection results.

[0018] In some embodiments of the present application, the light position detection results include at least one of the light position size, the light position color, the light position shape, and the light position prediction probability.

[0019] Thus, in the embodiments of the present application, at least one of the light position size, the light position shape, and the light position prediction probability can be detected according to the vehicle driving environment information, thereby determining the light position detection results.

[0020] In some embodiments of the present application, the light box detection results include the light box prediction probabilities of multiple candidate light boxes, the light position detection results include the light position prediction probabilities of multiple candidate light positions, and determining the target detection results of the traffic signal light according to the light box detection results and the light position detection results includes: Determining a target candidate light box and a target candidate light position according to the light box prediction probabilities of the multiple candidate light boxes and the light position prediction probabilities of the multiple candidate light positions; Determining the target detection results according to the target candidate light box and the target candidate light position.

[0021] Thus, in the embodiments of the present application, a target candidate light box and a target candidate light position can be determined according to the light box prediction probabilities of multiple candidate light boxes and the light position prediction probabilities of multiple candidate light positions, and the target detection results of the traffic signal light can be determined according to the target candidate light box and the target candidate light position, thereby determining the target detection results of the traffic signal light.

[0022] In some embodiments of the present application, determining a target candidate light box and a target candidate light position according to the light box prediction probabilities of the multiple candidate light boxes and the light position prediction probabilities of the multiple candidate light positions includes: Determine the candidate light boxes with the predicted light box probability greater than or equal to the first threshold as the target candidate light boxes, and determine the candidate light positions with the predicted light position probability greater than or equal to the second threshold as the target candidate light positions.

[0023] In this way, in the embodiment of the present application, the candidate light boxes with the predicted light box probability greater than or equal to the first threshold can be used as the target candidate light boxes, and the candidate light positions with the predicted light position probability greater than or equal to the second threshold can be used as the target candidate light positions, so as to ensure the effectiveness and reliability of the target candidate light positions and the target candidate light boxes.

[0024] In some embodiments of the present application, each of the light box detection results further includes the light box sizes of a plurality of the candidate light boxes, and each of the light position detection results further includes the light position sizes of a plurality of the candidate light positions. Determining the target detection result according to the target candidate light boxes and the target candidate light positions includes: In the case where there are multiple target candidate light boxes and multiple target candidate light positions, determine the target candidate light positions corresponding to each target candidate light box according to the ratio of the light box size of each target candidate light box to the light position size of each target candidate light position; Determine the target detection result of the traffic signal corresponding to each target candidate light box according to each target candidate light box and the target candidate light position corresponding to each target candidate light box.

[0025] In this way, in the embodiment of the present application, in the case where there are multiple target candidate light boxes and multiple target candidate light positions, determine the target candidate light positions corresponding to each target candidate light box according to the ratio of the light box size of each target candidate light box to the light position size of each target candidate light position, and determine the target detection result of the traffic signal corresponding to each target candidate light box according to each target candidate light box and the target candidate light position corresponding to each target candidate light box, whereby accurate detection and recognition of each traffic signal in the driving environment by the vehicle can be ensured.

[0026] In some embodiments of the present application, the detection of the traffic signal light box and the traffic signal light position for the obtained vehicle driving environment information to determine the light box detection result and the light position detection result includes: Preprocess the obtained vehicle driving environment information to determine the processed environment information; Perform the detection on the processed environment information to determine the light box detection result and the light position detection result.

[0027] Thus, in the embodiments of the present application, the acquired vehicle driving environment information can be preprocessed to determine the processed environment information, and the processed environment information can be detected to determine the light box detection result and the light position detection result, so that the light box detection result and the light position detection result can be determined based on the preprocessed vehicle driving environment information, thereby making the light box detection result and the light position detection result reliable.

[0028] An embodiment of the present application provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and when the computer program is executed by the processor, the above traffic signal detection method is implemented.

[0029] An embodiment of the present application provides a vehicle, including the above electronic device.

[0030] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the above traffic signal detection method is implemented.

[0031] An embodiment of the present application provides a computer program product, including a computer program / instructions. When the computer program / instructions are executed by a processor, the above traffic signal detection method is implemented.

[0032] The electronic device, vehicle, computer-readable storage medium, and computer program product provided by the embodiments of the present application can detect the vehicle driving environment information for the traffic signal light box and the traffic signal light position, and determine the target detection result of the traffic signal according to the light box detection result and the light position detection result. Thus, to a certain extent, the detection of the traffic signal is realized based on multi-dimensional information, and to a certain extent, misdetection can be avoided and traffic lights of various types can be adapted, so as to ensure the accuracy of the target detection result of the traffic signal, and further ensure the effectiveness of the instruction generated by the vehicle according to the target detection result.

[0033] The additional aspects and advantages of the embodiments of the present application will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the embodiments of the present application. Description of the Drawings

[0034] The above and / or additional aspects and advantages of the present application will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, where: Figure 1 is one of the flow diagrams of the traffic signal detection method in some embodiments of the present application; Figure 2 is one of the application scenario diagrams in some embodiments of the present application; Figure 3 It is the second application scenario diagram in some embodiments of the present application; Figure 4 It is the third application scenario diagram in some embodiments of the present application; Figure 5 It is the fourth application scenario diagram in some embodiments of the present application; Figure 6 It is the fifth application scenario diagram in some embodiments of the present application; Figure 7 It is the second flow schematic diagram of the traffic signal detection method in some embodiments of the present application; Figure 8 It is the third flow schematic diagram of the traffic signal detection method in some embodiments of the present application; Figure 9 It is the fourth flow schematic diagram of the traffic signal detection method in some embodiments of the present application; Figure 10 It is the fifth flow schematic diagram of the traffic signal detection method in some embodiments of the present application; Figure 11 It is the sixth flow schematic diagram of the traffic signal detection method in some embodiments of the present application. Detailed implementation manners

[0035] The following details the implementation manners of the present application. The examples of the implementation manners are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout. The implementation manners described below with reference to the accompanying drawings are exemplary and are only used to explain the implementation manners of the present application and should not be construed as a limitation on the implementation manners of the present application.

[0036] In autonomous driving and intelligent transportation systems, the recognition and understanding of traffic signals are one of the key factors to ensure traffic safety and smoothness. Information such as the position and type of traffic signals directly affects the speed and behavior of vehicles. Therefore, accurately detecting information such as the position and type of traffic signals is crucial for the safety of vehicles and users.

[0037] Furthermore, to improve the recognition accuracy of traffic lights, a traffic light recognition scheme based on Deep Learning has been proposed in the related art. It can be understood that significant progress has been made in the field of traffic light recognition with Deep Learning, and most schemes are based on deep learning technologies such as Convolutional Neural Networks (CNNs) to improve the accuracy and robustness of traffic light detection. It can also be understood that these schemes mostly rely on large-scale labeled traffic light image datasets to accurately classify the states of traffic lights by training deep neural networks. For example, in a traffic light recognition scheme based on Deep Learning, the angles, depths, and occlusion branches of the target traffic lights in the features can be detected and output, and the color, shape, etc. of the traffic lights can be determined according to the output results of each branch.

[0038] Furthermore, to achieve real-time object detection, some schemes are implemented based on models such as YOLO (You Only Look Once) and Faster R-CNN (Faster Region-based Convolutional Neural Network) to quickly identify traffic lights in complex traffic scenarios.

[0039] In addition, some schemes have proposed the recognition of traffic lights based on multi-modal information, such as based on images and video streams, and effective monitoring of dynamic traffic light states is achieved through methods such as Recurrent Neural Network (RNN).

[0040] It can be understood that the above-mentioned traffic light recognition schemes based on Deep Learning have played an important role in improving traffic safety and intelligent traffic management, laying a foundation for the development of future intelligent transportation systems.

[0041] However, the traffic light recognition task faces difficulties and challenges in many aspects, mainly concentrated in the following aspects: Diverse types: Different regions and countries may adopt different types, shapes, and colors of traffic lights. Therefore, the algorithm needs to be able to adapt to various changes in traffic lights, including red lights, yellow flashing lights, and pedestrian lights, etc.

[0042] Inaccurate labels: To train a deep learning model, a large amount of labeled training data is required. However, the process of labeling traffic lights can be quite cumbersome and time-consuming, especially when the traffic lights are occluded, appear in complex scenarios, or require fine-grained annotation.

[0043] Sample imbalance: The traffic signal data is collected from roads. The collection of traffic signal images is not comprehensive, and there are large sample biases. For example, the sample sizes of yellow lights and right-turn red lights are small, which poses certain difficulties for the recognition of these categories.

[0044] Small detection targets: Traffic signals are usually relatively small targets in the image. Therefore, challenges are faced in dealing with the recognition of small targets, including accurately positioning small targets in the image, handling scale changes, and maintaining high accuracy.

[0045] Requirement for real-time performance: In the traffic management system, there is a high requirement for the real-time accuracy of traffic signal states. The algorithm needs to complete rapid inference and decision-making within a short time to ensure smooth and safe traffic.

[0046] Based on the above possible problems, please refer to Figure 1 , the embodiments of the present application provide a method for detecting traffic signals, including: 01: Detect the traffic signal light box and traffic signal light position for the obtained vehicle driving environment information to determine the light box detection result and the light position detection result; 02: Determine the target detection result of the traffic signal according to the light box detection result and the light position detection result.

[0047] The embodiments of the present application further provide an electronic device, which includes a memory and a processor. The method for detecting traffic signals in the embodiments of the present application can be implemented by the electronic device in the embodiments of the present application. Specifically, a computer program is stored in the memory, and the processor is used to detect the traffic signal light box and traffic signal light position for the obtained vehicle driving environment information to determine the light box detection result and the light position detection result, and is used to determine the target detection result of the traffic signal according to the light box detection result and the light position detection result.

[0048] Specifically, in the embodiments of the present application, a vehicle (or an electronic device) can detect the traffic signal light box and traffic signal light position for the obtained vehicle driving environment information, so as to determine the detection result of the traffic signal light box and the detection result of the traffic signal light position, that is, the light box detection result and the light position detection result. And, the vehicle (or an electronic device) can determine the target detection result of the traffic signal according to the light box detection result and the light position detection result, such as determining the color, shape, etc. of the traffic signal.

[0049] Thus, in the implementation mode of the present application, the vehicle driving environment information can be used to detect the traffic light box and the traffic light position, and the target detection result of the traffic light can be determined based on the light box detection result and the light position detection result. This enables the detection of traffic lights to be based on multi-dimensional information to a certain extent, avoids false detection to a certain extent, and adapts to various types of traffic lights, thereby ensuring the accuracy of the target detection results of traffic lights, and further ensuring the effectiveness of the instructions generated by the vehicle based on the target detection results.

[0050] In one example, the vehicle driving environment information is information obtained by the vehicle sensing the external environment through sensors such as cameras and radars mounted on the vehicle body.

[0051] In one example, a traffic light box refers to a light box structure installed on a traffic light (such as a traffic light), which is usually used to accommodate lighting equipment such as a light bulb or LED lamp and provide protection to prevent the light bulb from being damaged or affected by the external environment. Figure 2 , Figure 3 and Figure 4 , Figure 2 , Figure 3 and Figure 4 These are schematic diagrams of application scenarios in certain embodiments of the present application. Figure 2 As shown, the first light box 110 includes three light positions, which are arranged in sequence in the first light box 110 along the horizontal direction. Figure 3 As shown, the second light box 120 includes three light positions, which are arranged in sequence in the second light box 120 along the vertical direction. Figure 4 As shown, the light boxes in the embodiments of the present application include multiple types, such as a three-light position light box, a four-light position light box, a pedestrian light box, a multi-light light box and a side light box.

[0052] In one example, light position refers to the position or angle of different signal lights. For example, traffic lights usually consist of three colors of red, yellow, and green lights, representing stop, warning, and passage, respectively, and these lights are installed in different positions so that pedestrians and vehicles can clearly see and obey traffic rules.

[0053] For details, please refer to Figure 2 , Figure 3 , Figure 4 and Figure 5 , Figure 5 Schematic diagram of application scenarios in certain embodiments of the present application. Figure 2 As shown, Figure 2 The first light box 110 shown includes three light positions, namely a first light position 111, a second light position 112 and a third light position 113. Figure 3The second light box 120 shown includes three lamp positions, namely the fourth lamp position 121, the fifth lamp position 122, and the sixth lamp position 123. Figure 4 There are shown a three-lamp light box, a four-lamp light box, and a pedestrian light box including two lamp positions. Figure 5 There are shown the shape types and color types of the lamp positions. The color types include three types: red, green, and yellow. The shape types include circular, left-turn arrow-shaped, right-turn arrow-shaped, straight-ahead arrow-shaped, pedestrian-shaped, downward arrow-shaped representing passable, X-shaped representing non-passable, and digital-shaped representing the remaining time of the signal lamp.

[0054] It can be understood that under different lighting conditions, weather conditions, and viewing angles, the visibility of the traffic signal light box and the traffic signal lamp positions may vary. It can also be understood that the embodiments of the present application detect the traffic signal light box and the traffic signal lamp positions, thereby improving the detection accuracy of the traffic signal under different lighting conditions, weather conditions, and viewing angles, and ensuring that the status information such as the color and shape of the traffic signal can be accurately recognized in various situations. Moreover, different traffic lights may have different light box designs and lamp position layouts. Detecting the light box and the lamp positions separately can make the detection of traffic signals more flexibly adapt to these differences in lighting conditions, weather conditions, and viewing angles, and guarantee the detection accuracy.

[0055] In one example, the target detection result of the traffic signal includes the current traffic signal indicated by the traffic signal, such as allowing straight-ahead, not allowing straight-ahead, allowing left-turn, not allowing left-turn, etc.

[0056] In some embodiments of the present application, the target detection result includes at least one of the light box position, the lamp position color, and the lamp position shape.

[0057] Specifically, in the embodiments of the present application, the vehicle can determine at least one of the light box position, the lamp position color, and the lamp position shape of the traffic signal based on the light box detection result and the lamp position detection result.

[0058] In one example, the light box position is the position where the traffic signal light box is located.

[0059] In one example, the lamp position color is the color of the lamp position in the traffic signal. Figure 2 For example, Figure 2 for the traffic signal shown, the color of the first lamp position 111, the color of the second lamp position 112, and the color of the third lamp position 113 can be determined.

[0060] In one example, the lamp position shapes include circular, left-turn arrow-shaped, right-turn arrow-shaped, straight-ahead arrow-shaped, pedestrian-shaped, downward arrow-shaped representing passable, X-shaped representing non-passable, and digital-shaped representing the remaining time of the signal lamp.

[0061] Thus, in the embodiments of the present application, at least one of the light box position, the light position color, and the light position shape of the traffic signal can be determined through the light box detection result and the light position detection result, thereby completing the detection of the traffic signal.

[0062] In some embodiments of the present application, the driving environment information includes driving environment images.

[0063] Specifically, in the embodiments of the present application, the vehicle detects the traffic signals in the current driving road of the vehicle through the images captured by the cameras mounted on the vehicle body, that is, the driving environment images. In other words, the vehicle in the embodiments of the present application can perform image processing on the driving environment image information, thereby realizing the detection of the traffic signal light box and the traffic signal light position in the driving environment image information.

[0064] Thus, in the embodiments of the present application, the detection of the traffic signal light box and the traffic signal light position can be performed on the driving environment image, thereby ensuring the detection accuracy of the traffic signal light box and the traffic signal light position to a certain extent.

[0065] In some embodiments of the present application, step 01 includes: Detecting the vehicle driving environment image according to a detection model that has been pre-trained and can be deployed in the vehicle, and determining the light box detection result and the light position detection result, wherein the detection model is configured to detect the traffic signal light box and the traffic signal light position in the vehicle driving environment image.

[0066] The processor in the embodiments of the present application is further configured to detect the vehicle driving environment image according to a detection model that has been pre-trained and can be deployed in the vehicle, and determine the light box detection result and the light position detection result, wherein the detection model is configured to detect the traffic signal light box and the traffic signal light position in the vehicle driving environment image.

[0067] Specifically, in the embodiments of the present application, the vehicle can detect the driving environment image based on a detection model that has been pre-trained and can be deployed in the vehicle, that is, detect the traffic signal light box and the traffic signal light position in the vehicle driving environment image, and output the light box detection result and the light position detection result.

[0068] In one example, to ensure that the vehicle can efficiently complete the detection of traffic signals, and to realize the real-time detection and recognition of traffic light states, and improve the real-time response speed and driving efficiency of autonomous vehicles, the detection model is a lightweight model with a small number of parameters, or, after the training of the original detection model is completed, the original detection model is processed through one or more of quantization, pruning, distillation, etc. to obtain the detection model that can be deployed in the vehicle in the embodiments of the present application.

[0069] In one example, to improve the detection speed and optimize the operation efficiency of the model, the detection model is an end-to-end model. In other words, the positioning, segmentation, and classification of traffic lights are all integrated in one detection model.

[0070] Thus, in the embodiments of the present application, the detection model that has been pre-trained and can be deployed in a vehicle can be used to detect the images of the vehicle driving environment, so as to determine the light box detection result and the light position detection result, which can ensure the efficient determination of the light box detection result and the light position detection result to a certain extent, and further ensure the detection efficiency of traffic lights.

[0071] In some embodiments of the present application, the detection model is configured to: Extract features from the images of the vehicle driving environment to determine the features of the images of the vehicle driving environment; Detect the traffic light light box and the traffic light position from the features of the images of the vehicle driving environment to determine the light box detection result and the light position detection result.

[0072] Specifically, to ensure the efficient determination of the light box detection result and the light position detection result, in the embodiments of the present application, the detection model can first extract features from the images of the vehicle driving environment to determine the features of the images of the vehicle driving environment. Then, detect the traffic light light box and the traffic light position from the features of the images of the vehicle driving environment to determine the light box detection result and the light position detection result.

[0073] In one example, the detection model can perform downsampling on the images of the vehicle driving environment and use the downsampling result of the images of the vehicle driving environment as the features of the images of the vehicle driving environment.

[0074] In one example, the detection model includes a feature extraction module. Furthermore, the detection module can extract features from the images of the vehicle driving environment based on the feature extraction module to determine the features of the images of the vehicle driving environment.

[0075] In one example, the feature extraction module is constructed by convolutional layers.

[0076] Thus, in the embodiments of the present application, the features of the images of the vehicle driving environment can be extracted based on the detection model to determine the features of the images of the vehicle driving environment, and the traffic light light box and the traffic light position can be detected from the features of the images of the vehicle driving environment to determine the light box detection result and the light position detection result. As a result, the light box detection result and the light position detection result can be determined based on the features of the images of the vehicle driving environment, which ensures the reliability of the light box detection result and the light position detection result to a certain extent.

[0077] In some embodiments of the present application, the detection model includes a backbone module and at least two branch modules. The backbone module is configured to extract features from the vehicle driving environment image to determine the vehicle driving environment image features. At least one branch module is configured to detect the traffic signal light box based on the vehicle driving environment image features to determine the light box detection result. At least another branch module is configured to detect the traffic signal light position based on the vehicle driving environment image features to determine the light position detection result.

[0078] Specifically, in the embodiments of the present application, the detection model may include two parts. One is the backbone module for feature extraction, and the other is the branch module for "detecting the traffic signal light box and the traffic signal light position".

[0079] In one example, specifically refer to Figure 6 , Figure 6 which is the application scenario diagram in some embodiments of the present application, that is, as Figure 6 shown, the detection model may include a backbone module 210, a first branch module 220, and a second branch module 230. Among them, the backbone module 210 can extract features from the vehicle driving environment image and output the vehicle driving environment image features. The first branch module 220 can detect the traffic signal light box based on the vehicle driving environment image features and output the light box detection result. The second branch module 230 can detect the traffic signal light position based on the vehicle driving environment image features and output the light position detection result.

[0080] In one example, the backbone module 210 is a convolutional neural network model.

[0081] Thus, in the embodiments of the present application, the detection model can be implemented based on the backbone module and at least two branch modules.

[0082] In some embodiments of the present application, the light box detection result includes at least one of the light box size, the number of light positions in the light box, the light box type, and the light box prediction probability.

[0083] Specifically, in the embodiments of the present application, when detecting the traffic signal light box for the vehicle driving environment information, the vehicle can predict the vehicle driving environment information to predict the "light box in the vehicle driving environment information that may be the 'traffic signal light box in the real physical space'", and output at least one of the light box size, the number of light positions in the light box, the light box type, and the light box prediction probability of the light box.

[0084] In one example, the light box size may be the height and width. For example, Figure 2 and Figure 3 shown, the light box height and the light box width are the light box size.

[0085] In one example, the number of light positions in a light box refers to the number of light positions in the light box, such as Figure 2 The first light box and Figure 3 The second light box includes 3 light positions.

[0086] In one example, the light box type refers to the category of the light box, such as a three-position light box, a four-position light box, a pedestrian light box, a multi-light light box, and a side light box. Figure 2 The first light box and Figure 3 The second light boxes in the picture are all three-light position light boxes.

[0087] In one example, the light box prediction probability can be understood as the vehicle's confidence level in the light box detection result. The higher the light box prediction probability, the higher the vehicle's confidence level in the light box prediction result, and vice versa.

[0088] In such Figure 6 In an example shown, the "traffic light target position" output by the first branch module 220 can be understood as the above-mentioned "light box in the vehicle driving environment information, which may be a 'traffic light box in the real physical space'", the "light position" can be understood as the light position in the light box, and the "light box score" can be understood as the above-mentioned light box prediction probability.

[0089] Thus, in the implementation mode of the present application, at least one of the light box size, the number of light positions in the light box, the light box type and the light box prediction probability can be detected according to the vehicle driving environment information, thereby achieving the determination of the light box detection result.

[0090] In certain embodiments of the present application, the lamp position detection result includes at least one of the lamp position size, the lamp position color, the lamp position shape, and the lamp position prediction probability.

[0091] Specifically, in an embodiment of the present application, when detecting the position of a traffic light with respect to vehicle driving environment information, the vehicle can predict the vehicle driving environment information to predict "the position of a traffic light in the vehicle driving environment information that may be a 'traffic light position in the real physical space'" and output at least one of the size of the light position, the shape of the light position, and the predicted probability of the light position.

[0092] In one example, the light position dimensions may be height and width, such as Figure 3 The lamp height and lamp width shown are the lamp size.

[0093] In one example, the light position color may be one of yellow, red and green.

[0094] In one example, the light position prediction probability can be understood as the vehicle's confidence level in the light position detection result. The higher the light position prediction probability, the higher the vehicle's confidence level in the light position detection result, and vice versa.

[0095] In one example as shown in Figure 6 The "lamp position score" output by the second branch module 230 can be understood as the above-mentioned lamp position prediction probability.

[0096] Thus, in the embodiment of the present application, at least one of the lamp position size, lamp position shape, and lamp position prediction probability can be detected according to the vehicle driving environment information, thereby determining the lamp position detection result.

[0097] Please refer to Figure 7 , in some embodiments of the present application, the lamp box detection result includes the lamp box prediction probabilities of multiple candidate lamp boxes, and the lamp position detection result includes the lamp position prediction probabilities of multiple candidate lamp positions. According to the lamp box detection result and the lamp position detection result, further, step 02 includes: 020: Determine the target candidate lamp box and the target candidate lamp position according to the lamp box prediction probabilities of multiple candidate lamp boxes and the lamp position prediction probabilities of multiple candidate lamp positions; 021: Determine the target detection result according to the target candidate lamp box and the target candidate lamp position.

[0098] The processor in the embodiment of the present application is further configured to determine the target candidate lamp box and the target candidate lamp position according to the lamp box prediction probabilities of multiple candidate lamp boxes and the lamp position prediction probabilities of multiple candidate lamp positions, and is configured to determine the target detection result according to the target candidate lamp box and the target candidate lamp position.

[0099] Specifically, in the embodiment of the present application, when the vehicle detects the traffic signal lamp box and the traffic signal lamp position, and outputs the lamp box prediction probabilities of multiple candidate lamp boxes and the lamp position prediction probabilities of multiple candidate lamp positions, then the vehicle can determine the target candidate lamp box and the target candidate lamp position according to the lamp box prediction probabilities of multiple candidate lamp boxes and the lamp position prediction probabilities of multiple candidate lamp positions, and output the target detection result of the traffic signal lamp according to the target candidate lamp box and the target candidate lamp position.

[0100] In one example, the candidate lamp box refers to "the lamp box in the vehicle driving environment information that may be the 'traffic signal lamp box in the real physical space'", and the lamp box prediction probability of the candidate lamp box can be understood as the confidence level of the vehicle in the candidate lamp box. The higher the lamp box prediction probability, the higher the confidence level of the vehicle in the candidate lamp box, and vice versa.

[0101] In one example, the candidate lamp position refers to "the lamp position in the vehicle driving environment information that may be the 'traffic signal lamp position in the real physical space'", and the lamp position prediction probability of the candidate lamp position can be understood as the confidence level of the vehicle in the candidate lamp position. The higher the lamp position prediction probability, the higher the confidence level of the vehicle in the candidate lamp position, and vice versa.

[0102] In one example, the vehicle may determine a candidate light box with a light box prediction probability higher than a threshold as a target candidate light box. For example, a candidate light box with a light box prediction probability higher than 95% is determined as a target candidate light box.

[0103] In one example, the vehicle may determine a candidate light position with a light position prediction probability higher than a threshold as a target candidate light position. For example, a candidate light box with a light position prediction probability higher than 95% is determined as a target candidate light position.

[0104] Thus, in the embodiment of the present application, the target candidate light box and the target candidate light position can be determined according to the light box prediction probabilities of multiple candidate light boxes and the light position prediction probabilities of multiple candidate light positions, and the target detection result can be determined according to the target candidate light box and the target candidate light position, thereby realizing the determination of the target detection result of the traffic signal.

[0105] In some embodiments of the present application, step 020 includes: Determine a candidate light box with a light box prediction probability greater than or equal to a first threshold as a target candidate light box, and determine a candidate light position with a light position prediction probability greater than or equal to a second threshold as a target candidate light position.

[0106] The processor according to the embodiment of the present application is further configured to determine a candidate light box with a light box prediction probability greater than or equal to a first threshold as a target candidate light box, and determine a candidate light position with a light position prediction probability greater than or equal to a second threshold as a target candidate light position.

[0107] Specifically, in the embodiment of the present application, after the vehicle detects the traffic signal light box and the traffic signal light position, and outputs the light box prediction probabilities of multiple candidate light boxes and the light position prediction probabilities of multiple candidate light positions, the vehicle may use, as the target candidate light box, a candidate light box among the multiple candidate light boxes with a light box prediction probability greater than or equal to a preset first threshold. Similarly, the vehicle may use, as the target candidate light position, a candidate light position among the multiple candidate light positions with a light position prediction probability greater than or equal to a preset second threshold.

[0108] In one example, the light box detection result includes the number of internal light positions of the light box, the light box type, and the light box prediction probability of multiple candidate light boxes, and the light position detection result includes the light position shape and the light position prediction probability of multiple candidate light positions. Furthermore, after determining the target candidate light box and the target candidate light position, the vehicle can output the target detection result of the traffic signal according to the number of internal light positions of the target candidate light box, the light box type, in combination with the light position shape and the light position color of the target candidate light position.

[0109] For example, when the number of target candidate light boxes is 1, the number of lamp positions in the light box of the target candidate light box is 3, the light box type of the target candidate light box is a three-lamp-position type, the number of target candidate lamp positions is 3, the lamp position shape and lamp position color of the first target candidate lamp position are circular and green respectively, the lamp position shapes and lamp position colors of the second and third target candidate lamp positions are circular and black (or unactivated color) in sequence, then the target detection result of the traffic signal light is: three-lamp-position type, the lamp position shape and lamp position color of the first target candidate lamp position are circular and green respectively, the lamp position shapes and lamp position colors of the second and third target candidate lamp positions are circular and black respectively.

[0110] It can be understood that when the lamp position shape and lamp position color of the first target candidate lamp position are circular and green respectively, and the lamp position shapes and lamp position colors of the second target candidate lamp positions are circular and black respectively, it indicates that the current driving section allows passage.

[0111] In this way, in the embodiment of the present application, the candidate light box with a light box prediction probability greater than or equal to the first threshold can be used as the target candidate light box, and the candidate lamp position with a lamp position prediction probability greater than or equal to the second threshold can be used as the target candidate lamp position, so as to ensure the effectiveness and reliability of the target candidate lamp position and the target candidate light box.

[0112] Please refer to Figure 8 , in some embodiments of the present application, each light box detection result further includes the light box sizes of multiple candidate light boxes, and each lamp position detection result further includes the lamp position sizes of multiple candidate lamp positions. Furthermore, the above step 021 includes: 0210: When there are multiple target candidate light boxes and multiple target candidate lamp positions, determine the target candidate lamp positions corresponding to each target candidate light box according to the ratio of the light box size of each target candidate light box to the lamp position size of each target candidate lamp position; 0211: Determine the target detection result of the traffic signal light corresponding to each target candidate light box according to each target candidate light box and the target candidate lamp positions corresponding to each target candidate light box.

[0113] The processor in the embodiment of the present application is further configured to, when there are multiple target candidate light boxes and multiple target candidate lamp positions, determine the target candidate lamp positions corresponding to each target candidate light box according to the ratio of the light box size of each target candidate light box to the lamp position size of each target candidate lamp position, and to determine the target detection result of the traffic signal light corresponding to each target candidate light box according to each target candidate light box and the target candidate lamp positions corresponding to each target candidate light box.

[0114] Specifically, multiple traffic lights may be deployed on the vehicle driving road at the same time. For example, when the vehicle passes through an intersection, there may be traffic lights with three light positions in the light box at the intersection to indicate the traffic of vehicles at each intersection, and there may also be pedestrian lights to indicate the zebra crossing for pedestrians. Therefore, after the vehicle identifies the traffic light positions and traffic light boxes based on the driving environment information and determines multiple candidate light positions and multiple candidate light boxes, it may determine multiple of these candidate light positions as target candidate light positions and multiple of these candidate light boxes as target candidate light boxes at the same time.

[0115] Furthermore, to ensure that the vehicle can accurately identify the traffic signals indicated by each traffic light on the road, after the vehicle determines multiple target candidate light boxes and multiple target candidate light positions, the vehicle can determine the attribution relationship between each target candidate light box and each target candidate light position.

[0116] For example, taking Figure 2 and Figure 3 as an example, if the target candidate light positions determined by the vehicle are the first light position 111, the second light position 112, the third light position 113, the fourth light position 121, the fifth light position 122, and the sixth light position 123 in Figure 2 and Figure 3 , and the target candidate light boxes are the first light box 110 and the second light box 120 in Figure 2 and Figure 3 , then the vehicle can determine the light positions among the first light position 111, the second light position 112, the third light position 113, the fourth light position 121, the fifth light position 122, and the sixth light position 123 that belong to or are set in the first light box 110, and determine the light positions among the first light position 111, the second light position 112, the third light position 113, the fourth light position 121, the fifth light position 122, and the sixth light position 123 that belong to or are set in the second light box 120. It can be understood that, as shown in Figure 2 and Figure 3 , the first light position 111, the second light position 112, and the third light position 113 all belong to or are set in the first light box 110, and the fourth light position 121, the fifth light position 122, and the sixth light position 123 all belong to or are set in the second light box 120.

[0117] Based on this, in the embodiment of the present application, after the vehicle determines multiple target candidate light boxes and multiple target candidate light positions, according to the sizes of each target candidate light box and the sizes of each target candidate light position, calculate the ratio between each target candidate light box and each target candidate light position, and determine the attribution relationship between each target candidate light box and each target candidate light position based on this ratio, that is, determine the target candidate light positions corresponding to the target candidate light boxes.

[0118] For example, inFigure 3 In an example shown, the target candidate light box is the second light box 120, and the target candidate light positions include the fourth light position 121, the fifth light position 122, and the sixth light position 123. The size of the second light box 120 is the product of the "light box width" in Figure 3 and the "light box height" in Figure 3 . The sizes of the fourth light position 121, the fifth light position 122, and the sixth light position 123 are all the product of the "light position width" in Figure 3 and the "light position height" in Figure 3 .

[0119] Furthermore, let the product of the "light box width" in Figure 3 and the "light box height" in Figure 3 be S1, and let the product of the "light position width" in Figure 3 and the "light position height" in Figure 3 be S2. Then, the vehicle can determine the attribution relationship between each target candidate light box and each target candidate light position according to the ratio of S1 to S2, that is, determine the target candidate light position corresponding to the target candidate light box.

[0120] In an example, after the vehicle determines the ratio of the size of each target candidate light box to the size of each target candidate light position, the vehicle can determine the corresponding relationship between the target candidate light box and the target candidate light position according to the matrix corresponding to the ratio and the Hungarian algorithm. For example, if the number of target candidate light boxes is N and the number of target candidate light positions is M, then the vehicle can determine the ratio of the size of N target candidate light boxes to the size of M target candidate light positions, that is, N×M ratios, and thus obtain a matrix of size N×M.

[0121] In an example, the light box detection result further includes the number of light positions in the candidate light box and / or the light box type. It can be understood that the number of light positions in the target candidate light box and the light box type can both constrain the "ratio of the size of the target candidate light box to the size of the target candidate light position". For example, if the number of light positions in the light box is 3 or the light box type is a three-light-position light box, then the ratio of the "size of the target candidate light position set in the target candidate light box" to the size of the target candidate light box is 1 / 3. Another example is that if the number of light positions in the light box is 2 or the light box type is a pedestrian light box, then the ratio of the "size of the target candidate light position set in the target candidate light box" to the size of the target candidate light box is 1 / 2.

[0122] Thus, the vehicle can determine the attribution relationship between each target candidate light box and each target candidate light position based on the number of light positions and / or light box types inside the target candidate light box, the ratio of the size of each target candidate light box to the size of each target candidate light position, and the program code for implementing the Hungarian algorithm, that is, determine the target candidate light positions corresponding to the target candidate light boxes.

[0123] Furthermore, after the vehicle determines the target candidate light positions corresponding to each target candidate light box, the vehicle can determine the target detection results of the traffic lights corresponding to each target candidate light box based on each target candidate light box and the target candidate light positions corresponding to each target candidate light box, that is, the target detection results of each traffic light on the vehicle's driving road. For example, when passing through an intersection, it is determined that the color of the pedestrian light corresponding to the pedestrian light box is red, and it is determined that the left-turn light position of the red-green traffic light corresponding to the three-light-position light box is red and the straight-ahead light position is green. Furthermore, the vehicle can determine that it can go straight at the current moment.

[0124] Please refer to Figure 9 , Figure 9 FIG. 9 is a schematic flowchart of a method for detecting traffic lights in some embodiments of the present application. That is, in an example as shown in FIG. 9, the vehicle can output the target detection results of traffic lights based on a detection model. Specifically, first, the vehicle inputs the driving environment image into a detection model, which includes a backbone module, a branch module for light box detection, and a branch module for light position detection. The backbone module is used to extract the features of the driving environment image. The two branch modules perform light box detection and light position detection through the traffic light feature information extracted by the backbone module. The light box detection results include the position of the traffic light target, the number of light positions, the traffic light box category, and the light box score. The light position detection results include the color of the traffic light position, the shape of the light position, and the light position score.

[0125] Then, after screening out the light box detection results and light position detection results with scores higher than the threshold, taking the product of the light box width and the light box height as the area S1 of the traffic light box, and the product of the light position width and the light position height as the area S2 of the traffic light position, calculate the ratio of each light box area S1 to each light position area S2 to obtain a ratio matrix. After matching the light boxes and light positions through the Hungarian algorithm for this matrix, output the matched light box position information and light position information as the detected traffic light target.

[0126] Thus, in the embodiments of the present application, when there are multiple target candidate light boxes and multiple target candidate light positions, according to the ratio of the light position size of each target candidate light box to the light position size of each target candidate light position, the target candidate light position corresponding to each target candidate light box is determined, and according to each target candidate light box and the target candidate light position corresponding to each target candidate light box, the target detection result of the traffic signal light corresponding to each target candidate light box is determined, thereby ensuring the accurate detection and recognition of each traffic signal light in the driving environment by the vehicle.

[0127] Please refer to Figure 10 , in some embodiments of the present application, step 01 includes: 010: Preprocess the obtained vehicle driving environment information to determine the processed environment information; 011: Detect the processed environment information to determine the light box detection result and the light position detection result.

[0128] The processor in the embodiments of the present application is further configured to preprocess the obtained vehicle driving environment information to determine the processed environment information, and to detect the processed environment information to determine the light box detection result and the light position detection result.

[0129] Specifically, to ensure the accurate recognition of the light box detection result and the light position detection result, in the embodiments of the present application, the vehicle can also preprocess the obtained vehicle driving environment information to improve the quality of the vehicle driving environment information, thereby determining the processed environment information. Then, the vehicle can detect the processed environment information for the traffic signal light box and the traffic signal light position, thereby determining the light box detection result and the light position detection result.

[0130] In one example, the vehicle driving environment information includes the vehicle driving environment image. Furthermore, the vehicle can perform operations such as cropping, resizing, and denoising on the vehicle driving environment image, thereby completing the preprocessing of the vehicle driving environment image and improving the quality of the vehicle driving environment image.

[0131] Thus, in the embodiments of the present application, the obtained vehicle driving environment information can be preprocessed to determine the processed environment information, and the processed environment information can be detected to determine the light box detection result and the light position detection result, so that the light box detection result and the light position detection result can be determined based on the preprocessed vehicle driving environment information, thereby ensuring the reliability of the light box detection result and the light position detection result.

[0132] To more clearly illustrate the embodiments of the present application, please refer to Figure 6 、 Figure 9 and Figure 11 , Figure 11It is a schematic flowchart of a traffic signal detection method in some embodiments of the present application. Specifically, in the embodiments of the present application, a vehicle collects image or video data through a camera, that is, the image of the vehicle driving environment.

[0133] Then, the image of the vehicle driving environment is preprocessed, including operations such as cropping, resizing, and denoising, to improve the quality of the image of the vehicle driving environment, thereby improving the efficiency and accuracy of subsequent processing.

[0134] Then, as Figure 6 and Figure 9 shown, the vehicle inputs the preprocessed image of the driving environment into the detection model. The backbone module in the detection model extracts the features of the image of the driving environment. Two branch modules in the detection model perform light box detection and light position detection based on the traffic light feature information extracted by the backbone module. Among them, the light box detection result includes the position of the traffic light target, the number of light positions, the traffic light light box category, and the light box score, and the light position detection result includes the traffic light light position color, light position shape, and light position score.

[0135] Then, after screening out the light box detection results and light position detection results with scores higher than the threshold, taking the light box width multiplied by the light box height as the area S1 of the traffic light light box, and the light position width multiplied by the light position height as the area S2 of the traffic light light position, calculating the area ratio of all light box areas S1 and all light position areas S2 to obtain an area ratio matrix, and after matching the light box and the light position through the Hungarian algorithm for this matrix, outputting the matched light box position information and light position information as the detected traffic light target that is matched.

[0136] Based on this, in the embodiments of the present application, for possible problems, through the traffic light data collected on the road, using an end-to-end fine-grained traffic light detection model, detecting the light box of the traffic light and the light position information in the light box through one detection model, screening out the high-confidence traffic light light box and light position targets output by the model, calculating the overlapping area of the light box and the light position and calculating the matching of the light box and the light position, and outputting the matched light box position and light position category information as the output result of the final traffic light detection.

[0137] The embodiments of the present application also provide a vehicle, and the vehicle includes the above-mentioned electronic device.

[0138] The embodiments of the present application also provide a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the above-mentioned traffic signal detection method is implemented.

[0139] The embodiments of the present application also provide a computer program product, including a computer program / instructions, and when the computer program / instructions are executed by a processor, the above-mentioned traffic signal detection method is implemented.

[0140] In the description of this specification, the descriptions referring to terms such as "specifically", "further", "specially", "understandably", etc. mean that the specific features, structures, materials or characteristics described in connection with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily intended to refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples.

[0141] Any process or method description shown in the flowchart or described in other ways herein can be understood to represent a module, segment or portion of code including one or more executable instructions for implementing a specific logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, where the functions may be executed in a substantially simultaneous manner or in a reverse order according to the functions involved, rather than in the order shown or discussed, which should be understood by those skilled in the art to which the embodiments of the present application pertain.

[0142] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present application.

Claims

1. A method for detecting a traffic light, characterized in that: include: Conduct detection of traffic light boxes and light positions of traffic lights based on the acquired vehicle driving environment information, and determine the detection results of the light boxes and light positions; The target detection result of the traffic light is determined according to the light box detection result and the light position detection result.

2. The method according to claim 1, characterized in that The target detection result includes at least one of a light box position, a light position color, and a light position shape.

3. The method according to claim 1, characterized in that The vehicle driving environment information includes a vehicle driving environment image.

4. The method according to claim 3, characterized in that The detection of the traffic light box and the light position of the traffic light on the acquired vehicle driving environment information to determine the light box detection result and the light position detection result includes: According to a detection model that has been pre-trained and can be deployed in a vehicle, the detection is performed on the vehicle driving environment image to determine the light box detection result and the light position detection result, wherein the detection model is configured to detect the traffic light box and the traffic light position of the vehicle driving environment image.

5. The method according to claim 4, characterized in that The detection model is configured as follows: Extracting features from the vehicle driving environment image to determine the features of the vehicle driving environment image; The vehicle driving environment image features are used to detect the traffic light box and the light position of the traffic light, and the light box detection result and the light position detection result are determined.

6. The method according to claim 5, characterized in that The detection model includes a trunk module and at least two branch modules; The backbone module is configured to extract features from the vehicle driving environment image and determine the features of the vehicle driving environment image; At least one of the branch modules is configured to detect the traffic light box based on the image features of the vehicle driving environment and determine the light box detection result; At least another branch module is configured to detect the light position of the traffic light on the image features of the vehicle driving environment and determine the light position detection result.

7. The method according to claim 1, characterized in that The light box detection result includes at least one of the light box size, the number of light positions in the light box, the light box type, and the light box prediction probability.

8. The method according to claim 1, characterized in that The lamp position detection result includes at least one of a lamp position size, a lamp position color, a lamp position shape, and a lamp position prediction probability.

9. The method according to claim 1, characterized in that: The light box detection result includes light box prediction probabilities of multiple candidate light boxes, the light position detection result includes light position prediction probabilities of multiple candidate light positions, and determining the target detection result of the traffic light according to the light box detection result and the light position detection result includes: Determine a target candidate light box and a target candidate light position according to the light box prediction probabilities of the plurality of candidate light boxes and the light position prediction probabilities of the plurality of candidate light positions; The target detection result is determined according to the target candidate light box and the target candidate light position.

10. The method according to claim 9, characterized in that The step of determining a target candidate light box and a target candidate light position according to the light box prediction probabilities of the plurality of candidate light boxes and the light position prediction probabilities of the plurality of candidate light positions comprises: The candidate light boxes whose predicted light box probabilities are greater than or equal to a first threshold are determined as the target candidate light boxes, and the candidate light positions whose predicted light position probabilities are greater than or equal to a second threshold are determined as the target candidate light positions.

11. The method according to claim 9, characterized in that Each of the light box detection results further includes light box sizes of the plurality of candidate light boxes, and each of the light position detection results further includes light position sizes of the plurality of candidate light positions. Determining the target detection result according to the target candidate light boxes and the target candidate light positions includes: In the case that the target candidate light boxes include multiple ones and the target candidate light positions include multiple ones, the target candidate light positions corresponding to each of the target candidate light boxes are determined according to the ratio of the light box size of each of the target candidate light boxes to the light position size of each of the target candidate light positions; According to each of the target candidate light boxes and the target candidate light positions corresponding to each of the target candidate light boxes, the target detection result of the traffic light corresponding to each of the target candidate light boxes is determined.

12. The method according to claim 1, characterized in that The detection of the traffic light box and the light position of the traffic light on the acquired vehicle driving environment information to determine the light box detection result and the light position detection result includes: Preprocessing the acquired vehicle driving environment information to determine processed environment information; The detection is performed on the processed environmental information to determine the light box detection result and the light position detection result.

13. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 12 is implemented.

14. A vehicle, characterized in that: The vehicle comprises the apparatus of claim 13.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 12 is implemented.

16. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Traffic signal detection method and system based on GPS positioning and visual image processing

    CN107506760A

  • Traffic light detection method and device

    CN112970030A

  • Traffic light identification method and device, computer equipment and storage medium

    CN116343168A

  • Traffic signal lamp identification method and device, electronic equipment and storage medium

    CN117953464A

  • Traffic light detection method and device, electronic equipment and storage medium

    CN118470681A