Traffic light control method and device, electronic equipment and storage medium

CN117238150BActive Publication Date: 2026-08-18LEAYUN TECH CO LTD OF ZHUHAI +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311208493.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-18
Publication Date
2026-08-18
Estimated Expiration
2043-09-18

AI Technical Summary

Technical Problem

[0004]本发明实施例是提供一种交通指示灯的控制方法、装置、电子设备以及计算机可读存储介质,以解决或部分解决道路拥挤导致用户通行时间长、成本高的问题

Benefits of technology

[0090] In this embodiment of the invention, intersection data corresponding to traffic intersections is acquired. This data includes the current number of vehicles and the current waiting time for each lane in the intersection. Then, based on the current number of vehicles and the current waiting time, the traffic intersection is congested, resulting in lane congestion and intersection congestion. Lane congestion characterizes the degree of vehicle congestion in a single lane, while intersection congestion characterizes the degree of vehicle congestion at the intersection. The traffic lights at the intersection are then controlled based on the lane and intersection congestion. By collecting intersection data in real time, the actual traffic conditions at the intersection are determined, and the intersection congestion is calculated. The traffic lights are then controlled based on the congestion, achieving dynamic adjustment of the traffic lights, optimizing traffic flow, improving the capacity of the intersection, reducing traffic congestion, increasing overall traffic efficiency, and effectively reducing users' travel time and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117238150B_ABST
    Figure CN117238150B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a traffic light control method and device, electronic equipment and storage medium, and relate to the technical field of traffic data processing. The method comprises: acquiring intersection data corresponding to a traffic intersection, wherein the intersection data comprises a current vehicle number and a current waiting time corresponding to each lane in the traffic intersection; judging congestion of the traffic intersection according to the current vehicle number and the current waiting time, obtaining a lane congestion degree corresponding to each lane and an intersection congestion degree corresponding to the traffic intersection, wherein the lane congestion degree is used to represent the vehicle congestion degree of a single lane, and the intersection congestion degree is used to represent the vehicle congestion degree of the traffic intersection; and controlling traffic lights of the traffic intersection according to the lane congestion degree and the intersection congestion degree.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of traffic data processing technology, and in particular to a method for controlling traffic lights, a device for controlling traffic lights, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With rapid economic development, the number of cars is increasing, leading to greater traffic pressure, especially during rush hour in large cities. At some important intersections, vehicles often intersect horizontally and vertically, causing prolonged congestion. At the same time, vehicles consume more fuel when traveling at low speeds, resulting in increased fuel costs and an economic burden on people. Furthermore, exhaust fumes pollute the air, and traffic congestion has a serious impact on cities, causing economic losses.

[0003] While video surveillance equipment has been installed on roads across various regions to obtain traffic information, the actual traffic conditions are still largely determined by human visual observation and analysis. To ensure real-time data collection, video surveillance employs 24 / 7 video recording to monitor road congestion and, in cases of congestion, allows traffic police to direct traffic on-site to alleviate the problem. However, over-reliance on manual guidance not only fails to effectively solve the congestion problem but also increases labor costs. Summary of the Invention

[0004] This invention provides a method, device, electronic device, and computer-readable storage medium for controlling traffic lights, in order to solve or partially solve the problems of long travel times and high costs for users caused by road congestion.

[0005] This invention discloses a method for controlling traffic lights, comprising:

[0006] Obtain intersection data corresponding to the traffic intersection, the intersection data including the current number of vehicles and the current waiting time for each lane in the traffic intersection;

[0007] Based on the current number of vehicles and the current waiting time, the traffic intersection is congested to determine the lane congestion level for each lane and the intersection congestion level for the traffic intersection. The lane congestion level is used to characterize the degree of vehicle congestion in a single lane, and the intersection congestion level is used to characterize the degree of vehicle congestion at the traffic intersection.

[0008] The traffic lights at the intersection are controlled based on the lane congestion level and the intersection congestion level.

[0009] Optionally, the step of determining congestion at the traffic intersection based on the current number of vehicles and the current waiting time, and obtaining the lane congestion level for each lane and the intersection congestion level, includes:

[0010] Based on the current number of vehicles and the current waiting time, the coordinates of the lanes are processed to obtain the lane coordinates corresponding to each lane.

[0011] The lane congestion level is obtained by determining the lane congestion level based on the lane coordinates.

[0012] The traffic intersection is congested based on the lane congestion level to obtain the intersection congestion level.

[0013] Optionally, the step of processing the lane coordinates based on the current number of vehicles and the current waiting time to obtain the lane coordinates corresponding to each lane includes:

[0014] Divide the current waiting time into several time periods;

[0015] The lanes are marked according to their respective traffic patterns to obtain lane markings and traffic markings corresponding to each lane.

[0016] Based on the corresponding number of each time period, the lane identifier, and the traffic indicator, the lane coordinates corresponding to the lane are constructed.

[0017] Optionally, constructing the lane coordinates corresponding to the lane based on the number corresponding to each time period, the lane identifier, and the traffic sign includes:

[0018] Use the number corresponding to the time period as the horizontal axis;

[0019] Based on the lane markings, the traffic markings, and the current number of vehicles in the lane during the time period, the vertical coordinate corresponding to the lane is generated.

[0020] Optionally, the lane includes at least a straight-ahead lane and a turning lane, and the lane coordinates include a first lane coordinate corresponding to the straight-ahead lane and a second lane coordinate corresponding to the turning lane. The step of determining the lane congestion level based on the lane coordinates includes:

[0021] The congestion level of the straight lane in the nth time period is calculated using the coordinates of the first lane.

[0022] The congestion level of the turning lane in the nth time period is calculated using the second lane coordinates.

[0023] Optionally, the step of determining the congestion level of the traffic intersection based on the lane congestion level to obtain the intersection congestion level includes:

[0024] If the lane congestion level is greater than 0, then the congestion level of the straight lane and the congestion level of the turning lane corresponding to each lane are used to determine the congestion of the traffic intersection, and the congestion level of several intersections corresponding to the traffic intersection is obtained.

[0025] Optionally, the lanes include at least a first lane and a second lane traveling in the opposite direction to the first lane. The step of using the congestion levels of the straight-ahead lanes and turning lanes corresponding to each of the lanes to determine the congestion at the traffic intersection, and obtaining the congestion levels of several intersections corresponding to the traffic intersection, includes:

[0026] The congestion level of the first straight lane and the first turning lane of the first lane are used to calculate the congestion level of the first turning intersection corresponding to the first lane;

[0027] Using the congestion levels of the second straight lane and the second turning lane of the second lane, the congestion level of the second turning intersection corresponding to the second lane is calculated;

[0028] Using the first straight-ahead lane congestion level of the first lane and the second straight-ahead lane congestion level of the second lane, calculate the first straight-ahead intersection congestion level corresponding to the first lane and the second straight-ahead intersection congestion level corresponding to the second lane.

[0029] Optionally, controlling the traffic lights at the intersection based on the lane congestion level and the intersection congestion level includes:

[0030] If the lane congestion level is less than or equal to 0, the traffic lights at the intersection will be controlled to perform traffic control at the intersection according to the default mode.

[0031] If the lane congestion level is greater than 0, the traffic lights are controlled to give either a straight-ahead instruction or a turning instruction based on the first turning intersection congestion level, the second turning intersection congestion level, the first straight-ahead intersection congestion level, and the second straight-ahead intersection congestion level, so as to implement traffic control at the intersection.

