A traffic warning method, system, electronic device and computer program product

By setting up interconnected early warning devices on rural roads to monitor motor vehicles, non-motor vehicles, and pedestrians, simultaneous early warnings for all parties are achieved, solving the problem of low traffic safety on rural roads and significantly reducing the accident rate.

CN122157515APending Publication Date: 2026-06-05ZHEJIANG SUPCON INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG SUPCON INFORMATION TECH CO LTD
Filing Date
2024-12-03
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In rural areas, due to the lack of comprehensive traffic control measures, motor vehicles, non-motor vehicles, and pedestrians frequently share the road, resulting in low traffic safety. Existing traffic warning systems have limitations in their application on rural roads, making it difficult to effectively monitor and prevent accidents.

Method used

The first and second early warning devices are set up to monitor motor vehicles, while the third and fourth early warning devices are set up to monitor non-motorized vehicles or pedestrians. Through the linkage mechanism, the early warning of motor vehicles, non-motorized vehicles and pedestrians can be realized simultaneously, so as to ensure that all parties are aware of the danger in advance and take safety measures.

Benefits of technology

It has improved traffic safety on rural roads, reduced the incidence of traffic accidents, and enhanced the practicality and effectiveness of the early warning system, especially in the absence of traffic lights, where it can effectively reduce the risk of accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122157515A_ABST
    Figure CN122157515A_ABST
Patent Text Reader

Abstract

The application discloses a traffic warning method, system, electronic device and computer program product, relates to the field of traffic safety, and comprises a first warning device, a second warning device, a third warning device and a fourth warning device. The first warning device and the third warning device are on one side of a road and pass through the first warning device and the third warning device in sequence along a driving direction, and the second warning device and the fourth warning device are on the other side and pass through the second warning device and the fourth warning device in sequence along the driving direction. The third detection area of the third warning device and the fourth detection area of the fourth warning device have an overlapping area and jointly cover a transverse area. The first target warning device detects a motor vehicle and has a moving behavior, sends a linkage signal to the second target warning device. The second target warning device detects a non-motor vehicle or a pedestrian and has a moving behavior, and sends a linkage signal to the first target warning device. The linkage of the warning devices can realize synchronous warning, and the traffic safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of traffic safety technology, and in particular to a traffic warning method, system, electronic device and computer program product. Background Technology

[0002] With economic development, the construction of roads is rapidly developing in various urban areas or between urban and rural areas to connect different urban areas or between urban and rural areas, facilitating people's travel.

[0003] To improve road traffic safety, traffic control measures such as barriers and traffic lights are usually installed on roads to facilitate the differentiation of the movement areas and times of motor vehicles, non-motor vehicles, and pedestrians.

[0004] Due to limitations in road design, some roads often lack comprehensive traffic control measures, resulting in frequent instances of motor vehicles, non-motorized vehicles, and pedestrians sharing the road. Consequently, the difficulty in controlling the movement of motor vehicles, non-motorized vehicles, and pedestrians leads to lower road traffic safety. Summary of the Invention

[0005] In view of the above problems, this application provides a traffic early warning method, system, electronic device, and computer program product to improve road traffic safety. The specific solution is as follows:

[0006] This application provides a traffic warning method applied to a traffic warning system. The traffic warning system includes a first warning device, a second warning device, a third warning device, and a fourth warning device. The first and third warning devices are located on one side of a road segment, and the second and fourth warning devices are located on the other side of the road segment. A vehicle travels along the prescribed direction of travel of the road in the first detection area of ​​the first warning device, sequentially passing through the first and third warning devices. Similarly, a vehicle travels along the prescribed direction of travel of the road in the second detection area of ​​the second warning device, sequentially passing through the second and fourth warning devices. The prescribed direction of travel of the vehicle in the first detection area is opposite to that in the second detection area. The third detection area of ​​the third warning device overlaps with the fourth detection area of ​​the fourth warning device, and the third and fourth detection areas together cover a cross-sectional area of ​​the road segment, which is the travel area for non-motorized vehicles or pedestrians crossing the road.

[0007] The traffic early warning method includes:

[0008] The first target warning device monitors the first target detection area. If the first target warning device detects that the first target object is a motor vehicle in the first target detection area, it continuously tracks the first target object. When it is determined that the first target object has moving behavior in the first target detection area, it sends a linkage signal to the second target warning device so that the second target warning device can issue a warning.

[0009] The second target warning device monitors the second target detection area. If the second target warning device detects that the second target object is a non-motorized vehicle or a pedestrian in the second target detection area, it will continuously track the second target object. When it is determined that the second target object has moving behavior in the second target detection area, it will send a linkage signal to the first target warning device so that the first target warning device can issue a warning.

[0010] Wherein, the first target warning device is at least one of the first warning device and the second warning device, the second target warning device is at least one of the third warning device and the fourth warning device, the first target detection area is at least one of the first detection area and the second detection area, and the second target detection area is at least one of the third detection area and the fourth detection area.

[0011] In one possible implementation, the first or second warning device includes a first traffic camera and a vehicle audible and visual warning post. The first traffic camera and the vehicle audible and visual warning post of the first warning device are physically connected. Similarly, the first traffic camera and the vehicle audible and visual warning post of the second warning device are physically connected. The third or fourth warning device includes a second traffic camera and a non-motorized vehicle / pedestrian audible and visual warning post. The second traffic camera and the non-motorized vehicle / pedestrian audible and visual warning post of the third warning device are physically connected. The second traffic camera and the non-motorized vehicle / pedestrian audible and visual warning post of the fourth warning device are physically connected.

[0012] The detection areas of both the first and second warning devices are the field of view of the first traffic camera, and the field of view of the first traffic camera covers the one-way lane of the road section.

