Deep learning-based signal light recognition method and apparatus

Through deep learning to identify the position and distance of the signal light, combined with the position information of the automatic driving system, it solves the problem of difficulty in obtaining the distance of the signal light in 2D target detection, and improves the accuracy and robustness of the automatic driving system.

WO2024193208A1PCT designated stage expired Publication Date: 2024-09-26HOZON NEW ENERGY AUTOMOBILE CO LTD

Patent Information

Application Number
PCT/CN2024/072682
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2024-01-17
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Existing 2D target detection methods are difficult to accurately obtain distance information between traffic lights and vehicles, resulting in decision-making errors and lags in autonomous driving scenarios.

Method used

The signal light identification method based on deep learning is used to obtain the target image at a preset time interval. The deep neural network is used to predict the light panel position, light source position, light source category and light source depth of the signal light to form a signal light queue and combine the vehicle's destination information and Current location, adjust the vehicle's speed to pass the intersection.

Benefits of technology

It achieves more accurate signal light distance prediction in autonomous driving scenarios, enhances the robustness of the autonomous driving system, avoids the shortcomings of 2D signal light recognition, such as decision errors and lags, and provides auxiliary distance especially when high-precision maps or GPS are unavailable. refer to.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024072682_26092024_PF_FP
    Figure CN2024072682_26092024_PF_FP
Patent Text Reader

Abstract

A deep learning-based signal light recognition method and apparatus, relating to the technical field of autonomous driving, for use in signal light recognition in autonomous driving. The main objective is to predict distance information between a signal light and an ego vehicle, and to assist in decision-making for subsequent planning of the vehicle. The main technical solution is as follows: acquiring target images at a preset time interval; on the basis of the target images, obtaining, by using a preset deep neural network prediction model, lamp panel information and light source information of a signal light to be recognized; on the basis of the lamp panel information and the light source information, forming a corresponding signal light queue by using a preset rule, and adding the signal light queue into a preset signal light queue set; on the basis of destination information and current position information of a vehicle, determining the signal light queue corresponding to a target signal light from the preset signal light queue set; and adjusting the speed of the vehicle by using a preset speed change rule on the basis of distance information between the target signal light and the vehicle and a light source category stored in the signal light queue corresponding to the target signal light.
Need to check novelty before this filing date? Find Prior Art

Description

A signal light recognition method and device based on deep learning Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a signal light recognition method and device based on deep learning. Background Art

[0002] In autonomous driving scenarios, vehicles need to promptly identify environmental information around the road, such as zebra crossings and traffic lights. Based on this information, vehicles can ensure driving safety by performing autonomous driving. Traffic light recognition is particularly important for autonomous driving safety.

[0003] Currently, traffic light recognition is accomplished through 2D target detection. However, due to the varying types and sizes of traffic lights on roads, it is difficult to determine the distance between the traffic light and the vehicle through scale information using 2D target detection. Without accurate distance information, autonomous driving scenarios can suffer from decision-making errors and delays due to the lack of distance information.

[0004] Summary of the Invention

[0005] In view of the above problems, the present invention provides a traffic light recognition method and device based on deep learning. The main purpose is to achieve the scenario where an autonomous driving vehicle passes through an intersection with traffic lights, predict the distance information between the traffic light and the vehicle, and assist in decision-making for the subsequent planning of the vehicle.

[0006] In order to solve the above technical problems, the present invention proposes the following solutions:

[0007] In a first aspect, the present invention provides a signal light recognition method based on deep learning, the method comprising:

[0008] Acquire a target image at a preset time interval, wherein the target image includes at least one signal light to be identified;

[0009] Based on the target image, a preset deep neural network prediction model is used to obtain the lamp panel position, light source position, light source type and light source depth of the signal light to be identified;

[0010] Based on the lamp panel position, light source position, light source type, and light source depth of the signal light to be identified, a signal light queue corresponding to the signal light to be identified is formed using preset rules and added to a preset signal light queue set; wherein the signal light queue stores information about the lamp panel position, light source position, light source type, and the distance between the signal light to be identified and the vehicle within a preset time range;

[0011] Based on the destination information and current location information of the vehicle, determining a signal light queue corresponding to a target signal light from the set of preset signal light queues, the target signal light being a signal light set at the intersection through which the vehicle is to pass;

[0012] Based on the distance information between the target signal light and the vehicle and the light source category stored in the signal light queue corresponding to the target signal light, the vehicle speed is adjusted using a preset speed change rule so as to pass through the intersection that the vehicle is preparing to pass.

[0013] In a second aspect, the present invention provides a signal light recognition device based on deep learning, the device comprising:

[0014] A first acquisition unit is configured to acquire a target image at a preset time interval, wherein the target image includes at least one signal light to be identified;

[0015] A prediction unit, configured to obtain, based on the target image, a lamp panel position, a light source position, a light source type, and a light source depth of the signal light to be identified using a preset deep neural network prediction model;

