Traffic light flashing sensing method, vehicle control method, device, medium, and vehicle

By sensing and identifying the continuous image frames of traffic lights and matching flash templates, the problem of identifying the flashing state under stroboscopic light is solved, and accurate identification of traffic lights and vehicle safety control are achieved.

WO2024179134A1PCT designated stage expired Publication Date: 2024-09-06ANHUI NIO AUTONOMOUS DRIVING TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/138986
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-02
Filing Date
2023-12-15
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult for existing technology to accurately identify the flashing state of traffic lights under stroboscopic conditions, which increases vehicle driving risks.

Method used

By sensing and identifying multiple consecutive image frames of traffic lights, the color of each single light is obtained and matched with the preset flash template to determine whether it is in a flashing state, including simulating the flashing state to obtain the flashing stage and create flashing Template, correct the color of single lights of the same shape, and combine with timing judgment to ensure accurate recognition.

Benefits of technology

Even under stroboscopic conditions, the flashing status of traffic lights can be accurately identified, improving identification accuracy and ensuring safe and reliable automatic driving control of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023138986_06092024_PF_FP
    Figure CN2023138986_06092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of automatic driving, and in particular to a traffic light flashing sensing method, a vehicle control method, a device, a medium, and a vehicle, aiming to solve the problem of accurate recognition of the flashing state of traffic lights. To achieve this objective, the method provided by the present application comprises: performing sensing recognition on a plurality of consecutive image frames of traffic lights to acquire the color of each lightened single light among the traffic lights in the plurality of consecutive image frames; matching the color of the lightened single light in the plurality of consecutive image frames and a preset flashing template to determine whether the lightened single light is in a flashing state; if the matching is successful, the lightened single light being in the flashing state; and if the matching fails, the lightened single light being not in the flashing state. By means of the mode, even if the stroboscopic phenomenon exists, whether each lightened single light among traffic lights is in a flashing state can be accurately recognized, thereby improving the accuracy of recognition of the flashing state of traffic lights.
Need to check novelty before this filing date? Find Prior Art

Description

Signal light flashing perception method, vehicle control method, device, medium and vehicle

[0001] This application claims priority to Chinese patent application No. 202310186876.9 filed on March 2, 2023, entitled “Signal Light Flashing Perception Method, Vehicle Control Method, Device, Medium and Vehicle”. The entire contents of the above Chinese patent application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of autonomous driving technology, and specifically to a signal light flashing perception method, vehicle control method, equipment, medium and vehicle. Background Art

[0003] Traffic lights usually consist of red, green, and yellow lights. The red light means no passage, the green light means passage is allowed, and the yellow light means warning. When controlling the vehicle automatically, it is necessary to accurately perceive the status of the traffic lights on the road so that the vehicle can be driven safely and reliably according to the status of the traffic lights. In addition to displaying different colors, traffic lights can also flash different colors. For example, with a flashing cycle of 1 second, it is first displayed for 0.5 seconds and then turned off for 0.5 seconds. Referring to Figure 1, the solid-line frame in Figure 1 represents the color lighting stage, the blank area between the solid-line frames represents the color turning off stage, the dotted-line frame represents the image frame acquisition moment of the visual sensor, and the width of the dotted-line frame represents the image exposure time. As shown in Figure 1, the image frames collected by the visual sensor can identify that the traffic light is in a state of alternating light and dark, that is, a flashing state.

[0004] However, in actual applications, traffic lights are usually powered by alternating current, and due to the characteristics of alternating current, traffic lights will flicker. Referring to Figure 2, the solid-line box in Figure 2 represents the stroboscopic light-emitting time, the blank area between the two solid-line boxes represents the non-light-emitting time, and the dotted-line box also represents the image frame acquisition moment of the visual sensor, and its width represents the image exposure time. As shown in Figure 2, the image frames collected by the visual sensor can also identify that the traffic light is in a state of alternating light and dark, but this state is not a true flickering state. The current conventional traffic light perception method will not be able to accurately identify whether the traffic light is in a flickering state in the presence of flicker, which increases the driving risk of the vehicle.

[0005] Accordingly, this field requires a new technical solution to solve the above problems.

[0006] Summary of the Invention

[0007] In order to overcome the above-mentioned defects, the present application is proposed to provide a traffic light flashing perception method, vehicle control method, device, medium and vehicle that solve or at least partially solve the technical problem of how to accurately identify the flashing state of traffic lights.