[0013] The detection areas of both the third and fourth early warning devices are the far-end areas within the field of view of the second traffic camera.

[0014] In one possible implementation, both the motor vehicle sound and light warning post and the non-motor vehicle and pedestrian sound and light warning post include a loudspeaker, a display device, and an alarm light.

[0015] In one possible implementation, the first target warning device monitors a first target detection area. If the first target warning device detects a first target object as a motor vehicle in the first target detection area, it continuously tracks the first target object. When it is determined that the first target object is moving within the first target detection area, it sends a linkage signal to the second target warning device, including:

[0016] The first traffic camera detects a first target object in the field-of-view image data of the first target detection area. If the confidence level of the first target object is greater than a first preset threshold, the first target object is determined to be a motor vehicle.

[0017] If the first traffic camera detects the first target object in at least three consecutive image frames of the field-of-view image data in the first target detection area, it is determined that the first target object has moving behavior in the first target detection area.

[0018] The first traffic camera sends a first switching signal to the vehicle sound and light warning post that has a fixed physical connection with the first traffic camera, triggering the vehicle sound and light warning post that has a fixed physical connection with the first traffic camera to send a linkage signal to the second target warning device through serial communication.

[0019] In one possible implementation, the second target warning device monitors the second target detection area. If the second target warning device detects a non-motorized vehicle or pedestrian in the second target detection area, it continuously tracks the second target object. When it determines that the second target object is moving within the second target detection area, it sends a linkage signal to the first target warning device, including:

[0020] The second traffic camera detects a second target object in the field of view image data of the second target detection area. If the confidence level of the second target object is greater than the second preset threshold, the second target object is determined to be a non-motorized vehicle or a pedestrian.

[0021] If the second traffic camera detects the second target object in at least three consecutive image frames of the field of view image data of the second target detection area and the angle between the movement direction of the second target object and the reference line is not greater than a preset angle, then it is determined that the second target object has movement behavior in the second target detection area.

[0022] The second traffic camera sends a second switching signal to the non-motorized vehicle sound and light warning post that has a fixed physical connection with the second traffic camera, triggering the non-motorized vehicle and pedestrian sound and light warning post that has a fixed physical connection with the second traffic camera to send a linkage signal to the first target warning device through serial communication. The reference line is the virtual center line of the detection area of ​​the second target warning device.

[0023] One possible implementation also includes:

[0024] If the first traffic camera detects a motor vehicle as the first target object in the first target detection area and determines that the first target object is moving in the first target detection area, a third switching signal is sent to the motor vehicle sound and light warning column that has a fixed physical connection with the first traffic camera, so that the first target warning device prompts the motor vehicle to pay attention to the road conditions ahead.

[0025] If the second traffic camera detects a non-motorized vehicle or pedestrian as a second target object in the second target detection area, and determines that the second target object is moving in the second target detection area, then a fourth switching signal is sent to the non-motorized vehicle and pedestrian sound and light warning post that has a fixed physical connection with the second traffic camera, so that the second target warning device prompts the non-motorized vehicle or pedestrian to pay attention to road safety.

[0026] One possible implementation also includes:

[0027] If the vehicle audible and visual warning column receives both the third switch signal and the linkage signal simultaneously, the linkage signal shall be responded to first.

[0028] If the non-motorized vehicle and pedestrian sound and light warning post receives both the fourth switch signal and the linkage signal at the same time, it shall respond to the linkage signal first.

[0029] A second aspect of this application provides a traffic warning system, comprising a first warning device, a second warning device, a third warning device, and a fourth warning device. The first and third warning devices are disposed on one side of a road segment, and the second and fourth warning devices are disposed on the other side of the road segment. A vehicle travels along the prescribed direction of travel of the road in the first detection area of ​​the first warning device, passing sequentially through the first and third warning devices; and along the prescribed direction of travel of the road in the second detection area of ​​the second warning device, passing sequentially through the second and fourth warning devices. The prescribed direction of travel of the road in the first detection area is opposite to that in the second detection area. The third detection area of ​​the third warning device overlaps with the fourth detection area of ​​the fourth warning device, and the third and fourth detection areas together cover a transverse area of ​​the road segment, which is the passageway for non-motorized vehicles or pedestrians crossing the road.

[0030] The first target warning device is configured to monitor the first target detection area. If the first target warning device detects that the first target object is a motor vehicle in the first target detection area, it will continuously track the first target object. When it is determined that the first target object has moving behavior in the first target detection area, it will send a linkage signal to the second target warning device so that the second target warning device can issue a warning.

[0031] The second target warning device is configured to monitor the second target detection area. If the second target warning device detects that the second target object is a non-motorized vehicle or a pedestrian in the second target detection area, it will continuously track the second target object. When it is determined that the second target object has moving behavior in the second target detection area, it will send a linkage signal to the first target warning device so that the first target warning device can issue a warning.

[0032] Wherein, the first target warning device is at least one of the first warning device and the second warning device, the second target warning device is at least one of the third warning device and the fourth warning device, the first target detection area is at least one of the first detection area and the second detection area, and the second target detection area is at least one of the third detection area and the fourth detection area.

[0033] A third aspect of this application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0034] The memory is used to store computer programs;

[0035] The processor is used to execute the computer program so that the electronic device can implement the traffic warning method of the first aspect or any implementation thereof.

[0036] The fourth aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the traffic warning method of the first aspect or any implementation thereof.