[0016] a forming unit configured to form a signal light queue corresponding to the signal light to be identified using a preset rule based on the lamp panel position, light source position, light source type, and light source depth of the signal light to be identified, and add the queue to a preset signal light queue set; wherein the signal light queue stores information on the lamp panel position, light source position, light source type, and distance between the signal light to be identified and the vehicle within a preset time range;

[0017] a first determining unit configured to determine, based on the destination information and current location information of the vehicle, a signal light queue corresponding to a target signal light from the set of preset signal light queues, the target signal light being a signal light provided at an intersection through which the vehicle is to pass;

[0018] An adjustment unit is used to adjust the speed of the vehicle using a preset speed change rule based on the distance information between the target signal light and the vehicle and the light source category stored in the signal light queue corresponding to the target signal light, so as to pass through the intersection that the vehicle is preparing to pass.

[0019] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a storage medium is provided, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the traffic light recognition method based on deep learning described in the first aspect.

[0020] In order to achieve the above-mentioned purpose, according to the fourth aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, all or part of the steps of the deep learning-based signal light recognition device as described in the second aspect are implemented.

[0021] By means of the above technical solution, the deep learning-based signal light recognition method and device provided by the present invention are based on the fact that the currently used signal light recognition method is completed through 2D target detection. However, since the types and sizes of signal lights on the road are different, it is difficult to obtain the distance between the signal light and the vehicle through scale information through the 2D target detection method. Without accurate distance information, in the application of autonomous driving scenarios, the lack of distance information will cause some decision-making errors and lags. To this end, the present invention obtains a target image at a preset time interval, wherein the target image includes at least one signal light to be identified; based on the target image, a preset deep neural network prediction model is used to obtain the lamp panel position, light source position, light source type, and light source depth of the signal light to be identified; based on the lamp panel position, light source position, light source type, and light source depth of the signal light to be identified, a signal light queue corresponding to the signal light to be identified is formed using preset rules and added to a preset signal light queue set; wherein the signal light queue stores information about the lamp panel position, light source position, light source type, and distance between the signal light to be identified and the vehicle within a preset time range; based on the destination information and current position information of the vehicle, a signal light queue corresponding to a target signal light is determined from the preset signal light queue set, the target signal light being a signal light installed at the intersection through which the vehicle is to pass; based on the distance information between the target signal light and the vehicle and the light source type stored in the signal light queue corresponding to the target signal light, a preset speed change rule is used to adjust the vehicle's speed so that the vehicle passes through the intersection through which the vehicle is to pass. The present invention combines depth estimation and target detection methods to predict a traffic light with depth information. In an era when telephoto lenses are standard, traffic lights can be discovered earlier and serve as an auxiliary distance reference in scenarios where high-precision maps or GPS are unavailable, enhancing the robustness of the autonomous driving system. It can also avoid some shortcomings of 2D traffic light recognition, such as the lack of distance information in autonomous driving scenarios, which can cause some decision-making errors and lags.

[0022] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:

[0024] FIG1 shows a flow chart of a signal light recognition method based on deep learning provided by an embodiment of the present invention;

[0025] FIG2 shows a flow chart of another signal light recognition method based on deep learning provided by an embodiment of the present invention;

[0026] FIG3 shows a block diagram of a signal light recognition device based on deep learning provided by an embodiment of the present invention;

[0027] FIG4 shows a block diagram of another signal light recognition device based on deep learning provided by an embodiment of the present invention;

[0028] FIG5 shows an application scenario diagram corresponding to another signal light recognition device based on deep learning provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0030] The current method for traffic light recognition is accomplished through 2D target detection. However, due to the varying types and sizes of traffic lights on roads, 2D target detection makes it difficult to determine the distance from the traffic light to the vehicle using scale information. Without accurate distance information, the lack of distance information can lead to decision errors and delays in autonomous driving scenarios. To address this issue, the inventors devised a method combining depth estimation and target detection to predict a traffic light with depth information. This approach, combined with the use of standard telephoto lenses, allows for earlier detection of traffic lights and serves as an auxiliary distance reference in scenarios where high-precision maps or GPS are unavailable, enhancing the robustness of autonomous driving systems.

[0031] To this end, an embodiment of the present invention provides a deep learning-based signal light recognition method. This method can predict the distance between the signal light and the vehicle when the autonomous vehicle passes through an intersection with a signal light, and assist in decision-making for the vehicle's subsequent planning. The specific execution steps are shown in Figure 1, including:

[0032] 101. Acquire a target image at a preset time interval.

[0033] The target image contains at least one signal light to be identified.