[0032] Optionally, controlling the traffic lights to give either a straight-ahead or turning instruction based on the congestion levels of the first turning intersection, the second turning intersection, the first straight-ahead intersection, and the second straight-ahead intersection to implement traffic control at the intersection includes:

[0033] If the first sum of the congestion levels at the first turning intersection and the first straight intersection is greater than or equal to the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator is controlled to perform a straight-ahead instruction for the first lane and the second lane, or the traffic indicator is controlled to perform a turning instruction for the first lane and the second lane.

[0034] If the first sum of the congestion levels at the first turning intersection and the first straight intersection is less than the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator light is controlled to perform straight-ahead and turning instructions for the first lane, or the traffic indicator light is controlled to perform straight-ahead and turning instructions for the second lane.

[0035] Optional, also includes:

[0036] If at least one of the congestion levels at a turning intersection or a straight-ahead intersection is greater than or equal to a preset threshold, a traffic alert message is sent to the traffic system, indicating that the intersection is experiencing traffic congestion.

[0037] Optional, also includes:

[0038] Get the last waiting time and the number of historical vehicles corresponding to the last waiting time;

[0039] The quantity change information corresponding to the lane is calculated using the historical vehicle count and the current vehicle count;

[0040] If the quantity change information indicates that the number of vehicles in the lane is continuously increasing, then the traffic adjustment time for the traffic light is calculated using the historical vehicle count and the current vehicle count.

[0041] The duration of the traffic indicator light is adjusted using the aforementioned traffic adjustment time.

[0042] The duration of the traffic indication includes the duration of the straight-ahead traffic indication and the duration of the turning traffic indication.

[0043] Optional, also includes:

[0044] If the traffic adjustment time reaches the preset upper limit, a traffic alert message is sent to the traffic system, indicating that the traffic intersection is experiencing traffic congestion.

[0045] This invention also discloses a control device for traffic lights, comprising:

[0046] The data acquisition module is used to acquire intersection data corresponding to the traffic intersection, including the current number of vehicles and the current waiting time for each lane in the traffic intersection.

[0047] The congestion detection module is used to determine the congestion of the traffic intersection based on the current number of vehicles and the current waiting time, and to obtain the lane congestion level corresponding to each lane and the intersection congestion level corresponding to the traffic intersection. The lane congestion level is used to characterize the degree of vehicle congestion in a single lane, and the intersection congestion level is used to characterize the degree of vehicle congestion at the traffic intersection.

[0048] The control module is used to control the traffic lights at the intersection based on the lane congestion level and the intersection congestion level.

[0049] Optionally, the congestion detection module is specifically used for:

[0050] Based on the current number of vehicles and the current waiting time, the coordinates of the lanes are processed to obtain the lane coordinates corresponding to each lane.

[0051] The lane congestion level is obtained by determining the lane congestion level based on the lane coordinates.

[0052] The traffic intersection is congested based on the lane congestion level to obtain the intersection congestion level.

[0053] Optionally, the congestion detection module is specifically used for:

[0054] Divide the current waiting time into several time periods;

[0055] The lanes are marked according to their respective traffic patterns to obtain lane markings and traffic markings corresponding to each lane.

[0056] Based on the corresponding number of each time period, the lane identifier, and the traffic indicator, the lane coordinates corresponding to the lane are constructed.

[0057] Optionally, the congestion detection module is specifically used for:

[0058] Use the number corresponding to the time period as the horizontal axis;

[0059] Based on the lane markings, the traffic markings, and the current number of vehicles in the lane during the time period, the vertical coordinate corresponding to the lane is generated.

[0060] Optionally, the lane includes at least a straight-ahead lane and a turning lane, and the lane coordinates include first lane coordinates corresponding to the straight-ahead lane and second lane coordinates corresponding to the turning lane. The congestion detection module is specifically used for:

[0061] The congestion level of the straight lane in the nth time period is calculated using the coordinates of the first lane.

[0062] The congestion level of the turning lane in the nth time period is calculated using the second lane coordinates.

[0063] Optionally, the step of determining the congestion level of the traffic intersection based on the lane congestion level to obtain the intersection congestion level includes:

[0064] If the lane congestion level is greater than 0, then the congestion level of the straight lane and the congestion level of the turning lane corresponding to each lane are used to determine the congestion of the traffic intersection, and the congestion level of several intersections corresponding to the traffic intersection is obtained.

[0065] Optionally, the lane includes at least a first lane and a second lane traveling in the opposite direction to the first lane, and the congestion detection module is specifically used for:

[0066] The congestion level of the first straight lane and the first turning lane of the first lane are used to calculate the congestion level of the first turning intersection corresponding to the first lane;

[0067] Using the congestion levels of the second straight lane and the second turning lane of the second lane, the congestion level of the second turning intersection corresponding to the second lane is calculated;

[0068] Using the first straight-ahead lane congestion level of the first lane and the second straight-ahead lane congestion level of the second lane, calculate the first straight-ahead intersection congestion level corresponding to the first lane and the second straight-ahead intersection congestion level corresponding to the second lane.

[0069] Optionally, the control module is specifically used for:

[0070] If the lane congestion level is less than or equal to 0, the traffic lights at the intersection will be controlled to perform traffic control at the intersection according to the default mode.

[0071] If the lane congestion level is greater than 0, the traffic lights are controlled to give either a straight-ahead instruction or a turning instruction based on the first turning intersection congestion level, the second turning intersection congestion level, the first straight-ahead intersection congestion level, and the second straight-ahead intersection congestion level, so as to implement traffic control at the intersection.

[0072] Optionally, the control module is specifically used for:

[0073] If the first sum of the congestion levels at the first turning intersection and the first straight intersection is greater than or equal to the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator is controlled to perform a straight-ahead instruction for the first lane and the second lane, or the traffic indicator is controlled to perform a turning instruction for the first lane and the second lane.

[0074] If the first sum of the congestion levels at the first turning intersection and the first straight intersection is less than the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator light is controlled to perform straight-ahead and turning instructions for the first lane, or the traffic indicator light is controlled to perform straight-ahead and turning instructions for the second lane.

[0075] Optional, also includes:

[0076] The prompting module is used to send traffic prompt information to the traffic system if at least one of the congestion levels at a turning intersection or a straight-ahead intersection is greater than or equal to a preset threshold. The traffic prompt information is a message indicating that the traffic intersection is experiencing traffic congestion.

[0077] Optional, also includes:

[0078] The quantity acquisition module is used to acquire the previous waiting time and the historical number of vehicles corresponding to the previous waiting time.

[0079] The change information calculation module is used to calculate the quantity change information corresponding to the lane using the historical vehicle count and the current vehicle count;

[0080] The calculation module is used to calculate the traffic adjustment time for the traffic light by using the historical number of vehicles and the current number of vehicles if the quantity change information indicates that the number of vehicles in the lane continues to increase.

[0081] An adjustment module is used to adjust the traffic indicator duration of the traffic light using the traffic adjustment time.

[0082] The duration of the traffic indication includes the duration of the straight-ahead traffic indication and the duration of the turning traffic indication.

[0083] Optional, also includes:

[0084] The detection module is used to send traffic alert information to the traffic system if the traffic adjustment time reaches a preset upper limit value. The traffic alert information is a message indicating that the traffic intersection is experiencing traffic congestion.

[0085] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

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

[0087] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.