[0008] In a first aspect, a method for sensing a flashing of a traffic light is provided, comprising:

[0009] Perceiving and identifying a plurality of consecutive image frames of a traffic light to obtain a color of each lit single light of the traffic light in the plurality of consecutive image frames, wherein the lit single light is a single light whose color displayed in the plurality of consecutive image frames includes a preset color;

[0010] Matching the color of the lit single lamp in the plurality of consecutive image frames with a preset flickering template to determine whether the lit single lamp is in a flickering state;

[0011] If the color of the lit single light successfully matches the flashing template, the lit single light is in the flashing state; if the color of the lit single light fails to match the flashing template, the lit single light is not in the flashing state.

[0012] In one technical solution of the above-mentioned traffic light flicker perception method, the flicker template is created based on the following steps:

[0013] In the process of simulating a single light in a simulated flashing state, obtain a flashing stage with at least two consecutive color changes.

[0014] and obtaining the color of the simulated single light at each image frame acquisition moment during the flashing stage;

[0015] Create a flicker template based on the color of a simulated single light at the moment of each image frame acquisition.

[0016] In one technical solution of the above-mentioned traffic light flicker perception method, the step of "obtaining a flickering phase in which at least two consecutive color alternations occur during a process of simulating a single light in a simulated flickering state" specifically includes:

[0017] In the process of simulating a single lamp in a simulated flashing state, obtaining the flashing stage according to the continuous non-preset color display stage, the preset color display stage and the non-preset color display stage;

[0018] And / or, in the process of simulating a single lamp being in a simulated flickering state, the flickering stage is obtained according to the continuous preset color display stage, the non-preset color display stage and the preset color display stage.

[0019] In one technical solution of the above-mentioned method for sensing the flickering of a traffic light, the step of "obtaining a flickering phase in which at least two consecutive alternating color changes occur during the process of simulating a single light in a simulated flickering state" further includes:

[0020] Get the flashing cycle of a simulated single light;

[0021] Determining the duration of the flashing phase according to the flashing cycle;

[0022] determining the flashing stage based on the time length from a process of simulating a single lamp in a simulated flashing state;

[0023] The time length is greater than or equal to the flashing period.

[0024] In one technical solution of the above-mentioned method for sensing flickering of traffic lights, the step of "obtaining the color of a simulated single light at each image frame capture moment during the flickering phase" specifically includes:

[0025] Obtaining the image frame acquisition frequency corresponding to the flickering stage;

[0026] The color of the simulated single light at each image frame acquisition moment in the flashing stage is determined based on the image frame acquisition frequency and the duration of the flashing stage.

[0027] In one technical solution of the above-mentioned method for sensing flickering of a traffic light, after determining that the single light is in a flickering state and the preset color displayed by the single light in the plurality of consecutive image frames is the first color, the method further includes:

[0028] Counting the duration of the flashing state of the single light and determining whether the counted duration is greater than a preset first threshold;

[0029] If yes, the single light is changed from being in a flashing state to being in a non-flashing state;

[0030] If not, continue timing and determine whether the timing duration is greater than a preset first threshold.

[0031] In one technical solution of the above-mentioned method for sensing flickering of a traffic light, after determining that the lit single light is not in a flickering state and the preset color displayed by the lit single light in the plurality of consecutive image frames is the second color, the method further includes:

[0032] Counting the time during which the single light is not in a flashing state and determining whether the counted time is greater than a preset second threshold;

[0033] If yes, the single light is changed from not in a flashing state to in a flashing state;

[0034] If not, continue timing and determine whether the timing duration is greater than a preset second threshold.

[0035] In one technical solution of the above-mentioned method for sensing flickering of traffic lights, after the step of "matching the color of the lit single light in the plurality of consecutive image frames with a preset flickering template to determine whether the lit single light is in a flickering state", the method further includes:

[0036] Obtaining a single light of the same shape that has the same lamp holder shape and is lit in the traffic light;

[0037] The preset colors displayed by each of the single lights of the same shape are corrected to the same color.

[0038] In one technical solution of the above-mentioned method for sensing the flickering of traffic lights, the step of “correcting the preset color displayed by each of the single lights of the same shape to the same color” includes:

[0039] For each of the single lamps of the same shape, obtaining the confidence level of each of the single lamps displaying each different preset color;