[0034] Traffic lights are a category of traffic safety products, serving as a crucial tool for strengthening road traffic management, reducing traffic accidents, improving road efficiency, and improving traffic conditions. They are used at intersections such as crosses and T-junctions, controlled by traffic signal controllers to guide vehicles and pedestrians through the streets safely and orderly. Traffic lights consist of three lights: red, green, and yellow. A red light indicates no passage, a green light indicates passage is permitted, and a yellow light indicates slow travel or a warning. The "Regulations for the Implementation of the Road Traffic Law" categorize traffic lights as follows: motor vehicle lights, non-motor vehicle lights, pedestrian crossing lights, lane lights, direction indicator lights, flashing warning lights, and road-railway intersection lights.

[0035] During autonomous driving, if a vehicle encounters an intersection, it needs to identify the traffic lights at the intersection and adjust the vehicle speed according to the traffic lights' instructions in order to pass through the intersection. This embodiment first requires acquiring a target image at a preset time interval, where the preset time interval can be every second, every two seconds, etc., and is set based on actual needs and is not specifically limited in this embodiment. Because intersections are typically cross-shaped or T-shaped, the image acquired by the vehicle may contain three, two, or other traffic lights in different directions. However, before executing the next step, the image acquired by the vehicle must contain at least one traffic light to be identified.

[0036] 102. Based on the target image, a preset deep neural network prediction model is used to obtain the lamp panel position, light source position, light source type and light source depth of the signal light to be identified.

[0037] From step 101, the target image is obtained, and then a preset deep neural network prediction model is used to obtain the light panel position, light source position, light source type, and light source depth of the signal light to be identified. The preset deep neural network prediction model is pre-designed and includes an input image module, a feature extraction module, a feature fusion module, a depth prediction module, a signal light panel frame prediction module, a ROI extraction module, a light source regression classification module, etc., which are not specifically limited in this embodiment.

[0038] The input image module obtains the target image as input data for the preset deep neural network prediction model, performs feature extraction through the feature extraction module, and then fuses the extracted features through the feature fusion module. Based on the fused information, the depth prediction module obtains the light source depth; based on the fused information, the signal light panel frame information is obtained through the signal light panel frame prediction module, and the signal light panel frame information includes the position of the signal light panel; the ROI extraction module matches the signal light panel frame information with the features obtained by the feature extraction module to extract the ROI features; based on the ROI features, the light source position and light source category are obtained through the light source regression classification module. The light source category is classified according to different light source colors, images, etc., for the purpose of indicating whether the vehicle is moving forward or turning, etc. This is not specifically limited in this embodiment.

[0039] 103. Based on the lamp panel position, light source position, light source type and light source depth of the signal light to be identified, a signal light queue corresponding to the signal light to be identified is formed using preset rules and added to the preset signal light queue set.

[0040] Among them, the traffic light queue saves the lamp panel position, light source position, light source type and distance information between the traffic light to be identified and the vehicle within a preset time range; the distance information between the traffic light to be identified and the vehicle is obtained by the light source depth, which can be the numerical value of the light source depth or the distance after correction by combining the light source depth with the light source scale information.

[0041] A traffic light panel corresponds to a traffic light queue. In other words, a traffic light queue includes all the information of a traffic light, such as: light panel information, light source related information (light source position, light source type and light source depth), etc.

[0042] The order of adding the formed traffic light queues to the preset traffic light queue set can be set so that the queue formed by the traffic light directly in front of the vehicle is located at the first one of the preset traffic light queues, followed by the queue corresponding to the traffic light on the left side of the intersection and the queue corresponding to the traffic light on the right side of the intersection; or the traffic light at the intersection to be passed can be determined first according to the destination and current position of the vehicle, and then the queue formed by the traffic light is located at the first one of the preset traffic light queue set; this implementation does not make specific limitations.

[0043] 104. Based on the destination information and current location information of the vehicle, determine a traffic light queue corresponding to the target traffic light from a set of preset traffic light queues.

[0044] Wherein, the target signal light is a signal light set at the intersection where the vehicle is to pass;

[0045] The preset signal light queue set can be obtained from step 103. It is necessary to determine the intersection that the vehicle is going to pass through based on the destination set in the vehicle's automatic driving system and the current position information determined. When the intersection is determined, the light panel position of the signal light at the intersection can be obtained, and then the signal light queue corresponding to the light panel position can be searched from the preset signal light queue. The signal light queue found is formed by the signal light at the intersection that the vehicle is going to pass through. The signal light is the target signal light, and the signal light queue is the signal light queue corresponding to the target signal light.

[0046] 105. Based on the distance information between the target signal light and the vehicle and the light source type stored in the signal light queue corresponding to the target signal light, the vehicle speed is adjusted using a preset speed change rule.

[0047] The adjusting of the vehicle speed is used to pass through the intersection that the vehicle is preparing to pass.