[0088] This invention also discloses a computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.

[0089] The embodiments of the present invention have the following advantages:

[0090] In this embodiment of the invention, intersection data corresponding to traffic intersections is acquired. This data includes the current number of vehicles and the current waiting time for each lane in the intersection. Then, based on the current number of vehicles and the current waiting time, the traffic intersection is congested, resulting in lane congestion and intersection congestion. Lane congestion characterizes the degree of vehicle congestion in a single lane, while intersection congestion characterizes the degree of vehicle congestion at the intersection. The traffic lights at the intersection are then controlled based on the lane and intersection congestion. By collecting intersection data in real time, the actual traffic conditions at the intersection are determined, and the intersection congestion is calculated. The traffic lights are then controlled based on the congestion, achieving dynamic adjustment of the traffic lights, optimizing traffic flow, improving the capacity of the intersection, reducing traffic congestion, increasing overall traffic efficiency, and effectively reducing users' travel time and costs. Attached Figure Description

[0091] Figure 1 This is a flowchart illustrating the steps of a traffic light control method provided in an embodiment of the present invention;

[0092] Figure 2 This is a schematic diagram of a traffic intersection provided in an embodiment of the present invention;

[0093] Figure 3 This is a schematic diagram of a traffic intersection provided in an embodiment of the present invention;

[0094] Figure 4 This is a control flowchart of a traffic light provided in an embodiment of the present invention;

[0095] Figure 5 This is a control flowchart of a traffic light provided in an embodiment of the present invention;

[0096] Figure 6 This is a structural block diagram of a traffic light control device provided in an embodiment of the present invention;

[0097] Figure 7 This is a block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0098] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0099] As an example, with the increase in vehicles, urban traffic pressure is increasing, especially during rush hour. At some intersections with high traffic volume, cross-traffic vehicles often intersect, causing long-term traffic congestion.

[0100] In this invention, intersection data is acquired, including the current number of vehicles and waiting time for each lane. Congestion is then assessed based on these data, yielding lane congestion and intersection congestion levels. Lane congestion represents the degree of traffic congestion in a single lane, while intersection congestion represents the degree of traffic congestion at the intersection. Traffic lights at the intersection are then controlled based on these levels. By collecting intersection data in real time, the actual traffic conditions at the intersection are determined, and the congestion level is calculated. Dynamic adjustment of traffic lights is achieved, optimizing traffic flow, improving intersection capacity, reducing traffic congestion, increasing overall traffic efficiency, and effectively lowering travel time and costs for users.

[0101] It should be noted that the embodiments of the present invention can be applied to a traffic light management system (hereinafter referred to as the system). Under the condition of complying with relevant laws, the system can flexibly adjust the indication duration of traffic lights according to real-time traffic flow and other data to alleviate traffic pressure at traffic intersections.

[0102] Reference Figure 1 The diagram illustrates a flowchart of a traffic light control method provided in an embodiment of the present invention, which may specifically include the following steps:

[0103] Step 101: Obtain the intersection data corresponding to the traffic intersection, wherein the intersection data includes the current number of vehicles and the current waiting time for each lane in the traffic intersection;

[0104] A traffic intersection is an intersection equipped with traffic lights (i.e., red and green lights). Traffic intersections often involve multiple lanes. For example, a crossroads includes two pairs of lanes traveling in opposite directions, such as lanes for eastbound travel, lanes for westbound travel, lanes for southbound travel, and lanes for northbound travel. Each lane can be divided into straight lanes, turning lanes, etc., depending on the mode of travel. Turning lanes can include left-turn lanes and right-turn lanes.

[0105] In this embodiment of the invention, for a given traffic intersection, the system can acquire its corresponding intersection data, including the current number of vehicles waiting at the traffic light in each lane corresponding to the traffic light and the current waiting time. The current number of vehicles can be the number of vehicles within the corresponding detection range during the current waiting period (i.e., the traffic light alternation period); the current waiting time can be the duration of the traffic light alternation, i.e., the time it takes for the red light to switch to the green light, and this invention does not impose any limitations on this.

[0106] The determination of the detection range can be flexibly based on the traffic monitoring equipment used and the corresponding traffic management projects. For example, at an intersection, the detection starting point can be set at the stop line or the intersection entrance, and the detection endpoint can be determined based on the actual situation, generally choosing a location that is appropriately close to the intersection. The detection range needs to include all areas where vehicles waiting to move can be detected by the equipment, such as vehicles waiting near the intersection, but it should also avoid covering irrelevant vehicles or areas. For vehicles in lanes between two traffic lights, it is necessary to determine whether monitoring is necessary based on the actual conditions of the road signs and road conditions in that section. If there are speed limit signs, traffic junctions, safety facilities, etc. on the road, monitoring can be considered at these points to obtain more accurate data. In addition, traffic monitoring equipment located on the road can automatically monitor the number of vehicles and the waiting time at traffic lights; statistics are automatically triggered whenever a vehicle passes through the corresponding monitoring point. For example, by setting up appropriate equipment (such as traffic cameras, geomagnetic sensors, etc.) at monitoring points at intersections, the equipment will automatically record the number of vehicles and their dwell time when a vehicle passes by, so as to carry out subsequent data analysis and processing. This will allow the detection range to be determined, and the intersection data can be obtained through the corresponding monitoring equipment, so as to dynamically adjust the traffic lights at the intersection based on the intersection data.

[0107] Step 102: Based on the current number of vehicles and the current waiting time, determine the congestion of the traffic intersection to obtain the lane congestion level for each lane and the intersection congestion level for the traffic intersection. The lane congestion level is used to characterize the degree of vehicle congestion in a single lane, and the intersection congestion level is used to characterize the degree of vehicle congestion at the traffic intersection.

[0108] In this embodiment of the invention, the road congestion level can include lane congestion level and intersection congestion level. Lane congestion level can be used to characterize the degree of vehicle congestion in a single lane, such as the degree of vehicle congestion in a straight lane or a turning lane. Intersection congestion level can be used to characterize the degree of vehicle congestion at a traffic intersection. Since traffic intersections often involve multiple lanes, the degree of vehicle congestion at a traffic intersection can be characterized by at least two intersection congestion levels to more accurately characterize the real-time traffic conditions at the traffic intersection.

[0109] In some feasible implementations, the system can process the coordinates of lanes based on the current number of vehicles and the current waiting time to obtain the lane coordinates corresponding to each lane. Then, based on the lane coordinates, the system can determine the congestion level of each lane and the congestion level of the intersection based on the lane congestion level. Thus, based on the real-time data of the intersection, the system can calculate the congestion level of the lanes and intersections. This allows for a direct assessment of the actual traffic conditions on the road and enables the system to dynamically adjust traffic lights based on the actual traffic conditions to optimize traffic flow.

[0110] In practical implementation, the current waiting time can be divided into several time periods, and marked according to the traffic flow of each lane. This yields the lane identifier and traffic flow indicator for each lane. Then, based on the time period number, lane identifier, and traffic flow indicator, the lane coordinates are constructed. Specifically, the time period number is used as the horizontal axis, and the vertical axis is generated based on the lane identifier, traffic flow indicator, and the current number of vehicles in the lane within that time period.