[0037] By employing the above technical solutions, this application provides a traffic early warning method, system, electronic device, and computer program product. For a section of road, this method respectively sets up a first early warning device, a second early warning device, a third early warning device, and a fourth early warning device. The prescribed driving direction of the road in the first detection area of ​​the first early warning device is opposite to the prescribed driving direction of the road in the second detection area of ​​the second early warning device, facilitating comprehensive detection of motor vehicle traffic conditions on the road. The third detection area of ​​the third early warning device overlaps with the fourth detection area of ​​the fourth early warning device, and the third and fourth detection areas together cover a cross-section of the road, facilitating the detection of whether pedestrians are crossing the road or non-motorized vehicles are crossing the road in a portion of the cross-section of the road. When at least one of the first and second warning devices detects a motor vehicle in the detection area and the vehicle is moving within the detection area, a linkage signal can be sent in advance to the third and fourth warning devices, enabling them to issue warnings to non-motorized vehicles or pedestrians. Similarly, when at least one of the third and fourth warning devices detects a pedestrian or non-motorized vehicle in the detection area and the pedestrian or non-motorized vehicle is moving within the detection area, a linkage signal can be sent in advance to either the first or second warning device, enabling both devices to issue warnings to motor vehicles. This method utilizes the coordinated detection and warning systems of the first, second, third, and fourth warning devices to provide early warnings to motor vehicles, non-motorized vehicles, and pedestrians, ensuring that all road users receive warning signals simultaneously and effectively improving road traffic safety. Attached Figure Description

[0038] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0039] Figure 1 A schematic diagram illustrating the installation of the first, second, third, and fourth early warning devices provided in this application;

[0040] Figure 2 A schematic diagram of the structure of a first or second early warning device provided in this application;

[0041] Figure 3 A schematic diagram of the structure of a third or fourth early warning device provided in this application;

[0042] Figure 4 A flowchart illustrating a traffic early warning method provided in this application;

[0043] Figure 5 A schematic diagram of the detection area of ​​an early warning device provided in this application;

[0044] Figure 6 This application provides a hardware structure block diagram of an electronic device.

[0045] Figure label:

[0046] 1-First early warning device; 2-Second early warning device; 3-Third early warning device; 4-Fourth early warning device. Detailed Implementation

[0047] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0048] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0049] The terms "first," "second," etc., used in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of units is not necessarily limited to those units, but may include other units not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0050] In the current traffic environment, rural roads, as vital links between cities and rural areas, are receiving increasing attention for their traffic safety. Furthermore, with the development of the rural economy, the number of motor vehicles in rural areas has increased significantly. However, rural roads are typically narrow, and due to design limitations, they lack the advanced traffic monitoring and early warning systems found in urban roads. They often lack comprehensive traffic control measures, leading to a common phenomenon of motor vehicles, non-motorized vehicles, and pedestrians sharing roads in rural areas. At intersections or junctions on rural roads, drivers of motor vehicles or non-motorized vehicles often struggle to assess the behavior of other road users, resulting in more frequent interference and conflicts between motor vehicles, non-motorized vehicles, and pedestrians.

[0051] Existing traffic warning systems are primarily applied to urban roads, with insufficient consideration given to the unique characteristics of rural roads, lacking specific warning mechanisms for rural areas. Furthermore, the absence of traffic lights and other comprehensive traffic control measures on rural roads makes it difficult to effectively monitor the movements of motor vehicles, non-motorized vehicles, and pedestrians, resulting in poor accident prevention. Additionally, communication signals on rural roads are weaker than on urban roads, limiting the practical application of existing traffic warning systems and making it difficult to meet the road safety needs of rural areas. Therefore, there is an urgent need to develop a warning system suitable for rural road environments and operating in the absence of traffic lights to improve traffic safety and reduce traffic accidents on rural roads.

[0052] To address the aforementioned problems, this application provides a traffic warning method applied to a traffic warning system. The system may include a first warning device, a second warning device, a third warning device, and a fourth warning device. The first and second warning devices monitor motor vehicles, while the third and fourth warning devices monitor non-motorized vehicles or pedestrians. The first and second warning devices are linked with the third and fourth warning devices, enabling simultaneous warnings to motor vehicles, non-motorized vehicles, and pedestrians. This allows all parties to be aware of potential dangers in advance and take timely safety or preventative measures, reducing the occurrence of accidents. The following detailed description of an embodiment of this traffic warning method, in conjunction with the accompanying drawings, further illustrates this method.

[0053] This application provides a traffic warning method applied to a traffic warning system, which includes a first warning device, a second warning device, a third warning device, and a fourth warning device. Figure 1The diagram shows the installation of the first warning device 1, the second warning device 2, the third warning device 3, and the fourth warning device 4. The first warning device 1 and the third warning device 3 are installed on one side of a road segment, and the second warning device 2 and the fourth warning device 4 are installed on the other side of the same road segment. Motor vehicles traveling in the prescribed direction of travel along the road within the first detection area of ​​the first warning device 1 pass through the first warning device 1 and the third warning device 3 in sequence; similarly, they travel in the prescribed direction of travel along the road within the second detection area of ​​the second warning device 2 pass through the second warning device 2 and the fourth warning device 4 in sequence. The prescribed direction of travel for motor vehicles in the first detection area is opposite to that in the second detection area. The third detection area of ​​the third warning device 3 overlaps with the fourth detection area of ​​the fourth warning device 4, and both areas together cover a cross-section of the road segment, which is the area where non-motorized vehicles or pedestrians cross the road.