[0048] From step 104, the signal light queue corresponding to the target signal light is obtained. From this signal light queue, pre-stored information about the distance between the target signal light and the vehicle and the light source type can be obtained, and the vehicle speed can be adjusted using a preset speed change rule. The preset speed change rule can set different speed levels based on the light source type and the distance between the target signal light and the vehicle. For example, when the distance between the target signal light and the vehicle is within a first distance range (relatively far), regardless of the light source type, the vehicle speed can be reduced to the first speed level. When the distance between the target signal light and the vehicle gradually decreases and reaches a second distance range (neither far nor near), the color of the target signal light is further determined. If the light is red, indicating that the vehicle is not far from the stop line and the target signal light may still be red when the vehicle reaches the stop line, the vehicle speed can be reduced to the second speed level to enable subsequent vehicles to stop smoothly and quickly when they reach the stop line. If the light is green, indicating that the vehicle is not far from the stop line and the target signal light may still be red when the vehicle reaches the stop line, the vehicle speed can be maintained at the first speed level. It should be noted that the first level speed is faster than the second level speed.

[0049] Based on the implementation of the embodiment of FIG. 1 , it can be seen that the present invention provides a signal light recognition method based on deep learning. The present invention obtains a target image at a preset time interval, wherein the target image includes at least one signal light to be recognized; based on the target image, a preset deep neural network prediction model is used to obtain the lamp panel position, light source position, light source type, and light source depth of the signal light to be recognized; based on the lamp panel position, light source position, light source type, and light source depth of the signal light to be recognized, a signal light queue corresponding to the signal light to be recognized is formed using preset rules and added to a set of preset signal light queues; wherein the signal light queue stores information about the lamp panel position, light source position, light source type, and distance between the signal light to be recognized and the vehicle within a preset time range; based on the destination information and current location information of the vehicle, a signal light queue corresponding to a target signal light is determined from the set of preset signal light queues, wherein the target signal light is a signal light installed at an intersection that the vehicle is preparing to pass; based on the distance information and light source type stored in the signal light queue corresponding to the target signal light, the vehicle's speed is adjusted using preset speed change rules to enable the vehicle to pass through the intersection that the vehicle is preparing to pass. The present invention combines depth estimation and target detection methods to predict traffic lights with depth information. This allows for earlier detection of traffic lights in an era where telephoto lenses are standard. It also serves as an auxiliary distance reference in scenarios where high-precision maps or GPS are unavailable, enhancing the robustness of autonomous driving systems and avoiding some of the shortcomings of 2D traffic light recognition. For example, the lack of distance information in autonomous driving scenarios can lead to decision errors and lags. Furthermore, as a refinement and expansion of the embodiment shown in FIG1 , another embodiment of the present invention provides another deep learning-based traffic light recognition method, as shown in FIG2 . The specific steps are as follows:

[0050] 201. Acquire a target image at a preset time interval.

[0051] This step is combined with the description of step 101 in the above method, and the same content is not repeated here.

[0052] Wherein, the target image contains at least one signal light to be identified;

[0053] 202. Based on the target image, a preset deep neural network prediction model is used to obtain the lamp panel position, light source position, light source type and light source depth of the signal light to be identified.

[0054] This step is combined with the description of step 102 in the above method, and the same contents are not repeated here.

[0055] The target image can be obtained from step 201, and then based on the target image, the resnet-18 network in the preset deep neural network prediction model is used as the backbone network to perform feature extraction to obtain target features; based on the target features, the PAN-FPN structure in the preset deep neural network prediction model is used to perform feature fusion to obtain target feature fusion information; based on the target feature fusion information, the convolution layer and the depth prediction layer in the preset deep neural network prediction model are used to obtain the light source depth of the signal light to be identified; based on the target feature fusion information, the full connection technology of the neural network is used to perform automatic regression to obtain the target frame position of the light panel; the target frame position of the light panel is matched with the target feature, and the ROI feature is extracted according to the target frame position of the light panel; target frame regression and category classification are performed based on the ROI feature to obtain the light source position and the light source category of the signal light to be identified, wherein the light source category is one or more of red light, yellow light, green light, left arrow, right arrow, forward arrow, backward arrow and number. As shown in Figure 5, the frame at the traffic light contains the light panel information. First, the preset deep neural network prediction model detects the frame at the traffic light, and then obtains the features of the area within the frame ROI corresponding to the traffic light to identify the internal light source, including its category and position.

[0056] 203. Based on the lamp panel position, light source position, light source type and light source depth of the signal light to be identified, a signal light queue corresponding to the signal light to be identified is formed using preset rules and added to the preset signal light queue set.

[0057] This step is combined with the description of step 103 in the above method, and the same contents are not repeated here.

[0058] The signal light queue stores information on the lamp panel position, light source position, light source type, and distance between the signal light to be identified and the vehicle within a preset time range.