[0040] Selecting the preset color with the highest confidence from the confidence levels of all the single lights in the same shape displaying each different preset color;

[0041] The preset color displayed by each of the single lights of the same shape is corrected to the preset color with the highest confidence.

[0042] In a second aspect, a vehicle control method is provided, the method comprising:

[0043] Acquire an image frame of a traffic light located in a forward direction of the vehicle;

[0044] Adopting the aforementioned traffic light flicker perception method, and determining whether a single light in the traffic light is in a flickering state according to the image frame;

[0045] Based on the judgment results, the vehicle is automatically controlled.

[0046] In a third aspect, a computer device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the method described in any one of the technical solutions of the above-mentioned traffic light color perception or vehicle control method.

[0047] In a fourth aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the method described in any one of the technical solutions of the above-mentioned traffic light color perception or vehicle control method.

[0048] In a fifth aspect, a vehicle is provided, comprising the computer device described in the technical solution of the above-mentioned computer device.

[0049] The above one or more technical solutions of this application have at least one or more of the following beneficial effects:

[0050] In implementing the technical solution of the traffic light flicker perception method provided in this application, a plurality of consecutive image frames of the traffic light can first be perceived and identified to obtain the color of each lit single light in the traffic light in the plurality of consecutive image frames. The lit single light is a single light whose color displayed in the plurality of consecutive image frames includes a preset color. Then, the color of the lit single light in the plurality of consecutive image frames is matched with a preset flicker template to determine whether the lit single light is in a flickering state. If the color of the lit single light successfully matches the flicker template, the lit single light is in a flickering state. If the color of the lit single light fails to match the flicker template, the lit single light is not in a flickering state. In this way, even in the case where the traffic light produces flicker, it is possible to accurately identify whether each single light in the traffic light is in a flickering state, thereby improving the accuracy of the identification of the flickering state of the traffic light.

[0051] In implementing the technical solution of the vehicle control method provided in this application, an image frame of a traffic light located in the vehicle's forward direction can be acquired. Using the aforementioned traffic light flicker perception method, the image frames are used to determine whether each individual light in the traffic light is in a flickering state. Based on the determination results, the vehicle is automatically controlled. This method accurately identifies whether each individual light in the traffic light is in a flickering state, enabling safe and reliable autonomous driving control of the vehicle, thereby improving driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The disclosure of this application will become more easily understood with reference to the accompanying drawings. Those skilled in the art will readily appreciate that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. Among them:

[0053] FIG1 is a schematic diagram of the flashing of a traffic light;

[0054] FIG2 is a schematic diagram of a traffic light strobe;

[0055] FIG3 is a flow chart showing the main steps of a method for sensing the flashing of a traffic light according to an embodiment of the present application;

[0056] FIG4 is a flow chart showing the main steps of a method for obtaining a scintillation template according to an embodiment of the present application;

[0057] FIG5 is a schematic diagram of a scintillation template according to an embodiment of the present application;

[0058] FIG6 is a schematic flow chart of main steps of a vehicle control method according to an embodiment of the present application;

[0059] FIG7 is a schematic diagram of the main structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0060] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the scope of protection of the present application.

[0061] In the description of this application, a "processor" may include hardware, software, or a combination of the two. A processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. A processor has data and / or signal processing capabilities. A processor may be implemented in software, hardware, or a combination of the two. Computer-readable storage media include any suitable medium capable of storing program code, such as a magnetic disk, a hard disk, an optical disk, flash memory, read-only memory, random access memory, and the like.

[0062] The following describes an embodiment of the method for sensing the flashing of a traffic light according to the present application.

[0063] Referring to FIG3 , FIG3 is a flow chart showing the main steps of a method for sensing the flickering of a traffic light according to an embodiment of the present application. As shown in FIG3 , the method for sensing the flickering of a traffic light in the embodiment of the present application mainly includes the following steps S101 to S102 .

[0064] Step S101: perceiving and identifying a plurality of consecutive image frames of a traffic light to obtain the color of each lit single light of the traffic light in the plurality of consecutive image frames.