[0054] The first and second early warning devices can be used to monitor motor vehicles, while the third and fourth early warning devices can be used to monitor non-motorized vehicles or pedestrians. Specifically, for example... Figure 2 As shown, a first or second warning device may include a first traffic camera and a vehicle audible and visual warning post. The first traffic camera of the first warning device and the vehicle audible and visual warning post of the first warning device have a fixed physical connection, and the first traffic camera of the second warning device and the vehicle audible and visual warning post of the second warning device also have a fixed physical connection. Specifically, the first traffic camera may be installed directly above the vehicle audible and visual warning post, and is responsible for detecting vehicles and monitoring their oncoming traffic. Figure 3 As shown, the third or fourth warning device includes a second traffic camera and a non-motorized vehicle / pedestrian sound and light warning post. The second traffic camera of the third warning device and the non-motorized vehicle / pedestrian sound and light warning post of the third warning device are physically connected. Similarly, the second traffic camera of the fourth warning device is physically connected to the non-motorized vehicle / pedestrian sound and light warning post of the fourth warning device. Specifically, the second traffic camera can be installed directly above the non-motorized vehicle / pedestrian sound and light warning post, and is responsible for detecting non-motorized vehicles or pedestrians and monitoring the movement of motorized vehicles or pedestrians. The first and second traffic cameras can be panoramic cameras or other cameras with higher installation heights. Higher installation positions can reduce blind spots and thus expand the detection field of view. Alternatively, the first and second traffic cameras can be replaced with ultrasonic sensors or radar.

[0055] Furthermore, the first traffic camera and the motor vehicle sound and light warning post can operate offline without networking, and the second traffic camera and the non-motorized vehicle and pedestrian sound and light warning post can also operate offline without networking, without relying on an external network.

[0056] Reference Figure 4 , Figure 4 This is a flowchart illustrating a traffic warning method provided in an embodiment of this application, as shown below. Figure 4 As shown in the figure, a traffic warning method provided in this application embodiment may include steps S10 and S11, which are described in detail below.

[0057] S10. The first target warning device monitors the first target detection area. If the first target warning device detects that the first target object is a motor vehicle in the first target detection area, it continuously tracks the first target object. When it is determined that the first target object has moving behavior in the first target detection area, it sends a linkage signal to the second target warning device so that the second target warning device can issue a warning.

[0058] S11. The second target warning device monitors the second target detection area. If the second target warning device detects that the second target object is a non-motorized vehicle or a pedestrian in the second target detection area, it will continue to track the second target object. When it is determined that the second target object has moving behavior in the second target detection area, it will send a linkage signal to the first target warning device so that the first target warning device can issue a warning.

[0059] The implementation of steps S10 and S11 is not sequential. The first target warning device is at least one of the first warning device and the second warning device, the second target warning device is at least one of the third warning device and the fourth warning device, the first target detection area is at least one of the first detection area and the second detection area, and the second target detection area is at least one of the third detection area and the fourth detection area.

[0060] like Figure 5 As shown, in this embodiment, the field of view of the first traffic camera is selected as the detection area of ​​the first warning device and the second warning device, and the field of view of the first traffic camera can cover a section of one-way lane of the road. This embodiment achieves accurate identification and timely warning of motor vehicles by ensuring that the field of view of the first traffic camera covers the entire oncoming lane (the field of view of the first traffic camera of the first warning device covers an entire one-way lane of the road, and the field of view of the first traffic camera of the second warning device covers another entire one-way lane of the road). The first traffic camera includes a motor vehicle detection module, which ensures that the first traffic camera can quickly identify potential traffic risks and send a switching signal to the motor vehicle audible and visual warning column based on detecting multiple frames (e.g., 8 frames) of image data per second, thereby issuing a warning signal to the motor vehicle.

[0061] In this embodiment, when the first traffic camera detects a first target object in the field-of-view image data of the first target detection area, if the confidence level of the first target object is greater than a first preset threshold, the first target object can be determined to be a motor vehicle. The first preset threshold can be a confidence threshold for the motor vehicle category, and its value can be 0.75. After detecting a motor vehicle, the first traffic camera can continuously track the motor vehicle to facilitate determining whether the motor vehicle has moving behavior in the first target detection area. Specifically, the first traffic camera continuously tracks the first target object. Since the motor vehicle detection module in the first traffic camera is set with a time window of size 4, if the first traffic camera detects the first target object in at least three consecutive image frames of the field-of-view image data of the first target detection area, it is determined that the first target object has moving behavior in the first target detection area. This embodiment sets a short time window for the motor vehicle detection module so that the first traffic camera can achieve rapid early warning while ensuring detection accuracy, promptly reminding motor vehicle drivers to pay attention to road conditions ahead and potential risks. Furthermore, rapid detection within a short time can also ensure timely warnings to motor vehicle drivers, non-motor vehicle drivers, or pedestrians in emergency situations, preventing traffic accidents.

[0062] When a motor vehicle moves within the first target detection area, indicating it is traveling in the lane and approaching, the first traffic camera sends a first switching signal to the motor vehicle audible and visual warning post with a fixed physical connection to it. This triggers a linked warning for non-motorized vehicles and pedestrians, prompting the second target warning device to alert non-motorized vehicles or pedestrians to cross the road safely. Specifically, after receiving the first switching signal from the first traffic camera, the motor vehicle audible and visual warning post sends a linkage signal to the second target warning device via serial communication, causing the non-motorized vehicle and pedestrian audible and visual warning post in the second target warning device to issue a warning to non-motorized vehicles or pedestrians. In this embodiment, the serial communication method used is RS-485 serial communication, which does not rely on an external network.

[0063] Furthermore, when the first traffic camera sends a first switching signal to the vehicle audible and visual warning post with which it has a fixed physical connection, the vehicle audible and visual warning post, in addition to sending a linkage signal to the second target warning device, can also trigger its own vehicle warning based on the first switching signal. Of course, the first traffic camera can also additionally send a third switching signal, different from the first switching signal, to trigger the first target warning device to trigger its own vehicle warning, alerting vehicles to the road conditions ahead. Specifically, if the first traffic camera detects a first target object in the first target detection area and determines that the first target object is moving within the first target detection area, it sends a third switching signal to the vehicle audible and visual warning post with a fixed physical connection to the first traffic camera, so that the first target warning device alerts vehicles to the road conditions ahead.