[0111] In one example, for one lane, the system can record the waiting time T for that lane to change from red to green. d Then T d Divide into 6 equal parts, and then divide 0-1 / 6T d The vehicle is used as the first ordinate of the current driving lane; 0-2 / 6T d The total number of vehicles is used as the second longitudinal coordinate of the current driving lane; 0-3 / 6T d The total number of vehicles is used as the third longitudinal coordinate of the current driving lane; 0-4 / 6T d The total number of vehicles is used as the fourth longitudinal coordinate of the current driving lane; 0-5 / 6T d The total number of vehicles is used as the 5th vertical coordinate of the current driving lane; 0-T d The total number of vehicles is used as the 6th vertical coordinate of the current driving lane. Simultaneously, 1, 2, 3, 4, 5, and 6 are used as the corresponding horizontal coordinates, denoted by y. uvw As the corresponding vertical axis, u = 1, 2, 3, 4 represent intersection numbers; v = 1, 2 represent driving modes; w represents 0-t / 6T.d The total number of vehicles is (t = 1, 2, 3, 4, 5, 6). For example, if the straight-ahead traffic at intersection number 1 forms 6 coordinates, (1, y...). 111 ),(2,y 112 ),(3,y 113 ),(4,y 114 ),(5,y 115 ),(6,y 116 The six coordinates formed by the left turn at intersection number 1 are (1, y). 121 ),(2,y 122 ),(3,y 123 ),(4,y 124 ),(5,y 125 ),(6,y 126 ).

[0112] It should be noted that for the intersection numbering, two intersections with opposite traffic flow can be randomly selected and numbered 1 and 2, and another two intersections with opposite traffic flow can be numbered 3 and 4, to distinguish the intersections corresponding to different lanes; in addition, straight ahead can be numbered 1 and left turn can be numbered 2, to distinguish lanes with different modes of transportation. Thus, the coordinates formed by straight ahead and left turn at intersections numbered 2, 3, and 4 are as follows:

[0113] (1,y 211 ),(2,y 212 ),(3,y 213 ),(4,y 214 ),(5,y 215 ),(6,y 216 )

[0114] (1,y 221 ),(2,y 222 ),(3,y 223 ),(4,y 224 ),(5,y 225 ),(6,y 226 )

[0115] (1,y 311 ),(2,y 312 ),(3,y 313 ),(4,y 314 ),(5,y 315 ),(6,y 316 )

[0116] (1,y 321 ),(2,y 322 ),(3,y 323 ),(4,y 324 ),(5,y 325),(6,y 326 )

[0117] (1,y 411 ),(2,y 412 ),(3,y 413 ),(4,y 414 ),(5,y 415 ),(6,y 416 )

[0118] (1,y 421 ),(2,y 422 ),(3,y 423 ),(4,y 424 ),(5,y 425 ),(6,y 426 )

[0119] It should be noted that, in this embodiment of the invention, a left turn is used as an example for illustrative purposes. It can be understood that an intersection may involve either going straight and turning left, or going straight and turning right. Therefore, the process of turning right can refer to the process of turning left, and the present invention does not limit this.

[0120] In some feasible implementations, lane congestion can be calculated separately for lanes with different driving modes within each lane. Lane coordinates include the first lane coordinates corresponding to the straight-ahead lane and the second lane coordinates corresponding to the turning lane. The first lane coordinates are used to calculate the straight-ahead lane congestion in the nth time period, and the second lane coordinates are used to calculate the turning lane congestion in the nth time period. The straight-ahead lane congestion can be used to determine the number of vehicles in the corresponding lane, and the turning lane congestion can be used to determine the number of vehicles in the corresponding lane's turning lane. There is a positive correlation between lane congestion and the number of vehicles; the higher the lane congestion, the more vehicles are waiting in the lane; the lower the lane congestion, the fewer vehicles are waiting in the lane. This allows for corresponding control of traffic lights based on different lane congestion levels. By calculating lane congestion based on real-time data at the traffic intersection, the actual road conditions can be intuitively determined, and the system can dynamically adjust traffic lights according to the actual traffic conditions to optimize traffic flow.

[0121] In one example, lane congestion can be calculated using the following formula:

[0122]

[0123]

[0124]

[0125] Where u = 1, 2, 3, 4, etc., is used to represent the intersection number; v = 1, 2, etc., is used to represent the driving mode (1 for going straight, 2 for turning left), such as the driving slope parameter directly ahead of intersection number 1 being b. 11 The left turn slope parameter is b. 12 Therefore, the slope parameter b corresponding to the straight lane and the turning lane can be calculated using this formula. uv This is so that once the slope parameters are obtained, the corresponding processing can be performed.

[0126] Furthermore, if the corresponding slope parameter b is less than or equal to 0, it means that there are fewer vehicles waiting in the lane, and the traffic lights do not need to be processed. The traffic lights are controlled according to the default mode to control traffic at the intersection. If the lane congestion is greater than 0, the congestion of the straight lane and the congestion of the turning lane corresponding to each lane are used to judge the congestion of the intersection and obtain the congestion of several intersections corresponding to the intersection.

[0127] In the aforementioned embodiments, the lanes are numbered, and each numbered lane includes at least a first lane and a second lane traveling in the opposite direction to the first lane. For the congestion level of an intersection corresponding to a pair of opposing lanes, the congestion level can be calculated using the congestion levels of the first straight-ahead lane and the first turning lane of the first lane. Similarly, the congestion level can be calculated using the congestion levels of the second straight-ahead lane and the second turning lane of the second lane. Furthermore, the congestion level can be calculated using the congestion levels of the first straight-ahead lane of the first lane and the second straight-ahead lane of the second lane. This allows for the calculation of intersection congestion based on real-time traffic data. This provides a clear understanding of the actual road conditions and facilitates dynamic adjustments to traffic lights based on the actual traffic conditions, thereby optimizing traffic flow.

[0128] In one feasible implementation, when the calculated lane congestion level (i.e., slope parameter) for the corresponding lane is greater than 0, the b of the waiting time for the nth time can be further determined. uvn , n = 1, 2, 3...; represents the nth time, and calculate h1, where h is the intersection congestion level. The degree of vehicle congestion at traffic intersections can be detected by using the congestion levels of multiple intersections.

[0129] Optionally, the nth waiting time refers to the nth cycle in which the vehicle waits at the intersection, or the nth time the traffic light changes. For example, if it is the first second of the green light, and it remains green in the next cycle, then this is considered the first waiting time; if it turns red in the next cycle, then this is the second waiting time; and so on.

[0130] In one example, for a crossroads with four lanes, including both straight and turning lanes, the congestion level of one intersection can be calculated as eight points, including:

[0131]

[0132]

[0133]

[0134]

[0135]

[0136]

[0137]

[0138]

[0139] Among them, b 11i It is the slope parameter of the i-th (i = 1, 2, 3, ..., n)th row numbered 1, b 12i This is the slope parameter for the i-th left turn, numbered 1. Similarly, h2, h3, h4, h5, h6, h7, and h8 are calculated using the same method. Furthermore, h1, h3, h5, and h7 can represent the congestion level of straight-ahead intersections, while h2, h4, h6, and h8 can represent the congestion level of turning intersections.

[0140] After obtaining the lane congestion level and intersection congestion level through the above process, the system can determine whether it is necessary to flexibly adjust the traffic lights based on the two, so as to control traffic at intersections by adjusting the traffic indicator signaling method.

[0141] Step 103: Control the traffic lights at the intersection based on the lane congestion level and the intersection congestion level.