[0065] Image frames can be obtained by capturing images of traffic lights using a vehicle's visual sensors (such as a camera). After obtaining these image frames, they can be input into a preset perception model, which then identifies information such as the shape and color of each individual light head in the image frame. This perception model can be constructed using conventional methods in the field of neural network technology. The embodiments of this application do not limit the specific structure and training methods of this perception model, as long as it has the ability to recognize the above information from the image frames. It should be noted that the vehicle-related operations mentioned in this application, such as capturing image frames using the vehicle's visual sensors and performing autonomous driving control of the vehicle, are all performed after full authorization by the user or all parties involved. In other words, the vehicle in this application is an authorized vehicle. In some embodiments, the vehicle computer or backend server can detect whether authorization information has been received. If authorization information is received, it indicates that the current vehicle is an authorized vehicle; otherwise, the current vehicle is an unauthorized vehicle. The authorization information can be issued by a terminal device, including but not limited to a mobile phone, tablet computer, and smartwatch.

[0066] A single light is lit when the color displayed in multiple consecutive image frames includes a preset color. Preset colors refer to colors that can be used for traffic guidance. For example, preset colors can include green, red, and yellow, with green indicating that passage is allowed, red indicating that passage is prohibited, and yellow indicating a warning. Furthermore, it should be noted that in addition to the preset colors that can be used for traffic guidance, the colors of a single light can also include non-preset colors that indicate that traffic guidance is not being performed, such as black.

[0067] Step S102: Match the color of the lit single light in multiple consecutive image frames with a preset flashing template to determine whether the lit single light is in a flashing state; if the color of the lit single light successfully matches the flashing template, the lit single light is in a flashing state; if the color of the lit single light fails to match the flashing template, the lit single light is not in a flashing state.

[0068] After obtaining the actual color of the lit single light through perception and recognition, it can be determined whether the change state of the actual color is consistent with the change state represented by the flashing template. If they are consistent, it can be confirmed that the two are matched successfully, otherwise the two fail to match.

[0069] Based on the method described in steps S101 to S102 above, the influence of the traffic light strobe can be effectively eliminated, and whether each single light is in a flashing state can be accurately identified.

[0070] The flashing template in the embodiment of the present application is further explained below.

[0071] The flicker template in the embodiment of the present application is pre-established. When using the method described in steps S101 to S102 above to detect traffic light flicker, it is only necessary to call the established flicker template. There is no need to first create a flicker template and then use the established flicker template for flicker detection each time. The method for creating a flicker template is described below with reference to Figure 4. As shown in Figure 4, in the embodiment of the present application, the flicker template can be created by following steps S201 to S203 to improve the accuracy of the flicker template.

[0072] Step S201: in the process of simulating a single lamp in a simulated flashing state, obtaining a flashing stage with at least two consecutive color alternation changes.

[0073] The simulated flickering state refers to a state in which a single lamp is simulated to flicker normally without stroboscopic light, that is, an ideal flickering state.

[0074] A color alternation refers to a change from one color to another. For example, for a single light whose preset color is green, a color alternation may be a change from green to black, or from black to green. In some embodiments, the flashing stage can be obtained according to the continuous non-preset color display stage, the preset color display stage, and the non-preset color display stage in the process of simulating a single light in a simulated flashing state. In addition, the flashing stage can also be obtained according to the continuous preset color display stage, the non-preset color display stage, and the preset color display stage in the process of simulating a single light in a simulated flashing state. For example, taking the preset color as green and the non-preset color as black as an example, the flashing stage may include a continuous black display stage, a green display stage, and a black display stage. The flashing stage may also include a continuous green display stage, a black display stage, and a green display stage. In this way, it can be ensured that there are at least two consecutive color alternations in the flashing stage.

[0075] In some implementations, the flashing stage can be acquired by following steps 11 to 13.

[0076] Step 11: Get the flashing cycle of a simulated single light.

[0077] A flashing cycle consists of a preset color display phase and a non-preset color display phase, with the two display phases having equal durations. For example, if the preset color is green and the non-preset color is black, a green flashing cycle consists of a green display phase and a black display phase. The green and black display phases each last 0.5 seconds, and the green flashing cycle lasts 1 second.

[0078] Step 12: Determine the duration of the flashing phase based on the flashing cycle.

[0079] The duration of the flashing phase is greater than or equal to the flashing period.

[0080] Step 13: Determine the flashing stage based on the length of time during which the simulated single lamp is in the simulated flashing state.

[0081] The duration of the flashing stage is set according to the flashing cycle, and then a flashing template is created using the duration. The flashing template can be used to determine whether a flashing occurs in the shortest possible time. This greatly ensures the driving safety of the vehicle when the vehicle is automatically controlled based on the flashing judgment results.