[0064] Furthermore, if the vehicle audible and visual warning post receives both the first switching signal and the linkage signal simultaneously, the linkage signal will be responded to first; or if the vehicle audible and visual warning post receives both the third switching signal and the linkage signal simultaneously, the linkage signal will be responded to first.

[0065] Due to the limited height of the second traffic camera, it has blind spots and incomplete target display at close range, especially when large objects such as trucks pass by, easily filling the camera's field of view and affecting its detection performance. Therefore, if Figure 5 As shown, in this embodiment, the far-end area of ​​the second traffic camera's field of view is selected as the detection area of ​​the third and fourth warning devices. This ensures that the detection areas of the third and fourth warning devices overlap and completely cover the walking areas of non-motorized vehicles or pedestrians on the road. This effectively avoids the problem of momentary false detection of large objects within the field of view of the second traffic camera, thereby preventing warning failures due to momentary field-of-view obstruction and improving the confidence and accuracy of target detection.

[0066] The second traffic camera includes a non-motorized vehicle and pedestrian detection module. This module can quickly identify potential traffic risks by detecting multiple frames (e.g., 8 frames) of image data per second and send switching signals to the non-motorized vehicle and pedestrian warning posts. The warning posts then issue warning signals to non-motorized vehicles or pedestrians. While detecting targets, this module can also distinguish between normal behavior within the designated area and abnormal behavior such as trespassing into the motorized vehicle lane by tracking the target's movement direction.

[0067] Specifically, the second traffic camera detects a second target object in the field-of-view image data of the second target detection area. If the confidence level of the second target object is greater than a second preset threshold, the second target object is determined to be a non-motorized vehicle or a pedestrian. The second preset threshold can be a confidence threshold for the category of non-motorized vehicle or pedestrian. Once the second traffic camera determines that the second target object is a non-motorized vehicle or pedestrian, it can continuously track the non-motorized vehicle or pedestrian to facilitate determining whether the non-motorized vehicle or pedestrian has movement behavior in the second target detection area. Specifically, the second traffic camera continuously tracks the second target object. If the second traffic camera detects the second target object in at least three consecutive image frames of the field-of-view image data of the second target detection area and the angle between the movement direction of the second target object and the reference line is not greater than a preset angle, the second target object is determined to have movement behavior in the second target detection area. In this embodiment, the reference line is the virtual center line of the detection area of ​​the second target warning device. When there is a zebra crossing in the walking area, the reference line can be the center line of the zebra crossing. The preset angle can be 60 degrees.

[0068] When the second traffic camera detects movement of a second target object within its detection area, indicating that a non-motorized vehicle or pedestrian is crossing the road, the second traffic camera sends a second switching signal to the non-motorized vehicle / pedestrian audible and visual warning post with a fixed physical connection to it. This triggers a coordinated warning from the motorized vehicle audible and visual warning post, prompting the first target warning device to alert motor vehicles to the road conditions ahead. Specifically, after receiving the second switching signal from the second traffic camera, the non-motorized vehicle / pedestrian audible and visual warning post sends a coordinated signal to the first target warning device via serial communication, causing the motorized vehicle audible and visual warning post in the first target warning device to warn motor vehicles.

[0069] Furthermore, when the second traffic camera sends a second switching signal to the non-motorized vehicle and pedestrian audible and visual warning post with a fixed physical connection to it, the non-motorized vehicle and pedestrian audible and visual warning post, in addition to sending a linkage signal to the first target warning device, can also trigger its own non-motorized vehicle or pedestrian warning based on the second switching signal. Of course, the second traffic camera can also additionally send a fourth switching signal, different from the second switching signal, to cause the second target warning device to trigger its own non-motorized vehicle or pedestrian warning, alerting non-motorized vehicles or pedestrians to cross the road safely. Specifically, if the second traffic camera detects a second target object in the second target detection area and determines that the second target object is moving within the second target detection area, it sends a fourth switching signal to the non-motorized vehicle and pedestrian audible and visual warning post with a fixed physical connection to the second traffic camera, so that the second target warning device alerts non-motorized vehicles or pedestrians to cross the road safely.

[0070] Further, if the non-motor vehicle and pedestrian sound and light warning column receives the second digital input signal and the linkage signal simultaneously, it will give priority to the linkage signal. Or if the non-motor vehicle and pedestrian sound and light warning column receives the fourth digital input signal and the linkage signal simultaneously, it will give priority to the linkage signal.

[0071] In this embodiment, both the motor vehicle sound and light warning column and the non-motor vehicle and pedestrian sound and light warning column include a sound amplification device, a display device and an alarm lamp. The sound amplification device can be a speaker, which is used to play voice program content to give warnings to motor vehicles, non-motor vehicles or pedestrians. Both the motor vehicle sound and light warning column and the non-motor vehicle and pedestrian sound and light warning column can include two sets of voice program content, one set is the voice program content output by current detection, and the other set is the voice program content output during linkage. For example, for the motor vehicle sound and light warning column, the voice program content is all for the drivers of motor vehicles. The voice program content output by current detection can be: Pay attention to the intersection ahead, and please pay attention to passing non-motor vehicles and pedestrians. The voice program content output during linkage can be: There is a crossing ahead, please slow down and give way. The display device can be an LED display screen, which is used to display the text content corresponding to the voice program content. The alarm lamp mainly flashes during warning to make the driver or pedestrian notice the text content displayed on the display device. Further, the voice program content playback of the motor vehicle sound and light warning column and the non-motor vehicle and pedestrian sound and light warning column, the text content display of the display device, and the flashing alarm of the alarm lamp can all operate offline without networking.