[0059] From step 202, the lamp panel position, light source position, light source type and light source depth of the signal light to be identified can be obtained, and then the scale information corresponding to the signal light to be identified is obtained. The method for obtaining the scale information is to obtain the approximate distance from the image size of the target light source (mainly width and height) through the width and height information and the prior knowledge of the actual target size; the light source depth corresponding to the signal light to be identified and the scale information are fused to obtain the distance information between the signal light to be identified and the vehicle. The light source distance output by the model must conform to the relationship between the image size of its light source and the actual distance. Because the size of traffic lights has national standards, its image size and actual size are related and there will not be too much error. The scale information is used as a priori knowledge to correct the distance between the signal light to be identified and the vehicle; based on the lamp panel position, light source position, light source type and distance information corresponding to the signal light to be identified, a signal light queue corresponding to the signal light to be identified is formed; and the signal light queue corresponding to the signal light to be identified is added to the preset signal light queue set in the chronological order of formation of the signal light queue.

[0060] 204. Obtain lane line information and road arrow information of the lane where the vehicle is located.

[0061] The vehicle-mounted camera can obtain the lane line information and road arrow information on the lane where the vehicle is located, as shown in Figure 5, and is used to locate the current position of the subsequent vehicle.

[0062] 205. Determine the current position information of the vehicle based on the lane line information and the road arrow information.

[0063] From step 204, the lane line information and road arrow information can be obtained, that is, an image of the road condition ahead can be obtained, as shown in FIG5 , including lane lines, road arrows, and traffic lights, etc.; through the position of the center line of the vehicle approximated by the center of the image, the current position information of the vehicle can be obtained, and the current position information includes: the lateral position and direction of the vehicle, and the relationship between the lane lines and road arrows is shown in FIG5 .

[0064] 206. Based on the destination information and current location information of the vehicle, determine a traffic light queue corresponding to the target traffic light from a set of preset traffic light queues.

[0065] This step is combined with the description of step 104 in the above method, and the same contents are not repeated here.

[0066] Wherein, the target traffic light is a traffic light set at the intersection through which the vehicle is to pass.

[0067] 207. Based on the distance information between the target signal light and the vehicle and the light source type stored in the signal light queue corresponding to the target signal light, adjust the vehicle speed using a preset speed change rule.

[0068] This step is combined with the description of step 105 in the above method, and the same contents are not repeated here.

[0069] The adjusting of the vehicle speed is used to pass through the intersection that the vehicle is preparing to pass.

[0070] Determine whether the distance information between the target signal light and the vehicle is less than a preset threshold; if the distance information between the target signal light and the vehicle is not less than the preset threshold, adjust the speed of the vehicle to a first preset speed; if the distance information between the target signal light and the vehicle is less than the preset threshold, determine whether the light source category is a green light; if the light source category is a green light, adjust the speed of the vehicle to a first preset speed; if the light source category is not a green light, adjust the speed of the vehicle to a second preset speed, and monitor whether the vehicle meets a preset parking condition; wherein the preset parking condition is a preset safety distance before the vehicle reaches a stop line or a stationary vehicle in front, and the second preset threshold is less than the first preset threshold; when the vehicle meets the preset parking condition, adjust the speed of the vehicle to 0.

[0071] Furthermore, in another preferred embodiment of the present invention, when it is detected that there are other vehicles in front of the lane where the vehicle is located, the vehicle distance is maintained and the vehicle in front is followed through the intersection where the target signal light is located; after the vehicle passes the intersection where the target signal light is located, the preset signal light queue set is cleared.

[0072] As can be seen from the implementation in Figure 2 above, the present invention provides a deep learning-based signal light recognition method. This method, specifically targeting scenarios where autonomous vehicles are passing through signal-lit intersections, combines depth estimation and object detection methods, leveraging an end-to-end deep neural network architecture to predict a signal light with depth information. This prediction then leads to the distance between the signal light and the vehicle, assisting in subsequent decision-making for the vehicle. This method avoids some of the shortcomings of 2D signal light recognition, such as the lack of distance information that can lead to decision-making errors and lags in autonomous driving scenarios. Furthermore, in an era where telephoto lenses are standard, signal lights can be detected earlier and serve as an auxiliary distance reference in scenarios where high-definition maps or GPS are unavailable, enhancing the robustness of autonomous driving systems. The distance between the vehicle and the signal light can be determined in real time using high-precision maps and GPS information. However, this requires accurate and up-to-date high-precision maps and minimal GPS errors, both of which can be problematic in real-world scenarios.

[0073] Furthermore, as an implementation of the method shown in FIG1 above, an embodiment of the present invention also provides a deep learning-based signal light recognition device for implementing the method shown in FIG1 above. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not further elaborate on the details of the aforementioned method embodiment. However, it should be clear that the device in this embodiment can implement all the contents of the aforementioned method embodiment. As shown in FIG3, the device includes:

[0074] A first acquiring unit 31 is configured to acquire a target image at a preset time interval, wherein the target image includes at least one signal light to be identified;

