Signal lamp countdown prompting method and device, electronic equipment and storage medium
By acquiring and analyzing the signal light image information taken by the vehicle, and using timestamps and conditions to generate the signal light countdown information, it is possible to provide autonomous signal light intelligent prompts for the vehicle without relying on third-party navigation software, and solve the problem of the existing technology The lack of signal light countdown prompt function improves driving safety.
Patent Information
- Application Number
- CN202410670815.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-12-27
AI Technical Summary
The existing technology cannot provide vehicles with autonomous countdown prompt function without relying on third-party navigation software, which makes it difficult for drivers to know the time information about the traffic lights to change in advance during driving, increasing the risk of running red lights and traffic accidents. .
By obtaining the signal light image information taken by the vehicle at multiple intersections, dividing data and identifying the signal light, using the time stamp and preset time threshold to make condition judgments, generating and prompting the signal light countdown information, realizing independent signal light intelligent prompts.
The multi-channel signal light countdown can be accurately identified and prompted without third-party navigation software, which improves driving safety and convenience and reduces the risk of running a red light.
Smart Images

Figure CN119207117A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of assisted driving technology, and in particular to a signal light countdown prompt method, device, electronic equipment and storage medium. Background Art
[0002] With the continuous development of social economy, cars have become a means of transportation for more and more people. At the same time, with the evolution of intelligent technology, cars have been given more intelligent and humanized functions, which greatly ensures people's travel safety and improves the convenience of driving. During the driving process, traffic lights are frequently encountered. Drivers need to pay attention to the status of traffic lights at all times during driving, but due to factors such as limited vision or distracted attention, they often miss the changes in traffic lights; on the other hand, the traffic light equipment at many intersections only displays the color status of red, green, and yellow lights, and does not display the countdown function, resulting in the driver's inability to know the time information of the upcoming traffic light change in advance, which brings many inconveniences to the driver and increases the probability of vehicles running red lights and traffic accidents.
[0003] The existing technology mainly uses third-party navigation software for assisted driving. The third-party navigation software displays the traffic light countdown information of the next target intersection according to the navigation path. However, this method only supports the implementation of traffic light countdown prompts when the third-party software performs path navigation. If the driver does not use the third-party navigation software, the vehicle cannot autonomously provide the owner with the traffic light countdown assistance function.
[0004] To sum up, how vehicles can achieve autonomous intelligent traffic light prompts without relying on third-party navigation software has become a problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a traffic light countdown prompt method, device, electronic device and computer-readable storage medium, the main purpose of which is to solve the problem of how to achieve autonomous traffic light intelligent prompt without relying on third-party navigation software.
[0006] To achieve the above object, the present invention provides a signal light countdown prompt method, comprising:
[0007] Obtain traffic light image information taken by vehicles at multiple intersections;
[0008] Dividing data according to the intersections corresponding to the signal light image information to obtain multiple intersection signal light sequences;
[0009] Perform conditional judgment according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold to determine the signal light countdown information corresponding to each intersection signal light sequence;
[0010] A signal light countdown is generated according to a signal light prompt requirement sent by a target vehicle at a target intersection and the signal light countdown information, and the target vehicle is prompted.
[0011] In one embodiment of the present invention, the data division is performed according to the intersections corresponding to the signal light image information to obtain a plurality of intersection signal light sequences, including:
[0012] Classifying the signal light image information according to the intersection ID in the signal light image information to obtain signal light image data groups corresponding to a plurality of intersections;
[0013] performing signal light recognition on the signal light images in the signal light image data group to obtain signal light information;
[0014] Generate a traffic light sequence corresponding to a plurality of intersections according to the timestamp corresponding to the traffic light image information in the traffic light image data set and the traffic light information.
[0015] In one embodiment of the present invention, the conditional judgment is performed according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold to determine the signal light countdown information corresponding to each intersection signal light sequence, including:
[0016] Selecting a target signal light sequence from the intersection signal light sequence according to a first time threshold condition and the timestamp;
[0017] According to whether the signal light image information in the target signal light sequence has a color jump;
[0018] If a color jump occurs, generating first signal light countdown information according to the same color image information in the target signal light sequence;
[0019] If no color jump occurs, second signal light countdown information is generated according to the second time threshold condition and the target signal light sequence.
[0020] In one embodiment of the present invention, the step of generating the first signal light countdown information according to the same-color image information in the target signal light sequence includes:
[0021] If the target signal light sequence has two signal light colors, it is determined that the target signal light sequence has a jump, and an image sequence of the same color at both ends before and after the jump is extracted from the target signal light sequence;
[0022] Generate corresponding countdown information of the signal lights at both ends according to the timestamps corresponding to the signal light image information in the image sequences at both ends;
[0023] The signal light countdown information stored at the intersection corresponding to the intersection signal light sequence is obtained, and the signal light countdown information at both ends is compared with the stored signal light countdown information to determine the first signal light countdown information.
[0024] In one embodiment of the present invention, the step of generating the first signal light countdown information according to the same-color image information in the target signal light sequence includes:
[0025] If the target signal light sequence has three signal light colors, it is determined that the target signal light sequence undergoes multiple jumps, and an intermediate same-color image sequence between two jumps is extracted from the target signal light sequence;
[0026] Generate corresponding intermediate signal light countdown information according to the timestamp corresponding to the signal light image information in the intermediate same-color image sequence;
[0027] The signal light countdown information stored at the intersection corresponding to the intersection signal light sequence is obtained, and the signal light countdown information is updated according to the intermediate signal light countdown information to obtain the first signal light countdown information.
[0028] In one embodiment of the present invention, the generating of the second signal light countdown information according to the second time threshold condition and the target signal light sequence includes:
[0029] Determining whether a second time threshold condition is met according to a timestamp corresponding to the signal light image information in the target signal light sequence;
[0030] When the second time threshold condition is met, second signal light countdown information is generated according to the same-color image information of the target signal light sequence.
[0031] If the second time threshold condition is not met, yellow light countdown information is generated according to the same-color image information of the target signal light sequence.
[0032] In one embodiment of the present invention, the generating of a signal light countdown according to a signal light prompt requirement sent by a target vehicle at a target intersection and the signal light countdown information and prompting the target vehicle includes:
[0033] Determining target traffic light countdown information from the traffic light countdown information according to the target intersection;
[0034] The traffic light countdown of the target intersection is generated according to the target traffic light countdown information and the timestamp in the traffic light prompt requirement.
[0035] In order to solve the above problem, the present invention further provides a signal light countdown prompt device, the device comprising:
[0036] A signal light image information acquisition module is used to acquire signal light image information taken by vehicles at multiple intersections;
[0037] A road intersection signal light sequence generation module, used for dividing data according to the road intersections corresponding to the signal light image information to obtain a plurality of road intersection signal light sequences;
[0038] A signal light countdown information generating module, used for performing conditional judgment according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold, so as to determine the signal light countdown information corresponding to each of the intersection signal light sequences;
[0039] The signal light countdown generation and prompt module is used to generate a signal light countdown and prompt the target vehicle according to the signal light prompt requirement sent by the target vehicle at the target intersection and the signal light countdown information.
[0040] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0041] at least one processor; and,
[0042] a memory communicatively connected to the at least one processor; wherein,
[0043] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the steps of the above-mentioned signal light countdown prompt method.
[0044] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the steps of the above-mentioned signal light countdown prompt method.
[0045] The present invention performs sequence analysis based on the signal light image information of different intersections, and does not rely on the signal light setting rules between adjacent intersections, so as to achieve synchronous processing of signal light countdown at multiple intersections, thereby improving the efficiency of signal light countdown recognition; through conditional judgment between the timestamp and the time threshold in the signal light image information, the vehicle can be driven without relying on the signal light countdown judgment under third-party software, and the vehicle can be flexibly provided with intelligent signal light prompts. Therefore, the signal light countdown prompt method, device, electronic device and computer-readable storage medium proposed in the present invention can solve the problem of how to achieve autonomous intelligent signal light prompts without relying on third-party navigation software. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1A schematic diagram of a flow chart of a signal light countdown prompt method provided by an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of a process for dividing data according to the intersection corresponding to the signal light image information provided by an embodiment of the present invention;
[0048] Figure 3 A functional module diagram of a signal light countdown prompt device provided by an embodiment of the present invention;
[0049] Figure 4 A schematic structural diagram of an electronic device for implementing the signal light countdown prompt method provided by an embodiment of the present invention.
[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0052] The present application embodiment provides a signal light countdown prompt method. The execution subject of the signal light countdown prompt method includes but is not limited to at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the present application embodiment.
[0053] Reference Figure 1 FIG. 2 is a flow chart of a signal light countdown prompt method provided by an embodiment of the present invention. In this embodiment, the signal light countdown prompt method includes:
[0054] S1. Obtaining traffic light image information photographed by a vehicle at multiple intersections.
[0055] In an embodiment of the present invention, the traffic light image information includes the intersection ID of the captured image, the traffic light image captured by the vehicle at the intersection, and the corresponding timestamp, i.e., the capturing time of the traffic light image, etc.; wherein the captured traffic light image includes red light, green light and yellow light.
[0056] Furthermore, when a vehicle captures traffic light image information at an intersection, the location of the intersection can be determined based on positioning information or intersection identification information, and a corresponding intersection ID can be assigned. Each intersection corresponds to a unique intersection ID, and the intersection ID can be used to identify different intersections in the traffic light image information.
[0057] Specifically, the positioning information collected by the vehicle positioning device can be combined, and when the vehicle approaches an intersection, the on-board camera can be called to capture the image of the traffic light at the intersection; or the on-board camera can be used to identify the road conditions during the vehicle's driving process, and when the traffic light information or road intersection is identified, the signal light image is captured. The specific method for capturing signal light image information of the present invention includes but is not limited to the above method, and is not specifically limited here.
[0058] In the embodiment of the present invention, the captured signal light image information may include signal light image information captured by different vehicles at different intersections or the same intersection, or signal light image information captured by the same vehicle at different intersections or the same intersection.
[0059] Specifically, the vehicle captures the image information of the traffic light at the intersection at a preset shooting frequency. For example, a traffic light image at the intersection may be captured every second and a corresponding shooting timestamp may be attached.
[0060] S2. Divide data according to the intersections corresponding to the traffic light image information to obtain multiple intersection traffic light sequences.
[0061] In an embodiment of the present invention, since the traffic light image information includes traffic light image information taken at different intersections, it is necessary to divide the traffic light image information according to different intersections to determine the traffic light image information taken at the same intersection, and then implement countdown analysis of the traffic lights at each intersection according to the divided traffic light sequence.
[0062] See also Figure 2 Specifically, the data is divided according to the intersections corresponding to the signal light image information to obtain multiple intersection signal light sequences, including:
[0063] S21, classifying the signal light image information according to the intersection ID in the signal light image information to obtain signal light image data groups corresponding to a plurality of intersections;
[0064] S22, performing signal light recognition on the signal light images in the signal light image data group to obtain signal light information;
[0065] S23: Generate intersection signal light sequences corresponding to a plurality of intersections according to the timestamp corresponding to the signal light image information in the signal light image data group and the signal light information.
[0066] In an embodiment of the present invention, each traffic light image data group includes multiple traffic light image information corresponding to an intersection ID and a timestamp corresponding to the traffic light image information; by performing traffic light recognition on the traffic light image information, it is possible to determine whether the intersection is a red light, a green light, or a yellow light at the moment corresponding to a certain timestamp, as well as determine information such as the number and shape of the traffic lights.
[0067] Furthermore, the signal light images in the signal light image information and the signal light information recognized based on the signal light images can be sorted according to the timestamps corresponding to the signal light image information, thereby obtaining an intersection signal light sequence corresponding to the intersection.
[0068] In an embodiment of the present invention, the step of performing signal light recognition on the signal light images in the signal light image data group to obtain signal light information includes: performing edge recognition on the signal light images; performing color recognition on the signal light images; and generating signal light information based on the results of edge recognition and color recognition.
[0069] Specifically, edge recognition of the traffic light image can determine the number of traffic lights and the direction of each traffic light, for example, left turn, straight go, right turn; color recognition of the traffic light image can determine the number of traffic lights and the color of each traffic light, for example, red, yellow, green.
[0070] Furthermore, the position of the traffic light in the traffic light image may be determined by using target detection first; and then Canny edge detection may be used to filter the image, perform gradient calculation, etc., to detect the edge and contour of the traffic light from the traffic light image.
[0071] The present invention can convert the traffic light image into HSV color space, which consists of three components: hue, saturation and value. It can determine whether it is red, yellow or green according to the range of hue value; and the color of the traffic light in the traffic light image can be further determined by the texture features of the traffic light image. In the traffic light image, traffic lights in different states have different texture features. For example, a red light usually has a stronger red halo, while a green light usually has a weaker green halo.
[0072] S3. Perform conditional judgment according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold to determine the signal light countdown information corresponding to each of the intersection signal light sequences.
[0073] In the embodiment of the present invention, since the signal light image information in the intersection signal light sequence may be photographed by different vehicles, the signal light image information in the intersection signal light sequence may be photographed at a long time interval, thereby causing insufficient preparation for generating the signal light countdown information.
[0074] Furthermore, in actual application scenarios, the traffic lights at intersections may remain yellow at night or on roads with few people. Therefore, errors may occur when generating traffic light countdown information based on the traffic light sequence at the intersection.
[0075] The present invention prevents the problems caused by the above-mentioned situation in the identification of signal light countdown information through the judgment between the time threshold and the timestamp, thereby improving the accuracy of the generation of signal light countdown information. Specifically, the conditional judgment is performed based on the timestamp corresponding to the signal light image information in the intersection signal light sequence and the preset time threshold to determine the signal light countdown information corresponding to each of the intersection signal light sequences, including: selecting a target signal light sequence from the intersection signal light sequence based on the first time threshold condition and the timestamp; selecting based on whether the signal light image information in the target signal light sequence undergoes a color jump; if a color jump occurs, generating the first signal light countdown information based on the same color image information in the target signal light sequence; if no color jump occurs, generating the second signal light countdown information based on the second time threshold condition and the target signal light sequence.
[0076] Among them, the signal light image information in the target signal light sequence is selected based on the first time threshold condition that the timestamps corresponding to the signal light image information are separated, so that the signal light images in the target signal light sequence are continuous, thereby ensuring the accuracy of the generation of the signal light countdown information; specifically, the first time threshold condition may be 1s apart, that is, the timestamps of the signal light image information in the target signal light sequence are 1s apart.
[0077] In an embodiment of the present invention, if the signal light image information in the target signal light sequence undergoes a color jump, it means that the signal light has undergone a color change within the time period corresponding to the target signal light sequence, and the duration of the signal light before and after the change may be the total time the signal light is set at the intersection.
[0078] In detail, the generating of the first signal light countdown information according to the same-color image information in the target signal light sequence includes the following two cases:
[0079] If the target signal light sequence has two signal light colors, it is determined that the target signal light sequence has a jump, and the same-color image sequences at both ends before and after the jump are extracted from the target signal light sequence; corresponding signal light countdown information at both ends is generated according to the timestamps corresponding to the signal light image information in the image sequences at both ends; the signal light countdown information stored at the intersection corresponding to the intersection signal light sequence is obtained, and the signal light countdown information at both ends is compared with the stored signal light countdown information to determine the first signal light countdown information.
[0080] If the target signal light sequence has three signal light colors, it is determined that the target signal light sequence has multiple jumps, and an intermediate same-color image sequence between two jumps is extracted from the target signal light sequence; corresponding intermediate signal light countdown information is generated according to the timestamp corresponding to the signal light image information in the intermediate same-color image sequence; the signal light countdown information stored at the intersection corresponding to the intersection signal light sequence is obtained, and the signal light countdown information is updated according to the intermediate signal light countdown information to obtain the first signal light countdown information.
[0081] In an embodiment of the present invention, the transition of the signal light can be determined based on the number of signal light colors identified by the target signal light sequence. If there are only two signal light colors, it means that only one signal light transition occurs, for example, red→yellow, yellow→green, green→red, etc.; the duration corresponding to each color can be determined based on the same color image sequence before and after the transition, and the duration is compared with the duration in the previously acquired signal light countdown information. If it is greater than the previously acquired signal light duration, it is updated.
[0082] If there are three traffic light colors, it means that at least two traffic light jumps have occurred, for example, red→yellow→green, yellow→green→red, green→red→yellow, red→yellow→green→red, green→red→yellow→green, etc.; among them, the same color image sequence with two jumps is the accurate duration of the traffic light. Taking yellow→green→red as an example, the duration of the middle green light is the actual duration of the green light at the intersection. Therefore, the middle traffic light countdown information obtained according to the middle green image sequence between the two jumps can directly update the duration of the green traffic light in the previously acquired traffic light countdown information.
[0083] Further, the generating the second signal light countdown information according to the second time threshold condition and the target signal light sequence includes: judging whether the second time threshold condition is met according to the timestamp corresponding to the signal light image information in the target signal light sequence; if the second time threshold condition is met, generating the second signal light countdown information according to the same-color image information of the target signal light sequence. If the second time threshold condition is not met, generating the yellow light countdown information according to the same-color image information of the target signal light sequence.
[0084] In the embodiment of the present invention, the second time threshold condition is used to determine whether the traffic light is in the yellow light state for a long time or a traffic light failure occurs.
[0085] The second time threshold can be the duration of the signal light under normal circumstances, for example, 90s. If the second time threshold is not exceeded, it is considered that the second time threshold condition is met, and the signal light is considered to be in a normal state, such as a red light state or a green light state. The signal light duration generated by the timestamp corresponding to the same color image information in the target signal light sequence is compared with the duration in the previously acquired signal light countdown information. If it is greater than the previously acquired signal light duration, it is updated. If the second time threshold is exceeded, it is considered that the second time threshold condition is not met, and the signal light is considered to be in a yellow light state or a signal light failure state.
[0086] S4. Generate a signal light countdown according to the signal light prompt demand sent by the target vehicle at the target intersection and the signal light countdown information, and prompt the target vehicle.
[0087] In the embodiment of the present invention, after the signal light countdown information corresponding to each of the intersection signal light sequences is obtained, the color of the signal light at each intersection at each moment can be determined according to the countdown duration of each intersection signal light and the timestamp corresponding to the signal light image information.
[0088] In detail, the traffic light prompt requirement can be real-time traffic light image information taken by the target vehicle at the target intersection. The real-time traffic light image is an intersection traffic light image and a corresponding timestamp taken by a vehicle-mounted camera when the target vehicle approaches or is at a certain intersection in an actual application scenario during real-time vehicle navigation; or it can be a navigation demand instruction including a geographic location and a current timestamp, according to which the traffic light status of the target intersection at the current time can be obtained.
[0089] The present invention can determine the current time information and position information through the signal light prompt demand, and realize the signal light countdown of the target intersection by using the pre-determined signal light countdown information and the current time information and position information.
[0090] Specifically, generating a signal light countdown and prompting the target vehicle based on a signal light prompt requirement sent by a target vehicle at a target intersection and the signal light countdown information includes: determining target signal light countdown information from the signal light countdown information based on the target intersection; generating a signal light countdown for the target intersection based on the target signal light countdown information and a timestamp in the signal light prompt requirement.
[0091] Among them, the traffic light countdown information includes countdown information corresponding to different intersection IDs, so it is necessary to determine the corresponding target traffic light countdown information according to the target intersection where the target vehicle is located; according to the timestamp in the real-time traffic light image signal, the corresponding traffic light color and the duration of the traffic light color can be determined in the target traffic light countdown information, and then the traffic light countdown for the target intersection can be generated.
[0092] Furthermore, the real-time traffic light countdown information of the target intersection can be provided to the driver on the dashboard of the target vehicle, including the red light countdown or the green light countdown of the target intersection.
[0093] The present invention performs sequence analysis based on the signal light image information of different intersections, and does not rely on the signal light setting rules between adjacent intersections, so as to achieve synchronous processing of signal light countdown at multiple intersections, thereby improving the efficiency of signal light countdown recognition; through conditional judgment between the timestamp in the signal light image information and the time threshold, the vehicle can be driven without relying on the signal light countdown judgment under the third-party software, and the vehicle can be flexibly provided with intelligent signal light prompts. Therefore, the signal light countdown prompt method proposed by the present invention can solve the problem of how to achieve autonomous intelligent signal light prompts without relying on third-party navigation software.
[0094] In another optional embodiment of the present invention, the target vehicle can use a vehicle-mounted camera to capture real-time traffic light image information when passing the target intersection. The real-time traffic light image information includes the traffic light color of the target intersection. The traffic light countdown information can continue to be updated according to the target intersection and the corresponding traffic light color to generate more accurate traffic light countdown information for each intersection.
[0095] like Figure 3 , is a functional module diagram of a signal light countdown prompt device 100 provided by an embodiment of the present invention. According to the functions to be implemented, the signal light countdown prompt device may include a signal light image information acquisition module 101, a road intersection signal light sequence generation module 102, a signal light countdown information generation module 103, and a signal light countdown generation and prompt module 104. The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by a processor of the signal light countdown prompt device and can complete fixed functions, and is stored in the memory of the signal light countdown prompt device.
[0096] In this embodiment, the functions of each module / unit are as follows:
[0097] The signal light image information acquisition module 101 is used to acquire signal light image information photographed by a vehicle at multiple intersections;
[0098] The intersection signal light sequence generating module 102 is used to divide the data according to the intersection corresponding to the signal light image information to obtain multiple intersection signal light sequences;
[0099] The signal light countdown information generating module 103 is used to perform conditional judgment according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold to determine the signal light countdown information corresponding to each intersection signal light sequence;
[0100] The signal light countdown generation and prompting module 104 is used to generate a signal light countdown and prompt the target vehicle according to the signal light prompting requirement sent by the target vehicle at the target intersection and the signal light countdown information.
[0101] In detail, each module described in the traffic light countdown prompt device 100 described in the embodiment of the present invention adopts the same technical means as the traffic light countdown prompt method described in the accompanying drawings when in use, and can produce the same technical effects, which will not be repeated here.
[0102] like Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a signal light countdown prompt method provided by an embodiment of the present invention.
[0103] The electronic device 200 may include a processor 201 , a memory 202 , a communication bus 203 , and a communication interface 204 , and may also include a computer program stored in the memory 202 and executable on the processor 201 , such as a traffic light countdown prompt program.
[0104] Wherein, the processor 201 may be composed of an integrated circuit in some embodiments, for example, it may be composed of a single packaged integrated circuit, or it may be composed of a plurality of integrated circuits packaged with the same function or different functions. The memory 202 may be used not only to store application software and various data installed in the electronic device, such as the code of the traffic light countdown prompt program, but also to temporarily store data that has been output or is to be output. The communication bus 203 may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize the connection and communication between the memory 202 and at least one processor 201, etc. The communication interface 204 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface.
[0105] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0106] The traffic light countdown prompt program stored in the memory 202 in the electronic device 200 is a combination of multiple instructions. When executed in the processor 201, the traffic light countdown prompt method described above can be implemented.
[0107] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the signal light countdown prompt method can be implemented.
[0108] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0109] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0110] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A signal light countdown prompt method, characterized in that: The method comprises: Obtain traffic light image information taken by vehicles at multiple intersections; Dividing data according to the intersections corresponding to the signal light image information to obtain multiple intersection signal light sequences; Perform conditional judgment according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold to determine the signal light countdown information corresponding to each intersection signal light sequence; A signal light countdown is generated according to a signal light prompt requirement sent by a target vehicle at a target intersection and the signal light countdown information, and the target vehicle is prompted.
2. The signal light countdown prompt method according to claim 1, characterized in that: The step of dividing data according to the intersections corresponding to the signal light image information to obtain a plurality of intersection signal light sequences includes: Classifying the signal light image information according to the intersection ID in the signal light image information to obtain signal light image data groups corresponding to a plurality of intersections; performing signal light recognition on the signal light images in the signal light image data group to obtain signal light information; Generate a traffic light sequence corresponding to a plurality of intersections according to the timestamp corresponding to the traffic light image information in the traffic light image data set and the traffic light information.
3. The signal light countdown prompt method according to claim 1, characterized in that: The performing conditional judgment according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold to determine the signal light countdown information corresponding to each intersection signal light sequence includes: Selecting a target signal light sequence from the intersection signal light sequence according to a first time threshold condition and the timestamp; According to whether the signal light image information in the target signal light sequence has a color jump; If a color jump occurs, generating first signal light countdown information according to the same color image information in the target signal light sequence; If no color jump occurs, second signal light countdown information is generated according to the second time threshold condition and the target signal light sequence.
4. The signal light countdown prompt method according to claim 3, characterized in that: The step of generating the first signal light countdown information according to the same-color image information in the target signal light sequence includes: If the target signal light sequence has two signal light colors, it is determined that the target signal light sequence has a jump, and an image sequence of the same color at both ends before and after the jump is extracted from the target signal light sequence; Generate corresponding countdown information of the signal lights at both ends according to the timestamps corresponding to the signal light image information in the image sequences at both ends; The stored signal light countdown information of the intersection corresponding to the signal light sequence of the intersection is obtained, and the signal light countdown information at both ends is compared with the stored signal light countdown information to determine the first signal light countdown information.
5. The signal light countdown prompt method according to claim 3, characterized in that: The step of generating the first signal light countdown information according to the same-color image information in the target signal light sequence includes: If the target signal light sequence has three signal light colors, it is determined that the target signal light sequence undergoes multiple jumps, and an intermediate same-color image sequence between two jumps is extracted from the target signal light sequence; Generate corresponding intermediate signal light countdown information according to the timestamp corresponding to the signal light image information in the intermediate same-color image sequence; The signal light countdown information stored at the intersection corresponding to the intersection signal light sequence is obtained, and the signal light countdown information is updated according to the intermediate signal light countdown information to obtain the first signal light countdown information.
6. The signal light countdown prompt method according to claim 3, characterized in that: The generating the second signal light countdown information according to the second time threshold condition and the target signal light sequence includes: Determining whether a second time threshold condition is met according to a timestamp corresponding to the signal light image information in the target signal light sequence; When the second time threshold condition is met, second signal light countdown information is generated according to the same-color image information of the target signal light sequence. If the second time threshold condition is not met, yellow light countdown information is generated according to the same-color image information of the target signal light sequence.
7. The signal light countdown prompt method according to claim 1, characterized in that: The generating of a signal light countdown according to a signal light prompting requirement sent by a target vehicle at a target intersection and the signal light countdown information and prompting the target vehicle comprises: Determining target traffic light countdown information from the traffic light countdown information according to the target intersection; The traffic light countdown of the target intersection is generated according to the target traffic light countdown information and the timestamp in the traffic light prompt requirement.
8. A signal light countdown prompt device, characterized in that: The device comprises: A signal light image information acquisition module is used to acquire signal light image information taken by vehicles at multiple intersections; A road intersection signal light sequence generation module, used for dividing data according to the road intersections corresponding to the signal light image information to obtain a plurality of road intersection signal light sequences; A signal light countdown information generating module, used for performing conditional judgment according to the timestamp corresponding to the signal light image information in the intersection signal light sequence and a preset time threshold, so as to determine the signal light countdown information corresponding to each of the intersection signal light sequences; The signal light countdown generation and prompt module is used to generate a signal light countdown and prompt the target vehicle according to the signal light prompt requirement sent by the target vehicle at the target intersection and the signal light countdown information.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the steps in the signal light countdown prompt method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the signal light countdown prompt method according to any one of claims 1 to 7 are implemented.