[0082] Step S202: Acquire the color of a simulated single light at each image frame capture moment during the flashing stage.

[0083] In the embodiment of the present application, the image frame acquisition frequency corresponding to the flickering stage can be obtained. Based on the image frame acquisition frequency and the duration of the flickering stage, the color of the simulated single light at each image frame acquisition moment during the flickering stage can be determined. For example, assuming the duration of the flickering stage is 1 second, the image frame acquisition frequency corresponding to the flickering stage is 7 Hz, meaning that 7 image frames can be acquired within 1 second. Therefore, it can be determined that based on this image frame acquisition frequency, 7 image frames can be acquired during the flickering stage, and the colors of the simulated single light at each image frame acquisition moment are black, black, green, green, green, black, and black.

[0084] Step S203: creating a flicker template according to the color of the simulated single light at the moment of capturing each image frame.

[0085] Referring to Figure 5, assume that during the time period marked "bright" in Figure 5, the single light displays green, indicating that the single light is in the preset color display stage. During the time period marked "dark," the single light displays black, indicating that the single light is in the non-preset color display stage. The dashed box represents the image frame acquisition moment of the visual sensor, and the width of the dashed box represents the image exposure time. The flashing period of the single light is 1 second, and the visual sensor can capture 7 image frames in 1 second. Simultaneously, the flashing stages are obtained based on the first black display stage, the second green display stage, and the second black display stage, from left to right in Figure 5.

[0086] If the duration of the flickering phase is equal to the flickering period of a single light, then the flickering phase can be the phase covered by the 6th to 12th dashed boxes from left to right in Figure 5. During this phase, the colors of the single light at the 1st to 7th image frame acquisition moments are black, black, green, green, green, black, black, respectively, and the flickering template can be BBGGGBB.

[0087] If the duration of the flashing stage is longer than the flashing cycle of a single lamp, the flashing stage may be the stage covered by the 6th to 13th dotted boxes from left to right in FIG. 5 , and the flashing template may be BBGGGBBB.

[0088] Based on the method described in steps S201 to S203 above, the color displayed by a single lamp when it is in the flashing stage can be accurately obtained, thereby significantly improving the accuracy of the flashing template and making it more realistically reflect the color change of a single lamp.

[0089] In addition, since the flicker cycle is determined by the flicker frequency, the flicker template in the embodiment of the present application is actually a string of color information representing the flicker obtained by comprehensively considering the image frame acquisition frequency and the flicker frequency. In actual applications, the image frame acquisition frequency and the flicker frequency may change. Therefore, after establishing the flicker template, it is also possible to detect whether the image frame acquisition frequency and / or the flicker frequency have changed. If so, the flicker template is re-established based on the changed image frame acquisition frequency and / or flicker frequency, that is, the flicker template is updated. In some embodiments, a detection cycle can be preset, and the image frame acquisition frequency and / or the flicker frequency can be regularly detected according to the detection cycle to determine whether the image frame acquisition frequency and / or the flicker frequency have changed.

[0090] In actual applications, the duration that a single light displaying different preset colors is in a flashing state or a non-flashing state may be different. Based on this feature, after determining whether the lit single light is in a flashing state through the method described in steps S101 to S102 above, anti-false alarm processing can also be performed based on the above duration.

[0091] 1. Anti-false alarm processing for the single light that displays the preset color as the first color

[0092] In the embodiment of the present application, the duration of a single light that is displayed as a first color and has a preset color is typically shorter than the duration of a light that is not in a flashing state. For example, the first color may be a color indicating that passage is permitted (e.g., green). In this case, after determining that the single light is in a flashing state and that the preset color displayed by the single light in multiple consecutive image frames is the first color, the duration of the flashing state of the single light can be measured and a determination can be made as to whether the measured duration is greater than a preset first threshold. If so, the flashing state of the single light is changed to a non-flashing state. If not, the measurement is continued and a determination can be made as to whether the measured duration is greater than the preset first threshold.

[0093] It should be noted that those skilled in the art can flexibly set the specific value of the preset first threshold according to actual needs, and the present embodiment does not specifically limit this. For example, the preset first threshold can be 3 seconds.

[0094] 2. Anti-false alarm processing for single lights that display the preset color as the second color