[0072] This application provides a traffic warning method. For a road segment, a first warning device, a second warning device, a third warning device, and a fourth warning device are respectively installed. The first and third warning devices are located on one side of the road, and the second and fourth warning devices are located on the other side. Vehicles traveling in the prescribed direction of traffic within the first detection area of ​​the first warning device pass through the first and third warning devices sequentially, and similarly, vehicles traveling in the prescribed direction of traffic within the second detection area of ​​the second warning device pass through the second and fourth warning devices sequentially. Furthermore, the prescribed direction of traffic within the first detection area of ​​the first warning device is opposite to that within the second detection area of ​​the second warning device, facilitating comprehensive detection of vehicle traffic conditions. The third detection area of ​​the third warning device overlaps with the fourth detection area of ​​the fourth warning device, and both areas jointly cover a cross-section of the road segment, avoiding blind spots. This cross-section is the area where non-motorized vehicles or pedestrians cross the road, facilitating the detection of whether pedestrians or non-motorized vehicles are crossing the road within this cross-section. The warning devices in this method are configured such that when at least one of the first and second warning devices detects a motor vehicle in the detection area and the vehicle is moving within the detection area, a linkage signal can be sent to the third and fourth warning devices in advance. This allows the third and fourth warning devices to warn non-motorized vehicles or pedestrians of the impending arrival of a motor vehicle, enabling them to prepare to avoid it. Similarly, when at least one of the third and fourth warning devices detects a pedestrian or non-motorized vehicle in the detection area and the pedestrian or non-motorized vehicle is moving within the detection area, a linkage signal can be sent to the first or second warning device in advance. This allows the first and second warning devices to warn motorized vehicles of a pedestrian or non-motorized vehicle crossing the road ahead, enabling them to prepare to avoid it. This method, through the coordinated detection and warning of the first, second, third, and fourth warning devices, provides early warnings to motorized vehicles, non-motorized vehicles, and pedestrians, influencing their actions and effectively improving road traffic safety. The linkage scheme in this application further enhances the practicality and effectiveness of the traffic warning system. When a potential conflict between motor vehicles, non-motor vehicles, or pedestrians is detected, the traffic warning system can quickly trigger the warning devices and achieve linkage between them, ensuring that all road users receive the warning signal simultaneously. This linkage mechanism can effectively reduce the traffic accident rate and significantly improve traffic safety in complex road environments without traffic lights.Furthermore, the traffic warning system in this embodiment can achieve efficient operation of the warning function through localized processing and storage, and has stability that does not depend on external networks.

[0073] The above describes a traffic warning method provided by the embodiments of this application. The following will describe a system that applies the above traffic warning method.

[0074] The traffic warning system may include a first warning device, a second warning device, a third warning device, and a fourth warning device.

[0075] The first and third warning devices are installed on one side of a section of road, and the second and fourth warning devices are installed on the other side of the same section of road. Motor vehicles travel in the prescribed direction of travel along the road within the first detection area of ​​the first warning device, passing sequentially through the first and third warning devices. Similarly, they travel in the prescribed direction of travel along the road within the second detection area of ​​the second warning device, passing sequentially through the second and fourth warning devices. The prescribed direction of travel for motor vehicles in the first detection area is opposite to that in the second detection area. The third detection area of ​​the third warning device overlaps with the fourth detection area of ​​the fourth warning device, and both areas together cover a cross-section of the road, which is the area where non-motorized vehicles or pedestrians cross the road.

[0076] The first target warning device is configured to monitor the first target detection area. If the first target warning device detects that the first target object is a motor vehicle in the first target detection area, it will continuously track the first target object. When it is determined that the first target object has moving behavior in the first target detection area, it will send a linkage signal to the second target warning device so that the second target warning device can issue a warning.

[0077] The second target warning device is configured to monitor the second target detection area. If the second target warning device detects that the second target object is a non-motorized vehicle or a pedestrian in the second target detection area, it will continuously track the second target object. When it is determined that the second target object has moving behavior in the second target detection area, it will send a linkage signal to the first target warning device so that the first target warning device can issue a warning.

[0078] Wherein, the first target early warning device is at least one of the first early warning device and the second early warning device, the second target early warning device is at least one of the third early warning device and the fourth early warning device, the first target detection area is at least one of the first detection area and the second detection area, and the second target detection area is at least one of the third detection area and the fourth detection area.

[0079] In one possible implementation, the first or second warning device includes a first traffic camera and a vehicle audible and visual warning post. The first traffic camera and the vehicle audible and visual warning post of the first warning device are physically connected. Similarly, the first traffic camera and the vehicle audible and visual warning post of the second warning device are physically connected. The third or fourth warning device includes a second traffic camera and a non-motorized vehicle / pedestrian audible and visual warning post. The second traffic camera and the non-motorized vehicle / pedestrian audible and visual warning post of the third warning device are physically connected. The second traffic camera and the non-motorized vehicle / pedestrian audible and visual warning post of the fourth warning device are physically connected.

[0080] The detection areas of both the first and second early warning devices are the field of view of the first traffic camera, and the field of view of the first traffic camera covers a one-way lane of a section of road.

[0081] The detection areas of the third and fourth early warning devices are both in the far-end area of ​​the second traffic camera's field of view.

[0082] In one possible implementation, both motor vehicle and non-motor vehicle / pedestrian sound and light warning posts include a loudspeaker, a display device, and an alarm light.