[0075] A prediction unit 32 is configured to obtain, based on the target image obtained from the acquisition unit 31, a lamp panel position, a light source position, a light source type, and a light source depth of the signal light to be identified using a preset deep neural network prediction model;

[0076] a forming unit 33 configured to form a signal light queue corresponding to the signal light to be identified using a preset rule based on the lamp panel position, light source position, light source type, and light source depth of the signal light to be identified obtained from the predicting unit 32, and add the signal light queue to a set of preset signal light queues; wherein the signal light queue stores information on the lamp panel position, light source position, light source type, and distance between the signal light to be identified and the vehicle within a preset time range.

[0077] a first determining unit 34 configured to determine, based on the destination information and current location information of the vehicle, a signal light queue corresponding to a target signal light from the set of preset signal light queues obtained by the forming unit 33 , the target signal light being a signal light provided at the intersection through which the vehicle is to pass;

[0078] The adjustment unit 35 is used to adjust the speed of the vehicle using a preset speed change rule based on the distance information between the target signal light and the vehicle and the light source category stored in the signal light queue corresponding to the target signal light obtained from the determination unit 34, so as to pass through the intersection that the vehicle is preparing to pass.

[0079] Furthermore, as an implementation of the method shown in FIG2 above, an embodiment of the present invention also provides another deep learning-based signal light recognition device for implementing the method shown in FIG2 above. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not further elaborate on the details of the aforementioned method embodiment. However, it should be clear that the device in this embodiment can implement all the contents of the aforementioned method embodiment. As shown in FIG4, the device includes:

[0080] A first acquiring unit 31 is configured to acquire a target image at a preset time interval, wherein the target image includes at least one signal light to be identified;

[0081] A prediction unit 32 is configured to obtain, based on the target image obtained from the acquisition unit 31, a lamp panel position, a light source position, a light source type, and a light source depth of the signal light to be identified using a preset deep neural network prediction model;

[0082] a forming unit 33 configured to form a signal light queue corresponding to the signal light to be identified using a preset rule based on the lamp panel position, light source position, light source type, and light source depth of the signal light to be identified obtained from the predicting unit 32, and add the signal light queue to a set of preset signal light queues; wherein the signal light queue stores information on the lamp panel position, light source position, light source type, and distance between the signal light to be identified and the vehicle within a preset time range.

[0083] a first determining unit 34 configured to determine, based on the destination information of the vehicle and the current position information obtained from the second determining unit 37, a signal light train corresponding to a target signal light from the set of preset signal light trains obtained by the forming unit 33, the target signal light being a signal light provided at the intersection through which the vehicle is to pass;

[0084] an adjusting unit 35 for adjusting the speed of the vehicle using a preset speed change rule based on the distance information between the target signal light and the vehicle and the light source type stored in the signal light queue corresponding to the target signal light obtained by the determining unit 34, so as to pass through the intersection that the vehicle is preparing to pass;

[0085] A second acquiring unit 36 ​​is configured to acquire lane line information and road arrow information of the lane where the vehicle is located;

[0086] a second determining unit 37, configured to determine the current position information of the vehicle based on the lane line information and the road arrow information obtained from the second acquiring unit 36;

[0087] The monitoring unit 38 is configured to maintain a safe distance and follow the vehicle ahead through the intersection where the target traffic light is located when detecting that there is another vehicle ahead of the vehicle in the lane where the vehicle is located;

[0088] The deleting unit 39 is configured to clear the preset signal light queue set after the vehicle obtained from the monitoring unit 38 passes through the intersection where the target signal light is located.

[0089] Furthermore, the prediction unit 32 includes:

[0090] A first feature extraction module 321 is configured to extract features based on the target image using the ResNet-18 network in the preset deep neural network prediction model as a backbone network to obtain target features;

[0091] A feature fusion module 322 is configured to perform feature fusion based on the target features obtained from the first feature extraction module 321 and utilize the PAN-FPN structure in the preset deep neural network prediction model to obtain target feature fusion information;

[0092] A first prediction module 323 is configured to obtain the light source depth of the signal light to be identified by using the convolution layer and the depth prediction layer in the preset deep neural network prediction model based on the target feature fusion information obtained from the feature fusion module 322;

[0093] A regression module 324 is configured to automatically regress the target feature information obtained from the feature fusion module 322 using a fully connected neural network technology to obtain the target frame position of the light panel.

[0094] A second feature extraction module 325 is configured to match the lamp panel target frame position obtained from the regression module 324 with the target feature, and extract ROI features based on the lamp panel target frame position;

[0095] The second prediction module 326 is used to perform target frame regression and category classification based on the ROI features obtained from the second feature extraction module 325 to obtain the light source position and the light source category of the signal light to be identified, wherein the light source category is one or more of a red light, a yellow light, a green light, a left arrow, a right arrow, a forward arrow, a backward arrow and a number.

[0096] Furthermore, the forming unit 33 includes:

[0097] A first acquisition module 331 is configured to acquire scale information corresponding to the signal light to be identified;

[0098] a second acquisition module 332 configured to fuse the light source depth corresponding to the signal light to be identified and the scale information obtained from the first acquisition module 331 to obtain distance information between the signal light to be identified and the vehicle;

[0099] a forming module 333 for forming a signal light queue corresponding to the signal light to be identified based on the lamp panel position, the light source position, the light source type, and the distance information between the signal light to be identified and the vehicle obtained from the second acquiring module 332;

[0100] The adding module 334 is used to add the signal light queues corresponding to the signal lights to be identified obtained from the forming module 333 to the preset signal light queue set according to the time sequence of the signal light queue formation.

[0101] Furthermore, the adjustment unit 35 includes:

[0102] A first judgment module 351 is used to judge whether the distance information between the target signal light and the vehicle is less than a preset threshold;

[0103] a first adjusting module 352 configured to adjust the vehicle speed to a first preset speed if the distance information between the target signal light and the vehicle obtained from the first determining module 351 is not less than a preset threshold;

[0104] a second judgment module 353 configured to judge whether the light source type is a green light if the distance information between the target signal light and the vehicle obtained from the first judgment module 351 is less than a preset threshold;

[0105] a second adjusting module 354 configured to adjust the vehicle speed to a first preset speed if the light source type obtained from the second determining module 353 is a green light;

[0106] a third adjustment module 355 configured to adjust the vehicle speed to a second preset speed if the light source type obtained from the second determination module 353 is not green, and monitor whether the vehicle meets a preset stopping condition; wherein the preset stopping condition is a preset safety distance before the vehicle reaches a stop line or a stationary vehicle ahead, and the second preset threshold is less than the first preset threshold;

[0107] When the vehicle meets the preset parking condition, the speed of the vehicle is adjusted to 0.

[0108] Furthermore, an embodiment of the present invention also provides a processor, which is used to run a program, wherein when the program is running, the traffic light recognition method based on deep learning described in Figures 1-2 above is executed.

[0109] Furthermore, an embodiment of the present invention also provides a storage medium, which is used to store a computer program, wherein when the computer program is running, it controls the device where the storage medium is located to execute the deep learning-based traffic light recognition method described in Figures 1-2 above.

[0110] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0111] It is understood that the relevant features of the above methods and devices can be referenced to each other. In addition, the terms "first" and "second" in the above embodiments are used to distinguish between the embodiments, and do not represent the advantages and disadvantages of the embodiments.

[0112] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0113] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general-purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the above description of specific languages ​​is for the purpose of disclosing the best mode of the present invention.

[0114] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0115] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0116] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0117] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0119] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0121] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0122] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0123] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0124] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A signal light recognition method based on deep learning, It is characterized in that The method comprises: Acquire a target image at a preset time interval, wherein the target image contains at least one signal light to be identified; Based on the target image, a preset deep neural network prediction model is used to obtain the lamp panel position, light source position, light source type and light source depth of the signal light to be identified; Based on the lamp panel position, light source position, light source type and light source depth of the signal light to be identified, a signal light queue corresponding to the signal light to be identified is formed using preset rules and added to a preset signal light queue set; wherein the signal light queue stores the lamp panel position, light source position, light source type and distance information between the signal light to be identified and the vehicle within a preset time range. Based on the destination information and current location information of the vehicle, determining a signal light queue corresponding to a target signal light from the preset signal light queue set, wherein the target signal light is a signal light set at the intersection through which the vehicle is to pass; Based on the distance information between the target signal light and the vehicle and the light source category stored in the signal light queue corresponding to the target signal light, the speed of the vehicle is adjusted using a preset speed change rule so as to pass through the intersection that the vehicle is preparing to pass.

2. The method according to claim 1, It is characterized in that The method of obtaining the lamp panel position, light source position, light source type and light source depth of the signal light to be identified based on the target image by using a preset deep neural network prediction model includes: Based on the target image, the resnet-18 network in the preset deep neural network prediction model is used as the backbone network to perform feature extraction to obtain target features; Based on the target features, the PAN-FPN structure in the preset deep neural network prediction model is used to perform feature fusion to obtain target feature fusion information; Based on the target feature fusion information, the convolution layer and the depth prediction layer in the preset deep neural network prediction model are used to obtain the light source depth of the signal light to be identified.

3. The method according to claim 2, It is characterized in that The method of obtaining the lamp panel position, light source position, light source type and light source depth of the signal light to be identified based on the target image by using a preset deep neural network prediction model includes: Based on the target feature fusion information, the fully connected technology of the neural network is used to automatically regress and obtain the target frame position of the lamp panel; Matching the lamp panel target frame position with the target feature, and extracting ROI features according to the lamp panel target frame position; Target frame regression and category classification are performed based on the ROI features to obtain the light source position and the light source category of the signal light to be identified, wherein the light source category is one or more of a red light, a yellow light, a green light, a left arrow, a right arrow, a forward arrow, a backward arrow and a number.