[0142] In practical implementation, if the lane congestion level is less than or equal to 0, the traffic lights at the intersection are controlled to perform traffic control according to the default mode. If the lane congestion level is greater than 0, the traffic lights are controlled to execute straight-ahead or turning instructions based on the congestion levels of the first turning intersection, the second turning intersection, the first straight-ahead intersection, and the second straight-ahead intersection, in order to control the traffic at the intersection. By collecting intersection data in real time, the actual traffic situation at the intersection is determined, and the congestion level of the intersection is calculated based on the intersection data. The traffic lights are then controlled according to the congestion level, realizing dynamic adjustment of traffic lights, optimizing traffic flow, improving the traffic capacity of the intersection, reducing traffic congestion, improving overall traffic efficiency, and effectively reducing users' travel time and costs.

[0143] When the lane congestion level is greater than 0, it indicates that there are too many vehicles in the lane corresponding to the current intersection, and traffic lights need to be adjusted to alleviate traffic congestion. The system can compare the congestion levels of the intersections corresponding to two opposing lanes to determine which traffic instruction method to implement. If the first sum of the congestion levels of the first turning intersection and the first straight intersection is greater than or equal to the second sum of the congestion levels of the second turning intersection and the second straight intersection, it indicates that the number of vehicles in the straight lanes of the two opposing lanes is similar, and the number of vehicles in the turning lanes of the two lanes is also similar. In this case, the system controls the traffic lights to implement straight-ahead instructions for the first and second lanes, or controls the traffic lights to implement turning instructions for the first and second lanes. This alleviates traffic congestion in one lane by opening one of the lanes (straight-ahead or turning). Traffic pressure in one direction can be effectively reduced by allowing two-way traffic. If the first sum of the congestion levels at the first turning intersection and the first straight intersection is less than the second sum of the congestion levels at the second turning intersection and the second straight intersection, it indicates that the number of vehicles in the two opposing lanes is similar, i.e., the number of vehicles corresponding to the two lanes is similar. In this case, the traffic lights are controlled to execute straight-ahead and turning instructions for the first lane, or the traffic lights are controlled to execute straight-ahead and turning instructions for the second lane. This allows straight-ahead and turning vehicles in the corresponding lane of one of the intersections (such as one of intersections 1, 2, 3, and 4) to pass first, thus reducing the traffic pressure in one lane.

[0144] In the above process, once one intersection or lane is opened to traffic, the same method can be used to open the lanes at other intersections in sequence. For example, in the first case, the traffic lights can be controlled in the following order: open the straight lanes of lanes 1 and 2; open the turning lanes of lanes 1 and 2; open the straight lanes of lanes 3 and 4; open the turning lanes of lanes 3 and 4, etc. In the second scenario, traffic lights can be controlled sequentially in the following manner: opening the straight-ahead and turning lanes of lane 1; opening the straight-ahead and turning lanes of lane 2; opening the straight-ahead and turning lanes of lane 3; opening the straight-ahead and turning lanes of lane 4, and so on. By collecting real-time intersection data, the actual traffic conditions at the intersection can be determined, and the congestion level can be calculated based on the intersection data. The traffic lights can then be controlled according to the congestion level, achieving dynamic adjustment of traffic lights, optimizing traffic flow, improving the capacity of the intersection, reducing traffic congestion, improving overall traffic efficiency, and effectively reducing users' travel time and costs.

[0145] It should be noted that, referring to Figure 2 This diagram illustrates a traffic intersection provided in an embodiment of the present invention, using "keep right" driving as an example for illustrative purposes. Traffic instructions and other functions can be controlled according to the examples provided in the foregoing embodiments. (Refer to...) Figure 3 This illustration shows a schematic diagram of a traffic intersection provided in an embodiment of the present invention. Taking "keep left" driving as an example, if the first sum of the congestion levels of the first turning intersection and the first straight intersection is greater than or equal to the second sum of the congestion levels of the second turning intersection and the second straight intersection, it indicates that the number of vehicles in the straight lanes of the two opposing lanes is similar, and the number of vehicles in the turning lanes of the two opposing lanes is also similar. In this case, the two straight lanes and the turning lane can be opened. If the first sum of the congestion levels of the first turning intersection and the first straight intersection is less than the second sum of the congestion levels of the second turning intersection and the second straight intersection, it indicates that the number of vehicles in the straight lanes and the turning lanes of the two opposing lanes is similar, that is, the number of vehicles corresponding to the two lanes is similar. In this case, the two straight lanes and the turning lane can also be opened. By realizing the dynamic adjustment of traffic lights, traffic flow is optimized, the capacity of the traffic intersection is improved, traffic congestion is reduced, overall traffic efficiency is improved, and the travel time and cost for users are effectively reduced.

[0146] In addition, if at least one of the congestion levels at a turning intersection or a straight-ahead intersection is greater than or equal to a preset threshold, a traffic alert will be sent to the traffic system. The traffic alert will indicate that the traffic intersection is experiencing congestion, so that if traffic pressure cannot be alleviated by controlling traffic lights, the traffic system can promptly intervene manually to ease the traffic pressure at the corresponding intersection.

[0147] In addition, the system can obtain the previous waiting time and the historical number of vehicles corresponding to the previous waiting time. It then uses the historical vehicle count and the current vehicle count to calculate the quantity change information for each lane. If the quantity change information indicates a continuous increase in the number of vehicles in the lane, it calculates the traffic indicator adjustment time using the historical vehicle count and the current vehicle count, and then adjusts the traffic indicator's indication duration accordingly. If the quantity change information indicates that the number of vehicles in the lane has not changed significantly or has decreased, then there is no need to adjust the traffic indicator's indication duration. Optionally, if the communication adjustment time reaches a preset upper limit, a traffic alert is sent to the traffic system. This alert indicates traffic congestion at the intersection, allowing for timely manual intervention to alleviate traffic pressure at the corresponding intersection if traffic indicator control fails to relieve the congestion.

[0148] The duration of the traffic indication can be the duration of the corresponding green light, such as the duration of the green light for going straight or the duration of the green light for turning. By increasing the duration of the traffic indication, the traffic pressure on the corresponding lane can be effectively alleviated, thereby reducing traffic congestion and improving overall traffic efficiency.

[0149] In one example, it can be determined that p is the number of waiting times in n iterations. n The growth value of (n = 1, 2, 3, ...), if p n If the number of green lights (n = 1, 2, 3, ...) shows an increasing trend, then the current green light time needs to be increased. The formula for calculating the required increase in time is T. + =log2(p n -p1) Where: p1 is the average number of vehicles in the lane corresponding to the first waiting time in the current count, p n Let T be the average number of vehicles waiting in the corresponding lane during the nth waiting period. For ease of expression, a rounding function is introduced, such as [1.02] = 1, and the value is expressed in seconds. + If the current green light time continues to increase, then an upper limit T needs to be set for the current green light passage time. u They also notified the transportation department that this mode of transportation is currently too congested and requested that the situation be handled promptly.

[0150] It should be noted that the embodiments of the present invention include, but are not limited to, the examples described above. It is understood that those skilled in the art can make further settings according to actual needs under the guidance of the ideas in the embodiments of the present invention, and the present invention does not limit such settings.