[0095] In the embodiment of the present application, the duration of time that the single light that is displayed as the preset second color is not in the flashing state is generally shorter than the duration of time that it is in the flashing state. For example, the second color may be a color representing a warning (such as yellow). In this case, after determining that the single light is not in the flashing state and the preset color displayed by the single light in multiple consecutive image frames is the second color, the duration of time that the single light is not in the flashing state can be measured and a determination can be made as to whether the measured duration is greater than a preset second threshold; if so, the single light is modified from being in the non-flashing state to being in the flashing state; if not, the measurement is continued and a determination can be made as to whether the measured duration is greater than the preset second threshold.

[0096] Similar to the preset first threshold, those skilled in the art can also flexibly set the specific value of the preset second threshold according to actual needs, and the present embodiment does not specifically limit this. For example, the preset second threshold can be 3 seconds.

[0097] In actual applications, a traffic light may contain multiple individual lights with the same lamp head shape. During color perception and recognition of these individual lights in step S102, they may be recognized as different colors due to factors such as reflections from objects and poor ambient light. Furthermore, different lamp head shapes can indicate different traffic directions. For example, a round shape can indicate going straight, turning left, or making a U-turn. If individual lights with the same lamp head shape are recognized as different colors, this will result in different colors appearing for the same traffic direction. To address this, color correction can be performed on illuminated individual lights with the same lamp head shape to prevent different colors appearing for the same traffic direction, which could affect safe driving.

[0098] Specifically, after determining whether each illuminated single lamp is in a flashing state through the methods described in steps S101 to S102 above, the traffic signal can also obtain the illuminated single lamps of the same shape and having the same lamp head shape, and correct the preset color displayed by each of the single lamps of the same shape to the same color. Furthermore, to improve the accuracy of color correction, the confidence level of each different color displayed by the illuminated single lamp can be used to select the color with the highest confidence level for correction. Specifically, in some embodiments, the color of each single lamp of the same shape can be corrected through the following steps 21 to 23.

[0099] Step 21: For each single lamp of the same shape, obtain the confidence level of each single lamp displaying each different preset color.

[0100] The confidence level of a color indicates the degree of trustworthiness of the color. When the color of a single light is perceived and recognized in step S101, the confidence level of each color displayed by the light can be obtained. For example, if a perception model constructed using a neural network is used for color perception and recognition, the perception model can output the probability of each light displaying each color. The color with the highest probability is then used as the color of the light. The probability of each color can then be used as the confidence level of each color.

[0101] Step 22: Select the preset color with the highest confidence from the confidence levels of all single lights of the same shape for each different preset color.

[0102] For example, the same-shaped single lights include single light 1 and single light 2, and the colors include green and red. The confidence levels of single light 1 indicating green and red are 0.9 and 0.1, respectively. The confidence levels of single light 2 indicating green and red are 0.4 and 0.6, respectively. 0.9 is the maximum value, so green is selected.

[0103] Step 23: Correct the preset color displayed by each single light of the same shape to the preset color with the highest confidence. Continuing with the example above, the color of single light 2 is corrected to green.

[0104] Based on the method described in steps 21 to 23 above, the color confidence level can be used to obtain the accurate color of a single lamp of the same shape, thereby ensuring the accuracy of color correction.

[0105] The following describes an embodiment of the vehicle control method provided in this application.

[0106] 6 , which is a flow chart illustrating the main steps of a vehicle control method according to an embodiment of the present application. As shown in FIG6 , the traffic light sensing method in the embodiment of the present application mainly includes the following steps S301 to S303 .

[0107] Step S301: Acquire an image frame of a traffic light in the forward direction of the vehicle.

[0108] Specifically, a visual sensor disposed on a vehicle and having a field of view in the forward direction of the vehicle may be used to collect image frames of traffic lights.

[0109] Step S302: using a traffic light flickering perception method, and determining whether a single light in the traffic light is in a flickering state based on the image frames.

[0110] The method for sensing the flickering of a traffic light in this step is the method for sensing the flickering of a traffic light described in the aforementioned method embodiment.

[0111] Step S303: Based on the judgment result, the vehicle is automatically controlled.

[0112] For example, if a single light displaying a preset green color is in a flashing state, it indicates that the preset color displayed by the single light is about to change from green to red. At this time, the vehicle can be controlled to slow down or speed up to pass through the intersection; otherwise, the vehicle can be controlled to continue driving.