[0083] In one possible implementation, the first target warning device can be specifically configured as follows: a first traffic camera detects a first target object in the field-of-view image data of the first target detection area; if the confidence level of the first target object is greater than a first preset threshold, the first target object is determined to be a motor vehicle, and the first target object is continuously tracked; if the first traffic camera detects the first target object in at least three consecutive image frames of the field-of-view image data of the first target detection area, the first target object is determined to have moving behavior in the first target detection area; the first traffic camera sends a first switching signal to the motor vehicle audible and visual warning column with a fixed physical connection to the first traffic camera, triggering the motor vehicle audible and visual warning column with a fixed physical connection to the first traffic camera to send a linkage signal to the second target warning device through serial communication.

[0084] In one possible implementation, the second target warning device can be specifically configured as follows: the second traffic camera detects a second target object in the field-of-view image data of the second target detection area. If the confidence level of the second target object is greater than a second preset threshold, the second target object is determined to be a non-motorized vehicle or a pedestrian. The second target object is continuously tracked. If the second traffic camera detects the second target object in at least three consecutive image frames of the field-of-view image data of the second target detection area and the angle between the movement direction of the second target object and the reference line is not greater than a preset angle, the second target object is determined to have movement behavior in the second target detection area. The second traffic camera sends a second switching signal to the non-motorized vehicle sound and light warning column with a fixed physical connection to the second traffic camera, triggering the non-motorized vehicle and pedestrian sound and light warning column with a fixed physical connection to the second traffic camera to send a linkage signal to the first target warning device through serial communication. The reference line is the virtual center line of the detection area of ​​the second target warning device.

[0085] In one possible implementation, the traffic warning system may also include:

[0086] The first target warning device can also be configured as follows: if the first traffic camera detects that the first target object is a motor vehicle in the first target detection area and determines that the first target object has moving behavior in the first target detection area, then a third switching signal is sent to the motor vehicle sound and light warning column that has a fixed physical connection with the first traffic camera, so that the first target warning device prompts the motor vehicle to pay attention to the road conditions ahead.

[0087] The second target warning device can also be configured such that: if the second traffic camera detects that the second target object is a non-motorized vehicle or a pedestrian in the second target detection area, and determines that the second target object has moving behavior in the second target detection area, then a fourth switching signal is sent to the non-motorized vehicle and pedestrian sound and light warning column that has a fixed physical connection with the second traffic camera, so that the second target warning device prompts the non-motorized vehicle or pedestrian to pay attention to road safety.

[0088] In one possible implementation, the traffic warning system also includes:

[0089] The first target warning device can also be configured such that if the motor vehicle audible and visual warning column receives both the third switch signal and the linkage signal at the same time, the linkage signal will be responded to first.

[0090] The second target warning device can also be configured such that if the non-motorized vehicle and pedestrian sound and light warning column receives both the fourth switch signal and the linkage signal at the same time, the linkage signal will be responded to first.

[0091] This application also provides an electronic device in its embodiments. (See reference...) Figure 6The diagram illustrates a structural schematic suitable for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0092] like Figure 6 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. When the electronic device is powered on, the RAM 603 also stores various programs and data required for the operation of the electronic device. The processing unit 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0093] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, memory cards, hard drives, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0094] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the traffic warning methods provided in this application.

[0095] This application also provides a computer-readable storage medium carrying one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the traffic warning methods provided in this application.

[0096] It should also be noted that the system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the system embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0097] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0098] In the above embodiments, the implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, in the form of a computer program product.

[0099] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

[0100] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0101] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0102] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A traffic early warning method, characterized in that, The system is applied to a traffic warning system, which includes a first warning device, a second warning device, a third warning device, and a fourth warning device. The first and third warning devices are installed on one side of a road segment, and the second and fourth warning devices are installed on the other side of the same road segment. Vehicles traveling in the prescribed direction of travel along the road within the first detection area of ​​the first warning device pass sequentially through the first and third warning devices. Similarly, vehicles traveling in the prescribed direction of travel along the road within the second detection area of ​​the second warning device pass sequentially through the second and fourth warning devices. The prescribed driving direction of motor vehicles on the road in the first detection area is opposite to that in the road in the second detection area; the third detection area of ​​the third warning device and the fourth detection area of ​​the fourth warning device have overlapping areas and the third detection area and the fourth detection area together cover a cross-section of the road, which is the passage area for non-motorized vehicles or pedestrians when crossing the road; The traffic early warning method includes: The first target warning device monitors the first target detection area. If the first target warning device detects that the first target object is a motor vehicle in the first target detection area, it continuously tracks the first target object. When it is determined that the first target object has moving behavior in the first target detection area, it sends a linkage signal to the second target warning device so that the second target warning device can issue a warning. The second target warning device monitors the second target detection area. If the second target warning device detects that the second target object is a non-motorized vehicle or a pedestrian in the second target detection area, it will continuously track the second target object. When it is determined that the second target object has moving behavior in the second target detection area, it will send a linkage signal to the first target warning device so that the first target warning device can issue a warning. Wherein, the first target warning device is at least one of the first warning device and the second warning device, the second target warning device is at least one of the third warning device and the fourth warning device, the first target detection area is at least one of the first detection area and the second detection area, and the second target detection area is at least one of the third detection area and the fourth detection area.