[0151] In this embodiment of the invention, intersection data corresponding to traffic intersections is acquired. This data includes the current number of vehicles and the current waiting time for each lane in the intersection. Then, based on the current number of vehicles and the current waiting time, the traffic intersection is congested, resulting in lane congestion and intersection congestion. Lane congestion characterizes the degree of vehicle congestion in a single lane, while intersection congestion characterizes the degree of vehicle congestion at the intersection. The traffic lights at the intersection are then controlled based on the lane and intersection congestion. By collecting intersection data in real time, the actual traffic conditions at the intersection are determined, and the intersection congestion is calculated. The traffic lights are then controlled based on the congestion, achieving dynamic adjustment of the traffic lights, optimizing traffic flow, improving the capacity of the intersection, reducing traffic congestion, increasing overall traffic efficiency, and effectively reducing users' travel time and costs.

[0152] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, an example is provided below for illustration:

[0153] Reference Figure 4 , Figure 5 The following is a control flowchart of a traffic light provided in an embodiment of the present invention:

[0154] Taking a crossroads as an example, the current intersections are numbered. Two intersections with opposite traffic flow are randomly selected and numbered 1 and 2, and another two intersections with opposite traffic flow are numbered 3 and 4. Straight ahead is numbered 1, and left turn is numbered 2. Using a car counter, the average number of cars in the current lane during the red-to-green light transition is detected. Buses and trucks are counted twice as many as regular cars. The average number of waiting cars p in each lane is calculated, and the waiting time T from red to green is recorded. d T d Divide into 6 equal portions, 0-1 / 6T d The vehicle is used as the first longitudinal coordinate of the current driving lane, 0-2 / 6T d The total number of vehicles is used as the second longitudinal coordinate of the current driving lane, 0-3 / 6T d The total number of vehicles is used as the third vertical coordinate of the current driving lane. Similarly, the fourth, fifth, and sixth vertical coordinates of the current driving lane can be obtained.

[0155] Using 1, 2, 3, 4, 5, 6 as the corresponding x-coordinates, and y... uvwThe corresponding vertical axis is represented by u = 1, 2, 3, 4, which represent intersection numbers, v = 1, 2, which represent the mode of travel, and w represents 0-t / 6T. d The total number of vehicles is (t = 1, 2, 3, 4, 5, 6). For example, if the straight-ahead traffic at intersection number 1 forms 6 coordinates, (1, y...). 111 ),(2,y 112 ),(3,y 113 ),(4,y 114 ),(5,y 115 ),(6,y 116 The six coordinates formed by the left turn at intersection number 1 are (1, y). 121 ),(2,y 122 ),(3,y 123 ),(4,y 124 ),(5,y 125 ),(6,y 126 ).

[0156] Similarly, the coordinates formed by going straight and turning left directly ahead at intersections numbered 2, 3, and 4 are as follows:

[0157] (1,y 211 ),(2,y 212 ),(3,y 213 ),(4,y 214 ),(5,y 215 ),(6,y 216 )

[0158] (1,y 221 ),(2,y 222 ),(3,y 223 ),(4,y 224 ),(5,y 225 ),(6,y 226 )

[0159] (1,y 311 ),(2,y 312 ),(3,y 313 ),(4,y 314 ),(5,y 315 ),(6,y 316 )

[0160] (1,y 321 ),(2,y 322 ),(3,y 323 ),(4,y 324 ),(5,y 325 ),(6,y 326 )

[0161] (1,y411 ),(2,y 412 ),(3,y 413 ),(4,y 414 ),(5,y 415 ),(6,y 416 )

[0162] (1,y 421 ),(2,y 422 ),(3,y 423 ),(4,y 424 ),(5,y 425 ),(6,y 426 )

[0163] The slope parameter b for intersections numbered 1, 2, 3, and 4 is calculated using equation (1). uv Where u = 1, 2, 3, 4 represent intersection numbers, and v = 1, 2 represent driving modes. For example, the driving slope parameter directly ahead of intersection number 1 is b. 11 The left turn slope parameter is b. 12 Determine the slope parameter b. uv If the slope parameter b is less than or equal to 0, a negative correlation is observed, indicating few vehicles. No action is taken, and traffic proceeds according to the currently set traffic light timings. If the slope parameter b is greater than 0, proceed as follows:

[0164] Determine the time b for n waits. uvn Let n = 1, 2, 3, ... represent the nth time, and find h1:

[0165] Where: b 11i It is the slope parameter of the i-th (i = 1, 2, 3, ..., n)th row numbered 1, b 12i This is the slope parameter for the i-th left turn, numbered 1. Similarly, calculate h2, h3, h4, h5, h6, h7, and h8 respectively.

[0166] Compare h jThe order of traffic flow (j = 1, 2, 3, ..., 8) is determined by the following conditions: If h2 + h4 ≤ h1 + h3, it indicates that the number of vehicles in the straight lanes of intersections 1 and 2 is similar, the number of vehicles in the straight lanes of intersections 1 and 2 is similar, and the number of vehicles in the left-turn lanes of intersections 1 and 2 is similar. Therefore, the straight lanes of intersections 1 and 2, and the left-turn lanes of intersections 1 and 2, will open simultaneously. If h2 + h4 > h1 + h3, it indicates that the number of vehicles in both the straight and left-turn lanes of intersections 1 and 2 is similar. Therefore, the straight and left-turn lanes of intersection 1 and intersection 2 will open simultaneously. Similarly, if h6 + h8 ≤ h5 + h7, the straight lanes of intersections 3 and 4, and the left-turn lanes of intersections 3 and 4, will open simultaneously. If h6 + h8 > h5 + h7, the straight and left-turn lanes of intersection 3 and intersection 4 will open simultaneously. (Check h...) j (j = 1, 2, 3, ..., 8), if one of h is found j If the value of (j=1,2,3,…,8) is too large, inform the traffic department that the current mode of transportation is too congested and please handle it promptly.

[0167] It should be noted that, in situations where traffic is flowing simultaneously, passage can proceed in the order specified, provided that traffic rules are followed. For example, it is not necessary to open all lanes at an intersection.

[0168] Determine p in n waiting times n The growth value of (n = 1, 2, 3, ...), if p n If the number of green lights (n = 1, 2, 3, ...) shows an increasing trend, then the current green light time needs to be increased. The formula for calculating the required increase in time is T. + =log2(p n -p1)

[0169] In the formula: p1 is the average number of vehicles waiting in the lane during the first count, p n Let T be the average number of vehicles waiting in the corresponding lane during the nth waiting period. For ease of expression, a rounding function is introduced, such as [1.02] = 1, and the value is expressed in seconds. + If the current green light time continues to increase, then an upper limit T needs to be set for the current green light passage time. u They also notified the transportation department that this mode of transportation is currently too congested and requested that the situation be handled promptly.

[0170] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0171] Reference Figure 6 The diagram shows a structural block diagram of a traffic light control device provided in an embodiment of the present invention, which may specifically include the following modules:

[0172] The data acquisition module 601 is used to acquire intersection data corresponding to the traffic intersection, the intersection data including the current number of vehicles and the current waiting time for each lane in the traffic intersection;

[0173] The congestion detection module 602 is used to determine the congestion of the traffic intersection based on the current number of vehicles and the current waiting time, and to obtain the lane congestion degree corresponding to each lane and the intersection congestion degree corresponding to the traffic intersection. The lane congestion degree is used to characterize the degree of vehicle congestion in a single lane, and the intersection congestion degree is used to characterize the degree of vehicle congestion at the traffic intersection.

[0174] The control module 603 is used to control the traffic lights at the intersection based on the lane congestion level and the intersection congestion level.

[0175] In one alternative implementation, the congestion detection module 602 is specifically used for:

[0176] Based on the current number of vehicles and the current waiting time, the coordinates of the lanes are processed to obtain the lane coordinates corresponding to each lane.

[0177] The lane congestion level is obtained by determining the lane congestion level based on the lane coordinates.

[0178] The traffic intersection is congested based on the lane congestion level to obtain the intersection congestion level.

[0179] In one alternative implementation, the congestion detection module 602 is specifically used for:

[0180] Divide the current waiting time into several time periods;

[0181] The lanes are marked according to their respective traffic patterns to obtain lane markings and traffic markings corresponding to each lane.

[0182] Based on the corresponding number of each time period, the lane identifier, and the traffic indicator, the lane coordinates corresponding to the lane are constructed.

[0183] In one alternative implementation, the congestion detection module 602 is specifically used for:

[0184] Use the number corresponding to the time period as the horizontal axis;

[0185] Based on the lane markings, the traffic markings, and the current number of vehicles in the lane during the time period, the vertical coordinate corresponding to the lane is generated.

[0186] In one optional implementation, the lane includes at least a straight-ahead lane and a turning lane, the lane coordinates include a first lane coordinate corresponding to the straight-ahead lane and a second lane coordinate corresponding to the turning lane, and the congestion detection module 602 is specifically used for:

[0187] The congestion level of the straight lane in the nth time period is calculated using the coordinates of the first lane.

[0188] The congestion level of the turning lane in the nth time period is calculated using the second lane coordinates.

[0189] In one optional implementation, the step of determining the congestion level of the traffic intersection based on the lane congestion level to obtain the intersection congestion level includes:

[0190] If the lane congestion level is greater than 0, then the congestion level of the straight lane and the congestion level of the turning lane corresponding to each lane are used to determine the congestion of the traffic intersection, and the congestion level of several intersections corresponding to the traffic intersection is obtained.

[0191] In one optional implementation, the lane includes at least a first lane and a second lane traveling in the opposite direction to the first lane, and the congestion detection module 602 is specifically used for:

[0192] The congestion level of the first straight lane and the first turning lane of the first lane are used to calculate the congestion level of the first turning intersection corresponding to the first lane;

[0193] Using the congestion levels of the second straight lane and the second turning lane of the second lane, the congestion level of the second turning intersection corresponding to the second lane is calculated;

[0194] Using the first straight-ahead lane congestion level of the first lane and the second straight-ahead lane congestion level of the second lane, calculate the first straight-ahead intersection congestion level corresponding to the first lane and the second straight-ahead intersection congestion level corresponding to the second lane.

[0195] In one alternative implementation, the control module 603 is specifically used for:

[0196] If the lane congestion level is less than or equal to 0, the traffic lights at the intersection will be controlled to perform traffic control at the intersection according to the default mode.

[0197] If the lane congestion level is greater than 0, the traffic lights are controlled to give either a straight-ahead instruction or a turning instruction based on the first turning intersection congestion level, the second turning intersection congestion level, the first straight-ahead intersection congestion level, and the second straight-ahead intersection congestion level, so as to implement traffic control at the intersection.

[0198] In one alternative implementation, the control module 603 is specifically used for:

[0199] If the first sum of the congestion levels at the first turning intersection and the first straight intersection is greater than or equal to the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator is controlled to perform a straight-ahead instruction for the first lane and the second lane, or the traffic indicator is controlled to perform a turning instruction for the first lane and the second lane.

[0200] If the first sum of the congestion levels at the first turning intersection and the first straight intersection is less than the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator light is controlled to perform straight-ahead and turning instructions for the first lane, or the traffic indicator light is controlled to perform straight-ahead and turning instructions for the second lane.

[0201] In one alternative implementation, it also includes:

[0202] The prompting module is used to send traffic prompt information to the traffic system if at least one of the congestion levels at a turning intersection or a straight-ahead intersection is greater than or equal to a preset threshold. The traffic prompt information is a message indicating that the traffic intersection is experiencing traffic congestion.

[0203] In one alternative implementation, it also includes:

[0204] The quantity acquisition module is used to acquire the previous waiting time and the historical number of vehicles corresponding to the previous waiting time.

[0205] The change information calculation module is used to calculate the quantity change information corresponding to the lane using the historical vehicle count and the current vehicle count;

[0206] The calculation module is used to calculate the traffic adjustment time for the traffic light by using the historical number of vehicles and the current number of vehicles if the quantity change information indicates that the number of vehicles in the lane continues to increase.

[0207] An adjustment module is used to adjust the traffic indicator duration of the traffic light using the traffic adjustment time.

[0208] The duration of the traffic indication includes the duration of the straight-ahead traffic indication and the duration of the turning traffic indication.

[0209] In one alternative implementation, it also includes:

[0210] The detection module is used to send traffic alert information to the traffic system if the traffic adjustment time reaches a preset upper limit value. The traffic alert information is a message indicating that the traffic intersection is experiencing traffic congestion.

[0211] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0212] In addition, this invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described traffic light control method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0213] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the traffic light control method embodiments described above, achieving the same technical effects. To avoid repetition, these will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0214] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0215] The electronic device 700 includes, but is not limited to, components such as: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711. Those skilled in the art will understand that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device. An electronic device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. In the embodiments of the present invention, the electronic device includes, but is not limited to, mobile phones, tablet computers, laptop computers, PDAs, in-vehicle terminals, wearable devices, and pedometers.

[0216] It should be understood that, in this embodiment of the invention, the radio frequency unit 701 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 710; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 701 can also communicate with networks and other devices through a wireless communication system.

[0217] Electronic devices provide users with wireless broadband internet access through network module 702, such as helping users send and receive emails, browse web pages, and access streaming media.

[0218] The audio output unit 703 can convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into audio signals and output them as sound. Furthermore, the audio output unit 703 can also provide audio output related to specific functions performed by the electronic device 700 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, and a receiver, etc.

[0219] Input unit 704 is used to receive audio or video signals. Input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on display unit 706. The image frames processed by GPU 7041 can be stored in memory 709 (or other storage medium) or transmitted via radio frequency unit 701 or network module 702. Microphone 7042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 701 in telephone call mode.

[0220] The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 7061 according to the ambient light level, and the proximity sensor can turn off the display panel 7061 and / or backlight when the electronic device 700 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 705 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.

[0221] The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0222] User input unit 707 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of electronic devices. Specifically, user input unit 707 includes a touch panel 7071 and other input devices 7072. Touch panel 7071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 7071). Touch panel 7071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 710, which receives and executes commands from the processor 710. In addition, touch panel 7071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 7071, user input unit 707 may also include other input devices 7072. Specifically, other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.

[0223] Furthermore, the touch panel 7071 can cover the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it transmits the information to the processor 710 to determine the type of touch event. Subsequently, the processor 710 provides corresponding visual output on the display panel 7061 according to the type of touch event. It is understood that in one embodiment, the touch panel 7071 and the display panel 7061 are implemented as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated to realize the input and output functions of the electronic device. The specific implementation is not limited here.

[0224] Interface unit 708 serves as an interface for connecting external devices to electronic device 700. For example, external devices may include a wired or wireless headphone port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 708 can be used to receive input from external devices (e.g., data, power, etc.) and transmit the received input to one or more components within electronic device 700, or it can be used to transmit data between electronic device 700 and external devices.

[0225] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 709 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0226] The processor 710 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 709, and by calling data stored in the memory 709, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 710.