[0113] Based on the method described in steps S301 to S303 above, it is possible to accurately identify whether each lit single light in the traffic light is in a flashing state, thereby enabling safe and reliable automatic driving control of the vehicle to improve the vehicle's driving safety.

[0114] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effect of the present application, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These adjusted solutions are equivalent to the technical solutions described in this application, and therefore will also fall within the scope of protection of this application.

[0115] It will be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment of the present application can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium can include: any entity or device, medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0116] Furthermore, the present application also provides a computer device.

[0117] Refer to Figure 7, which is a schematic diagram of the main structure of a computer device embodiment according to the present application. As shown in Figure 7, the computer device in the embodiment of the present application mainly includes a storage device and a processor. The storage device can be configured to store a program for executing the traffic light flashing perception method or vehicle control method of the above-mentioned method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to a program for executing the traffic light flashing perception method or vehicle control method of the above-mentioned method embodiment. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application.

[0118] In the embodiment of the present application, the computer device may be a control device device formed by various electronic devices. In some possible implementations, the computer device may include multiple storage devices and multiple processors. The program for executing the method for sensing the flickering of traffic lights or the method for controlling vehicles of the above-mentioned method embodiment may be divided into multiple subroutines, and each subroutine may be loaded and run by a processor to execute different steps of the method for sensing the flickering of traffic lights or the method for controlling vehicles of the above-mentioned method embodiment. Specifically, each subroutine may be stored in different storage devices respectively, and each processor may be configured to execute the programs in one or more storage devices to jointly implement the method for sensing the flickering of traffic lights or the method for controlling vehicles of the above-mentioned method embodiment, that is, each processor executes different steps of the method for sensing the flickering of traffic lights or the method for controlling vehicles of the above-mentioned method embodiment respectively to jointly implement the method for sensing the flickering of traffic lights or the method for controlling vehicles of the above-mentioned method embodiment.

[0119] The aforementioned multiple processors may be processors deployed on the same device. For example, the aforementioned computer device may be a high-performance device composed of multiple processors, and the aforementioned multiple processors may be processors configured on the high-performance device. In addition, the aforementioned multiple processors may also be processors deployed on different devices.

[0120] Furthermore, the present application also provides a computer-readable storage medium.

[0121] In an embodiment of a computer-readable storage medium according to the present application, the computer-readable storage medium can be configured to store a program for executing the traffic light flashing perception method or vehicle control method of the above-mentioned method embodiment, and the program can be loaded and run by a processor to implement the above-mentioned traffic light flashing perception method or vehicle control method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-transitory computer-readable storage medium.

[0122] Furthermore, the present application also provides a vehicle.

[0123] In a vehicle embodiment according to the present application, the vehicle may include the computer device described in the aforementioned computer device embodiment. In this embodiment, the vehicle may be an autonomous vehicle, an unmanned vehicle, or other similar vehicle. Furthermore, based on the type of power source, the vehicle in this embodiment may be a fuel vehicle, an electric vehicle, a hybrid vehicle using a combination of electric and fuel, or a vehicle using other new energy sources.

[0124] Thus far, the technical solution of the present application has been described in conjunction with an embodiment shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present application.

Claims

1. A method for sensing the flashing of a traffic light. It is characterized in that The method comprises: Perceiving and identifying a plurality of consecutive image frames of a traffic light to obtain the color of each lit single light of the traffic light in the plurality of consecutive image frames, wherein the lit single light is a single light whose color displayed in the plurality of consecutive image frames includes a preset color; Matching the color of the lit single lamp in the plurality of consecutive image frames with a preset flickering template to determine whether the lit single lamp is in a flickering state; If the color of the lit single light matches the flashing template successfully, the lit single light is in the flashing state; if the color of the lit single light fails to match the flashing template, the lit single light is not in the flashing state.

2. The method for sensing the flashing of a traffic light according to claim 1, It is characterized in that The flash template is created based on the following steps: In the process of simulating a single light in a simulated flashing state, obtain a flashing stage with at least two consecutive color changes. and obtaining the color of the simulated single light at each image frame acquisition moment during the flashing stage; Create a flicker template based on the color of a simulated single light at the moment of each image frame acquisition.