2. The traffic early warning method according to claim 1, characterized in that, The first or second warning device includes a first traffic camera and a vehicle audible and visual warning post. The first traffic camera and the vehicle audible and visual warning post of the first warning device are physically connected. Similarly, the first traffic camera and the vehicle audible and visual warning post of the second warning device are physically connected. The third or fourth warning device includes a second traffic camera and a non-motorized vehicle / pedestrian audible and visual warning post. The second traffic camera and the non-motorized vehicle / pedestrian audible and visual warning post of the third and fourth warning devices are physically connected. The detection areas of both the first and second warning devices are the field of view of the first traffic camera, and the field of view of the first traffic camera covers the one-way lane of the road section. The detection areas of both the third and fourth early warning devices are the far-end areas within the field of view of the second traffic camera.

3. The traffic early warning method according to claim 2, characterized in that, Both the motor vehicle sound and light warning post and the non-motor vehicle and pedestrian sound and light warning post include a loudspeaker, a display device, and an alarm light.

4. The traffic early warning method according to claim 2, characterized in that, The first target warning device monitors the first target detection area. If the first target warning device detects a motor vehicle as the first target object in the first target detection area, it continuously tracks the first target object. When it determines that the first target object is moving within the first target detection area, it sends a linkage signal to the second target warning device, including: The first traffic camera detects a first target object in the field-of-view image data of the first target detection area. If the confidence level of the first target object is greater than a first preset threshold, the first target object is determined to be a motor vehicle. If the first traffic camera detects the first target object in at least three consecutive image frames of the field-of-view image data in the first target detection area, it is determined that the first target object has moving behavior in the first target detection area. The first traffic camera sends a first switching signal to the vehicle sound and light warning post that has a fixed physical connection with the first traffic camera, triggering the vehicle sound and light warning post that has a fixed physical connection with the first traffic camera to send a linkage signal to the second target warning device through serial communication.

5. The traffic early warning method according to claim 2, characterized in that, The second target warning device monitors the second target detection area. If the second target warning device detects a non-motorized vehicle or pedestrian in the second target detection area, it continuously tracks the second target object. When it determines that the second target object is moving in the second target detection area, it sends a linkage signal to the first target warning device, including: The second traffic camera detects a second target object in the field of view image data of the second target detection area. If the confidence level of the second target object is greater than the second preset threshold, the second target object is determined to be a non-motorized vehicle or a pedestrian. If the second traffic camera detects the second target object in at least three consecutive image frames of the field of view image data of the second target detection area and the angle between the movement direction of the second target object and the reference line is not greater than a preset angle, then it is determined that the second target object has movement behavior in the second target detection area. The second traffic camera sends a second switching signal to the non-motorized vehicle sound and light warning post that has a fixed physical connection with the second traffic camera, triggering the non-motorized vehicle and pedestrian sound and light warning post that has a fixed physical connection with the second traffic camera to send a linkage signal to the first target warning device through serial communication. The reference line is the virtual center line of the detection area of ​​the second target warning device.

6. The traffic early warning method according to claim 2, characterized in that, Also includes: If the first traffic camera detects a motor vehicle as the first target object in the first target detection area and determines that the first target object is moving in the first target detection area, a third switching signal is sent to the motor vehicle sound and light warning column that has a fixed physical connection with the first traffic camera, so that the first target warning device prompts the motor vehicle to pay attention to the road conditions ahead. If the second traffic camera detects a non-motorized vehicle or pedestrian as a second target object in the second target detection area, and determines that the second target object is moving in the second target detection area, then a fourth switching signal is sent to the non-motorized vehicle and pedestrian sound and light warning post that has a fixed physical connection with the second traffic camera, so that the second target warning device prompts the non-motorized vehicle or pedestrian to pay attention to road safety.

7. The traffic early warning method according to claim 6, characterized in that, Also includes: If the vehicle audible and visual warning column receives both the third switch signal and the linkage signal simultaneously, the linkage signal shall be responded to first. If the non-motorized vehicle and pedestrian sound and light warning post receives both the fourth switch signal and the linkage signal at the same time, it shall respond to the linkage signal first.

8. A traffic early warning system, characterized in that, The traffic warning system includes a first warning device, a second warning device, a third warning device, and a fourth warning device. The first and third warning devices are installed on one side of a section of road, and the second and fourth warning devices are installed on the other side of the section of road. Vehicles traveling in the prescribed direction of travel along the road within the first detection area of ​​the first warning device pass sequentially through the first and third warning devices. Similarly, vehicles traveling in the prescribed direction of travel along the road within the second detection area of ​​the second warning device pass sequentially through the second and fourth warning devices. The prescribed driving direction of motor vehicles on the road in the first detection area is opposite to that in the road in the second detection area; the third detection area of ​​the third warning device and the fourth detection area of ​​the fourth warning device have overlapping areas and the third detection area and the fourth detection area together cover a cross-section of the road, which is the passage area for non-motorized vehicles or pedestrians when crossing the road; The first target warning device is configured to monitor the first target detection area. If the first target warning device detects that the first target object is a motor vehicle in the first target detection area, it will continuously track the first target object. When it is determined that the first target object has moving behavior in the first target detection area, it will send a linkage signal to the second target warning device so that the second target warning device can issue a warning. The second target warning device is configured to monitor the second target detection area. If the second target warning device detects that the second target object is a non-motorized vehicle or a pedestrian in the second target detection area, it will continuously track the second target object. When it is determined that the second target object has moving behavior in the second target detection area, it will send a linkage signal to the first target warning device so that the first target warning device can issue a warning. Wherein, the first target warning device is at least one of the first warning device and the second warning device, the second target warning device is at least one of the third warning device and the fourth warning device, the first target detection area is at least one of the first detection area and the second detection area, and the second target detection area is at least one of the third detection area and the fourth detection area.

9. An electronic device, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program to enable the electronic device to implement the traffic warning method as described in any one of claims 1 to 7.

10. A computer program product, characterized in that, It includes computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the traffic warning method as described in any one of claims 1 to 7.