[0227] The electronic device 700 may also include a power supply 711 (such as a battery) for supplying power to various components. Preferably, the power supply 711 is logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.

[0228] In addition, the electronic device 700 includes some functional modules not shown, which will not be described in detail here.

[0229] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0230] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, 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 storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0231] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.

[0232] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0233] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0234] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0235] The units described as separate components may or may not be physically separate. 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 units can be selected to achieve the purpose of this embodiment according to actual needs.

[0236] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0237] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0238] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for controlling traffic lights, characterized in that, include: Obtain intersection data corresponding to the traffic intersection, the intersection data including the current number of vehicles and the current waiting time for each lane in the traffic intersection; The current waiting time is the alternation duration of the traffic lights at the intersection; Divide the current waiting time into several time periods; The lanes are marked according to their respective traffic patterns to obtain lane markings and traffic markings corresponding to each lane. Use the number corresponding to the time period as the horizontal axis; Based on the lane markings, the traffic markings, and the current number of vehicles in the lane during the time period, the vertical coordinate corresponding to the lane is generated; Based on the lane coordinates, the congestion of the lane is determined to obtain the lane congestion level, which is used to characterize the degree of vehicle congestion in a single lane. The traffic intersection is congested based on the lane congestion level to obtain the intersection congestion level, which is used to characterize the degree of vehicle congestion at the traffic intersection. The traffic lights at the intersection are controlled based on the lane congestion level and the intersection congestion level. The lanes include at least a first lane and a second lane traveling in the opposite direction to the first lane. Controlling the traffic lights at the intersection based on the lane congestion level and the intersection congestion level includes: If the lane congestion level is less than or equal to 0, the traffic lights at the intersection will be controlled to perform traffic control at the intersection according to the default mode. If the lane congestion level is greater than 0, then if the first sum of the congestion levels at the first turning intersection and the first straight intersection corresponding to the first lane is greater than or equal to the second sum of the congestion levels at the second turning intersection and the second straight intersection corresponding to the second lane, then the traffic indicator is controlled to execute a straight-ahead instruction for the first lane and the second lane, or the traffic indicator is controlled to execute a turning instruction for the first lane and the second lane; if the first sum of the congestion levels at the first turning intersection and the first straight intersection is less than the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator is controlled to execute a straight-ahead instruction and a turning instruction for the first lane, or the traffic indicator is controlled to execute a straight-ahead instruction and a turning instruction for the second lane.

2. The method according to claim 1, characterized in that, The lane includes at least a straight-ahead lane and a turning lane. The lane coordinates include a first lane coordinate corresponding to the straight-ahead lane and a second lane coordinate corresponding to the turning lane. The step of determining lane congestion based on the lane coordinates to obtain the lane congestion level includes: The congestion level of the straight lane in the nth time period is calculated using the coordinates of the first lane. The congestion level of the turning lane in the nth time period is calculated using the second lane coordinates.

3. The method according to claim 2, characterized in that, The step of determining the congestion level of the traffic intersection based on the lane congestion level to obtain the intersection congestion level includes: If the lane congestion level is greater than 0, then the congestion level of the straight lane and the congestion level of the turning lane corresponding to each lane are used to determine the congestion of the traffic intersection, and the congestion level of several intersections corresponding to the traffic intersection is obtained.

4. The method according to claim 3, characterized in that, The lanes include at least a first lane and a second lane traveling in the opposite direction to the first lane. The method of determining congestion at the intersection by using the congestion levels of the straight-ahead lanes and turning lanes corresponding to each of the lanes, and obtaining the congestion levels of several intersections corresponding to the intersection, includes: The congestion level of the first straight lane and the first turning lane of the first lane are used to calculate the congestion level of the first turning intersection corresponding to the first lane; Using the congestion levels of the second straight lane and the second turning lane of the second lane, the congestion level of the second turning intersection corresponding to the second lane is calculated; Using the first straight-ahead lane congestion level of the first lane and the second straight-ahead lane congestion level of the second lane, calculate the first straight-ahead intersection congestion level corresponding to the first lane and the second straight-ahead intersection congestion level corresponding to the second lane.

5. The method according to claim 1, characterized in that, Also includes: If at least one of the congestion levels at a turning intersection or a straight-ahead intersection is greater than or equal to a preset threshold, a traffic alert message is sent to the traffic system, indicating that the intersection is experiencing traffic congestion.

6. The method according to claim 1, characterized in that, Also includes: Get the last waiting time and the number of historical vehicles corresponding to the last waiting time; The quantity change information corresponding to the lane is calculated using the historical vehicle count and the current vehicle count; If the quantity change information indicates that the number of vehicles in the lane is continuously increasing, then the traffic adjustment time for the traffic light is calculated using the historical vehicle count and the current vehicle count. The duration of the traffic indicator light is adjusted using the aforementioned traffic adjustment time. The duration of the traffic indication includes the duration of the straight-ahead traffic indication and the duration of the turning traffic indication.

7. The method according to claim 6, characterized in that, Also includes: If the traffic adjustment time reaches the preset upper limit, a traffic alert message is sent to the traffic system, indicating that the traffic intersection is experiencing traffic congestion.

8. A control device for a traffic light, characterized in that, include: The data acquisition module is used to acquire intersection data corresponding to the traffic intersection. The intersection data includes the current number of vehicles and the current waiting time for each lane in the traffic intersection. The current waiting time is the alternation duration of the traffic lights at the traffic intersection. The congestion detection module is used to divide the current waiting time into several time periods; mark each lane according to its traffic pattern to obtain the lane identifier and traffic pattern corresponding to each lane; and use the number corresponding to the time period as the horizontal axis. Based on the lane markings, the traffic markings, and the current number of vehicles in the lane during the time period, the vertical coordinate corresponding to the lane is generated; Based on the lane coordinates, the congestion of the lane is determined to obtain the lane congestion level, which is used to characterize the degree of vehicle congestion in a single lane. The traffic intersection is congested based on the lane congestion level to obtain the intersection congestion level, which is used to characterize the degree of vehicle congestion at the traffic intersection. The control module is used to control the traffic lights at the intersection based on the lane congestion level and the intersection congestion level. The lanes include at least a first lane and a second lane traveling in the opposite direction to the first lane. The control module is specifically used for: If the lane congestion level is less than or equal to 0, the traffic lights at the intersection will be controlled to perform traffic control at the intersection according to the default mode. If the lane congestion level is greater than 0, then if the first sum of the congestion levels at the first turning intersection and the first straight intersection corresponding to the first lane is greater than or equal to the second sum of the congestion levels at the second turning intersection and the second straight intersection corresponding to the second lane, then the traffic indicator is controlled to execute a straight-ahead instruction for the first lane and the second lane, or the traffic indicator is controlled to execute a turning instruction for the first lane and the second lane; if the first sum of the congestion levels at the first turning intersection and the first straight intersection is less than the second sum of the congestion levels at the second turning intersection and the second straight intersection, then the traffic indicator is controlled to execute a straight-ahead instruction and a turning instruction for the first lane, or the traffic indicator is controlled to execute a straight-ahead instruction and a turning instruction for the second lane.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Dynamic control method of traffic signal lamps

    CN105390001A

  • Passing time distribution method and device for traffic lights

    CN108986493A

  • Traffic signal light control method and device, storage medium and electronic equipment

    CN110689738A

  • Traffic signal lamp timing adjustment method and device

    CN113947927A