3. The method for sensing the flashing of a traffic light according to claim 2, It is characterized in that The step of "obtaining a flashing stage with at least two consecutive color changes in the process of simulating a single lamp in a simulated flashing state" specifically includes: In the process of simulating a single lamp in a simulated flashing state, obtaining the flashing stage according to the continuous non-preset color display stage, the preset color display stage and the non-preset color display stage; and / or, In the process of simulating a single lamp being in a simulated flickering state, the flickering stage is obtained according to the continuous preset color display stage, the non-preset color display stage and the preset color display stage.

4. The method for sensing the flashing of a traffic light according to claim 2, It is characterized in that The step of "obtaining a flashing stage with at least two consecutive color changes in the process of simulating a single lamp in a simulated flashing state" also includes: Get the flashing cycle of a simulated single light; Determining the duration of the flashing phase according to the flashing cycle; determining the flashing stage based on the time length from the process of simulating a single lamp in a simulated flashing state; Wherein, the time length is greater than or equal to the flashing period.

5. The method for sensing the flashing of a traffic light according to claim 2, It is characterized in that The step of "obtaining the color of a simulated single light at each image frame acquisition moment during the flashing stage" specifically includes: Obtaining the image frame acquisition frequency corresponding to the flickering stage; Based on the image frame acquisition frequency and the duration of the flickering stage, the color of the simulated single light at each image frame acquisition moment in the flickering stage is determined.

6. The method for sensing the flashing of a traffic light according to claim 1, It is characterized in that After determining that the lit single lamp is in a flashing state and the preset color displayed by the lit single lamp in the plurality of consecutive image frames is a first color, the method further includes: Timing the duration of the single light being in the flashing state and determining whether the timing duration is greater than a preset first threshold; If yes, the single light is changed from being in a flashing state to being in a non-flashing state; If not, continue timing and determine whether the timing duration is greater than a preset first threshold.

7. The method for sensing the flashing of a traffic light according to claim 1, It is characterized in that After determining that the lit single lamp is not in a flashing state and the preset color displayed by the lit single lamp in the plurality of consecutive image frames is a second color, the method further includes: Counting the duration of time when the single light is not in a flashing state and determining whether the timing duration is greater than a preset second threshold; If yes, the single light is changed from not being in a flashing state to being in a flashing state; If not, continue timing and determine whether the timing duration is greater than a preset second threshold.

8. The method for sensing the flashing of a traffic light according to claim 1, It is characterized in that After the step of "matching the color of the lit single lamp in the plurality of consecutive image frames with a preset flickering template to determine whether the lit single lamp is in a flickering state", the method further includes: Obtaining a single lamp of the same shape that has the same lamp holder shape and is lit in the traffic light; The preset colors displayed by each of the single lights of the same shape are corrected to be the same color.

9. The method for sensing the flashing of a traffic light according to claim 8, It is characterized in that The step of "correcting the preset color displayed by each of the single lamps of the same shape to the same color" includes: For each of the single lamps of the same shape, obtaining the confidence level of each different preset color displayed by the single lamp; From the confidence levels of each different preset color displayed by all the single lights in the same shape, select the preset color with the highest confidence level; The preset color displayed by each of the single lamps of the same shape is corrected to the preset color with the highest confidence.

10. A vehicle control method, It is characterized in that The method comprises: Acquire an image frame of a traffic light located in a forward direction of the vehicle; Adopting the traffic light flickering perception method according to any one of claims 1 to 9, and judging whether a single light in the traffic light is in a flickering state according to the image frame; Based on the judgment results, the vehicle is automatically controlled.

11. A computer device comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes. It is characterized in that The program code is suitable for being loaded and run by the processor to execute the traffic signal light flashing perception method according to any one of claims 1 to 9, or to execute the vehicle control method according to claim 10.

12. A computer-readable storage medium having a plurality of program codes stored therein, It is characterized in that The program code is suitable for being loaded and run by a processor to execute the traffic signal light flashing perception method according to any one of claims 1 to 9, or to execute the vehicle control method according to claim 10.

13. A vehicle, It is characterized in that The vehicle comprises the computer device of claim 11.

Citation Information

Patent Citations

  • Driving prompting method and device based on signal lamp and vehicle-mounted terminal

    CN111223317A

  • Signal lamp image labeling method and device, electronic equipment and roadside equipment

    CN112131414A

  • Traffic signal lamp detection method and device, and automatic driving automobile

    CN112289021A

  • Traffic indication red, yellow and green light image identification method based on time sequence rule

    CN112330961A

  • Traffic light state recognition method and device, vehicle and storage medium

    CN115042814A