4. The method according to claim 1, It is characterized in that The forming of a signal light queue corresponding to the signal light to be identified by using a preset rule based on the lamp panel position, light source position, light source type and light source depth of the signal light to be identified, and adding the signal light queue to the preset signal light queue set includes: Obtaining scale information corresponding to the signal light to be identified; The light source depth and the scale information corresponding to the signal light to be identified are integrated to obtain the distance information between the signal light to be identified and the vehicle; forming a signal light queue corresponding to the signal light to be identified based on the light panel position, the light source position, the light source type and the distance information between the signal light to be identified and the vehicle; The signal light queues corresponding to the signal lights to be identified are added to the preset signal light queue set according to the time sequence of the formation of the signal light queues.

5. The method according to claim 1, It is characterized in that The method of adjusting the speed of the vehicle by using a preset speed change rule based on the distance information between the target signal light and the vehicle and the light source category stored in the signal light queue corresponding to the target signal light, so as to pass through the intersection that the vehicle is to pass, comprises: Determining whether the distance information between the target signal light and the vehicle is less than a preset threshold; If the distance information between the target signal light and the vehicle is not less than a preset threshold, adjusting the speed of the vehicle to a first preset speed; If the distance information between the target signal light and the vehicle is less than a preset threshold, determining whether the light source type is a green light; If the light source type is a green light, adjusting the speed of the vehicle to a first preset speed; If the light source type is not a green light, the speed of the vehicle is adjusted to a second preset speed, and the vehicle is monitored to see whether it meets a preset parking condition; wherein the preset parking condition is a preset safety distance before the vehicle reaches a stop line or a stationary vehicle ahead, and the second preset threshold is less than the first preset threshold; When the vehicle meets the preset parking condition, the speed of the vehicle is adjusted to 0.

6. The method according to any one of claims 1 to 5, It is characterized in that Before determining the signal light queue corresponding to the target signal light from the preset signal light queue set based on the destination information and the current position information of the vehicle, the method further includes: Obtaining lane line information and road arrow information of the lane where the vehicle is located; Determining the current position information of the vehicle based on the lane line information and the road arrow information; 7. The method according to claim 6, It is characterized in that After determining the signal light queue corresponding to the target signal light from the preset signal light queue set based on the destination information and current location information of the vehicle, the method further includes: When it is detected that there are other vehicles in front of the lane where the vehicle is located, the vehicle maintains the distance between the vehicles and follows the vehicle in front through the intersection where the target signal light is located; After the vehicle passes the intersection where the target signal light is located, the preset signal light queue set is cleared.

8. A signal light recognition device based on deep learning, It is characterized in that include: A first acquisition unit, configured to acquire a target image at a preset time interval, wherein the target image includes at least one signal light to be identified; A prediction unit, configured to obtain, based on the target image, a lamp panel position, a light source position, a light source type, and a light source depth of the signal light to be identified by using a preset deep neural network prediction model; A forming unit is used to form a signal light queue corresponding to the signal light to be identified based on the lamp panel position, light source position, light source type and light source depth of the signal light to be identified using a preset rule, and add it to the preset signal light queue set; wherein the signal light queue saves the preset time The information of the lamp panel position, light source position, light source type and the distance between the signal light to be identified and the vehicle corresponding to the signal light to be identified within the time range; A first determining unit is used to determine a signal light queue corresponding to a target signal light from the preset signal light queue set based on the destination information and current position information of the vehicle, wherein the target signal light is a signal light set at the intersection through which the vehicle is to pass; An adjustment unit is used to adjust the speed of the vehicle using a preset speed change rule based on the distance information between the target signal light and the vehicle and the light source category stored in the signal light queue corresponding to the target signal light, so as to pass the intersection that the vehicle is preparing to pass.

9. A storage medium comprising a stored program, It is characterized in that When the program is running, the device where the storage medium is located is controlled to execute the traffic light recognition method based on deep learning as described in any one of claims 1 to 7.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the signal light recognition method based on deep learning as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Traffic signal light state recognition method and device, vehicle-mounted control terminal and motor vehicle

    CN108804983A

  • Abnormal traffic light recognition method and device, equipment and computer storage medium

    CN110533940A

  • Vehicle red-light-running detection method and device, computer equipment and storage medium

    CN113689705A

  • Signal lamp identification method and device based on deep learning

    CN116503832A

  • Method and system for enhanced traffic light signaling and for computing a target speed of an automotive vehicle

    WO2018115511A1

Cited By

  • Crossing centralized control method and system based on multi-source perception

    CN121516090A

  • Signal lamp duration estimation method based on depth image prior guided by physical information

    CN121600496A

  • Traffic light classification for autonomous or semi-autonomous systems and applications

    US20260127963A1