A method, device, equipment and medium for controlling traffic lights

By acquiring target time period and traffic flow data, the green light ratio allocation of traffic lights is optimized, solving the problem of low efficiency of existing traffic light control systems under traffic flow changes at different time periods, and achieving more efficient traffic flow.

CN116311998BActive Publication Date: 2026-06-30ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD
Filing Date
2023-02-22
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

The existing traffic signal control system cannot reasonably adjust the red and green light switching time according to the changes in traffic flow at different times, resulting in traffic congestion and low vehicle passage efficiency.

Method used

By acquiring the target time period list, preset phase list, and lane list, and combining them with traffic flow data, the green light ratio allocation of the target traffic lights can be accurately calculated, thereby optimizing the traffic light control method.

Benefits of technology

This improved the accuracy of traffic light time periods and the precision of green light ratio allocation, reduced vehicle travel time losses, and enhanced traffic flow efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116311998B_ABST
    Figure CN116311998B_ABST
Patent Text Reader

Abstract

This invention relates to the field of traffic light technology, and in particular to a traffic light control method. The method includes: obtaining a target time period list; obtaining a preset phase list corresponding to the target traffic light and a first designated lane list corresponding to the target traffic light; obtaining a target phase list of the target traffic light based on the preset phase list and the first designated lane list; and controlling the allocation of the green light ratio corresponding to the target traffic light based on the target time period list and the target phase list. It is understood that this method can accurately select a suitable phase for the target traffic light, avoiding the time consumed by switching between multiple phases and affecting vehicle traffic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of traffic light technology, and in particular to a control method, device, equipment and medium for traffic lights. Background Technology

[0002] With modernization, the number of vehicles has continued to increase, leading to severe traffic congestion in some cities. Optimizing the switching times of traffic lights is one of the best solutions to this problem. Improving traffic lights is a cost-effective, quick, and environmentally friendly approach. While many cities have implemented smart transportation systems due to national emphasis on intelligent transportation, current technologies still rely on manual central control to allocate the switching times of traffic lights. This fails to accurately determine the switching times during different time periods, such as peak hours, resulting in traffic congestion on some roads and affecting vehicle flow efficiency. Therefore, accurately determining the required time periods for traffic lights is a pressing technical problem that needs to be solved by those skilled in the art. Summary of the Invention

[0003] To address the aforementioned technical problems, this invention protects a method for controlling a traffic light, the method comprising:

[0004] Get the list of target time periods;

[0005] Obtain the preset phase list and the first designated lane list corresponding to the target traffic light;

[0006] Based on the preset phase list and the first designated lane list, obtain the target phase list of the target traffic light;

[0007] Based on the target time period list and the target phase list, control the allocation of the green ratio corresponding to the target traffic lights.

[0008] The present invention also protects a control device for a traffic light, the device comprising:

[0009] The target time period acquisition module is used to acquire a list of target time periods for the target traffic lights.

[0010] The target time period list acquisition module is used to determine the target time period list corresponding to the target time period list based on the target time period list.

[0011] The traffic light control module is used to control the allocation of the green light ratio corresponding to the target traffic light according to the target time period list and the phase information of the target traffic light.

[0012] This invention protects an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described signal light control method.

[0013] The present invention protects a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described signal light control method.

[0014] Compared with existing technologies, this invention has significant advantages and beneficial effects. Through the above technical solution, the signal light control method, device, electronic equipment, and storage medium provided by this invention achieve considerable technological advancement and practicality, and have broad industrial application value. It possesses at least the following advantages:

[0015] This invention discloses a traffic light control method, apparatus, device, and medium. The method includes: acquiring a target time period list; acquiring a preset phase list corresponding to the target traffic light and a first designated lane list corresponding to the target traffic light; acquiring a target phase list of the target traffic light based on the preset phase list and the first designated lane list; and controlling the allocation of the green light ratio corresponding to the target traffic light based on the target time period list and the target phase list. It is understood that this method can accurately select a suitable phase for the target traffic light, avoiding the time consumed by transitions between multiple phases, which would affect vehicle traffic flow.

[0016] Furthermore, this invention also obtains the current time point of the target traffic light; based on the current time point of the target traffic light, obtains the target traffic flow set corresponding to the target traffic light within a preset time window; based on the target traffic flow set, obtains the target time period list of the target traffic light; based on the target time period list, determines the target time cycle list corresponding to the target time period list; based on the target time cycle list and the phase information of the target traffic light, controls the allocation of the green light ratio corresponding to the target traffic light. It can be seen that by considering different time slices and the traffic flow corresponding to each time slice at each time point within the time window, the required time period of the traffic light can be determined, thereby improving the accuracy of determining the required time period of the traffic light and further contributing to a more accurate allocation of the green light ratio.

[0017] Furthermore, this invention also obtains a target time period list for the target traffic lights; determines a target time cycle list corresponding to the target time period list based on the target time period list; and controls the allocation of the green ratio corresponding to the target traffic lights based on the target time cycle list and the phase information of the target traffic lights. It can be seen that, based on the mapping relationship between time cycle and traffic flow, the corresponding time cycle within each target time period can be accurately determined, which is beneficial for more accurate allocation of the green ratio of traffic lights according to the time cycle.

[0018] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0019] Figure 1 This is a flowchart of a traffic light control method provided in Embodiment 1 of the present invention. Detailed Implementation

[0020] To further illustrate the technical means and effects adopted by the present invention to achieve the intended purpose, the following detailed description of the specific implementation method and effects of a traffic light control method according to the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.

[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0022] Example 1

[0023] like Figure 1 As shown in the figure, this embodiment provides a method for controlling a traffic light, the method including the following steps:

[0024] S1. Obtain the target time period list.

[0025] Specifically, step S1 also includes the following steps:

[0026] S100: Obtain the target time period list of the target traffic lights.

[0027] Specifically, step S100 also includes the following steps:

[0028] S101. Obtain the current time point of the target traffic light.

[0029] Specifically, the target traffic light is the traffic light corresponding to the target intersection as determined by the user.

[0030] S103. Based on the current time of the target traffic light, obtain the target traffic flow set corresponding to the target traffic light within a preset time window.

[0031] In one specific embodiment, the preset time window is a time period constructed with the current time point as the end point of the time period and a set time point as the start point of the time period; wherein, those skilled in the art set the initial time point according to time requirements, which will not be elaborated here; it can be seen that when the time points in the time window are continuously superimposed, the traffic flow data can be increased, thereby improving the accuracy of determining the required time period in the traffic light, which in turn helps to allocate the green light ratio of the traffic light more accurately.

[0032] In another specific embodiment, the preset time window is a time period constructed with the current time point as the starting point of the time period and a set time span as the length of the time period. The set time span ranges from 30 to 60 days, and preferably, the set time span is 30 days. It can be seen that as the time window slides continuously, the proportion of newly added traffic flow data in all traffic flow data within the time window can be made more reasonable, the required time period changes in the traffic lights can be determined, and thus the allocation of the green light ratio of the traffic lights can be more accurate.

[0033] Specifically, the preset time window includes one or more preset time points, wherein the value range of each preset time point is 1-2 days.

[0034] Preferably, the value of each preset time point is 1 day.

[0035] Specifically, the target traffic flow set includes a list of preset traffic flows corresponding to all preset time points.

[0036] Specifically, step S103 also includes a list of preset traffic flows corresponding to any preset time point in the following steps:

[0037] S1031. Obtain the target lane ID list C={C1, C2, ..., C...} of the target traffic light. t , ..., C k}, C tLet t be the ID of the t-th target lane of the target traffic light, where t = 1...k, and k is the number of target lanes of the target traffic light.

[0038] Furthermore, the number of exit lanes corresponding to the target lane ID is t-1.

[0039] Furthermore, the target lane ID is a unique identifier corresponding to any lane entering the target intersection.

[0040] Furthermore, the preset time slice ranges from 5 to 10 minutes, and preferably, the preset time slice is 10 minutes.

[0041] S1033. Based on C, obtain the first initial traffic flow set H corresponding to C. 0 ={H 0 1, H 0 2, ..., H 0 γ H 0 ξ}, H 0 γ ={H 0 γ1 H 0 γ2 H 0 γi H 0 γm}, H 0 γi Let y be the traffic flow in the i-th preset time slice of the γ-th lane driving dimension corresponding to C; γ = 1, 2, ..., ξ; i = 1, 2, ..., m, where m is the number of preset time slices within the preset time point.

[0042] Preferably, the lane driving dimensions include: driving dimensions where vehicles can turn left, driving dimensions where vehicles can go straight, driving dimensions where vehicles can make a U-turn, and driving dimensions where vehicles can turn right.

[0043] S1035, according to H 0 Obtain the preset traffic flow list A = {A1, A2, ..., A...} i , ..., A m}, A i The preset traffic flow rate is the preset traffic flow rate within the i-th preset time segment.

[0044] Furthermore, A i Meets the following conditions:

[0045] A i =∑ ξ γ=1 H 0 γi .

[0046] The above approach takes into account traffic flow in all lanes, improving the accuracy of reflecting traffic flow corresponding to traffic lights, which in turn helps to allocate the green light ratio of traffic lights more accurately.

[0047] S105. Based on the target traffic flow set, obtain the target time period list of the target traffic lights.

[0048] Specifically, the target time period list includes several target time periods, wherein the target time period is characterized as the time period used for the green light ratio allocation of the target traffic lights, such as the morning peak time period, the evening peak time period, and the off-peak time period.

[0049] Specifically, step S105 also includes the following steps:

[0050] S1051. When the number of preset time points within the preset time window is not greater than the set threshold for the number of time points, obtain the first traffic flow list of the target traffic light.

[0051] Specifically, the first traffic flow list is a single preset traffic flow list.

[0052] Specifically, the threshold number of set time points is consistent with the value of a single preset time point, which will not be elaborated here.

[0053] S1053. Obtain the target time period list based on the first traffic flow list.

[0054] Specifically, step S1053 also includes the following step to obtain the target time period:

[0055] S10531. Based on the first traffic flow list, obtain the first time priority list B of the target traffic light. 0 ={B 0 1, B 0 2, ..., B 0 x , ..., B 0 p}, B 0 x Let x be the time priority corresponding to the xth first time interval, x = 1, 2, ..., p, where p is the number of first time intervals, and the first time interval includes M0x consecutive preset time slices.

[0056] Preferably, B 0 x Meets the following conditions:

[0057] B 0 x =A 0x ×M0x, where A 0 x The maximum first traffic flow rate within a preset time slice in the xth first time interval.

[0058] Preferably, ∑ p x=1 M x =m and M0x≥M0, where M0 is the set threshold for the number of time slices and S0≥3. Those skilled in the art know that a preset time period threshold can be set according to actual needs, and will not be elaborated here.

[0059] The above-mentioned method can reflect the changes in traffic flow during a certain period of the day by using traffic flow and time slices, thereby improving the accuracy of determining the time period required for traffic lights, which in turn facilitates a more accurate allocation of the green light ratio for traffic lights.

[0060] S10533, According to B 0 Obtain the second time priority set B = {B1, B2, ..., B} z}, B z Let z be the z-th second time priority list, where z is the number of second time priority lists and z≥2.

[0061] S10535, According to B z , obtain B z Corresponding key traffic flow S z , of which S z Meets the following conditions:

[0062] S z =∑ p x=1 (A) z x ×M z x ), where A z x M represents the maximum first traffic flow within the preset time slice of the x-th second time interval corresponding to the z-th second time priority list. z x This represents the number of preset time slices within the x-th second time interval corresponding to the z-th second time priority list.

[0063] Furthermore, before step S10535, the following step is also included: S10534, when z=1, based on B 0 Obtaining S1 can be understood as: based on B 0 Using S z The method for obtaining S1 is not detailed here.

[0064] S10537, when |S z-S z-1 When |≤ΔS0, B z The corresponding second time interval is taken as the target time period of the target traffic light.

[0065] S10539, when |S z -S z-1 When |>ΔS0, obtain B z The corresponding third time priority set B zj ={B z+1 B z+2 , ..., B z+j}, until |S z+j -S z+j-1 |≤ΔS0 so that B z+j The corresponding second time interval is taken as the target time period of the target traffic light, where B z+j For B z The corresponding j-th third time priority list, where j is B z The number of corresponding third time priority lists is j≥1.

[0066] The above-mentioned system can reflect the changes in traffic flow during a certain period of the day through traffic flow and time slices, and adjust the length of the time slice according to the traffic flow and time slices, which further improves the accuracy of determining the time slice required for traffic lights, and thus helps to allocate the green light ratio of traffic lights more accurately.

[0067] S1055. When the number of preset time points within the preset time window is greater than the set threshold for the number of time points, obtain the second traffic flow set of the target traffic light.

[0068] Specifically, the second traffic flow set includes several second traffic flow lists, wherein each second traffic flow list is a single preset traffic flow list.

[0069] S1057. Obtain the target time period list based on the second traffic flow set.

[0070] Specifically, step S1057 also includes the following step to obtain the target time period:

[0071] S10571. Obtain the second traffic flow set D = {D1, D2, ..., D...} r , ..., D g}, D r ={D r1 D r2 , ..., D ri , ..., D rm}, D ri Let r be the second traffic flow corresponding to the i-th preset time slot in the r-th preset time point, where r = 1, 2, ..., g, and g is the number of preset time points.

[0072] S10573. Based on D, obtain the intermediate traffic flow list U={U1, U2, ..., U...} corresponding to D. i , ..., U m}, U i This represents the intermediate traffic flow corresponding to the i-th preset time slice.

[0073] Specifically, U i Meets the following conditions:

[0074] U i =(∑ g r=1 D ri ) / g.

[0075] S10575. Obtain the target time period based on U.

[0076] Specifically, step S10575 can be referred to step S1053, and will not be repeated here.

[0077] The above-mentioned approach determines the traffic flow list within different time windows by spanning the time window, and then determines the time period required for the traffic lights by combining traffic flow and time slices. This improves the accuracy of determining the time period required for the traffic lights and further facilitates more accurate allocation of the green light ratio for the traffic lights.

[0078] S200. Based on the target time period list, determine the target time period list corresponding to the target time period list.

[0079] Specifically, step S200 includes the following steps:

[0080] S201. Obtain the preset time period and target traffic flow set corresponding to the target traffic light, wherein...

[0081] The preset time period is characterized as the green light duration of all phases corresponding to the target traffic light. Those skilled in the art know that the preset time period can be set according to actual needs, and will not be elaborated here.

[0082] S202. Obtain the first target based on the preset time period and the target traffic flow set.

[0083] Time period mapping table.

[0084] Specifically, step S202 includes the following steps:

[0085] S2021. Obtain the upper limit value of the time corresponding to the preset time period value and the lower limit value of the time corresponding to the preset time period value.

[0086] S2022. Based on the target traffic flow set, obtain the maximum traffic flow corresponding to the current time point.

[0087] The minimum traffic flow corresponding to the current time point, wherein those skilled in the art are familiar with the minimum and maximum values ​​of traffic flow obtained in the prior art, and will not be elaborated here.

[0088] S2023, based on the upper time limit, the lower time limit, the maximum traffic flow, and...

[0089] The minimum traffic flow, constructing the first target time period mapping table, can be understood as follows: the first target time period mapping table is a mapping table that satisfies a first mapping relationship between any traffic flow and any time point in a preset time period based on the upper time limit, the lower time limit, the maximum traffic flow, and the minimum traffic flow, wherein the first mapping relationship is a linear mapping relationship.

[0090] S203. Obtain the target time period list based on the first target time period mapping table and the target time period list.

[0091] Specifically, step S203 also includes the following steps:

[0092] S2031. Obtain the target time period list G = {G1, G2, ..., G...} x , ..., G p}, G x This is the xth target time period.

[0093] S2032, according to G x Get G x The corresponding specified traffic flow L x , where L x Meets the following conditions:

[0094] L x =(∑ M0x y=1 L xy / M0x), L xy For G x The traffic flow for the corresponding y-th preset time slot, y=1……M0x.

[0095] S2033, according to L x Get G x The corresponding target time period T x , among which, T x Meets the following conditions:

[0096] T x =(L x -L 0 1) T0 2 / (L) 0 2-L 0 1) + (L) 0 2-L x )T 0 1 / (L) 0 2-L 0 1),

[0097] Among them, T 0 1 represents the lower limit of the time, L 0 1 represents the minimum traffic flow, T 0 2 represents the upper limit of the time, L 0 2 represents the maximum traffic flow.

[0098] Furthermore, the target time period is the green light duration of all phases corresponding to the target traffic light within any target time period.

[0099] As mentioned above, by establishing a linear mapping relationship between time period and traffic flow, the corresponding time period within each target time period can be determined, which is conducive to more accurate allocation of the green light ratio of traffic lights based on the time period.

[0100] In one specific embodiment, step S200 further includes the following steps:

[0101] S201. Obtain the preset time period and target traffic flow set corresponding to the target traffic light. The S201 step in this embodiment is the same as the S201 step in the previous embodiment, and will not be described again here.

[0102] S202. Obtain the second target based on the preset time period and the target traffic flow set.

[0103] Time period mapping table.

[0104] Specifically, step S202 also includes the following steps:

[0105] S2021. Obtain the upper limit value of the time corresponding to the preset time period value and the lower limit value of the time corresponding to the preset time period value.

[0106] S2022. Based on the target traffic flow set, obtain the maximum traffic flow corresponding to the current time point.

[0107] The minimum traffic flow corresponding to the current time point, wherein those skilled in the art are familiar with the minimum and maximum values ​​of traffic flow obtained in the prior art, and will not be elaborated here.

[0108] S2023, based on the upper time limit, the lower time limit, the maximum traffic flow, and...

[0109] The minimum traffic flow, constructing the second target time period mapping table, can be understood as follows: the second target time period mapping table is a mapping table that satisfies a second mapping relationship between any traffic flow and any time point in a preset time period based on the upper time limit, the lower time limit, the maximum traffic flow, and the minimum traffic flow, wherein the second mapping relationship is a non-linear mapping relationship.

[0110] S203. Obtain the target time period list based on the second target time period mapping table and the target time period list.

[0111] Specifically, step S203 also includes the following steps:

[0112] S2031. Obtain the target time period list G = {G1, G2, ..., G...} x , ..., G p}, G x This is the xth target time period.

[0113] S2032, according to G x Get G x The corresponding specified traffic flow L x , where L x Meets the following conditions:

[0114] L x =(∑ M0x y=1 L xy / M0x), Lxy is G x The traffic flow for the corresponding y-th preset time slot, y=1……M0x.

[0115] S2033, according to L x Get G x The corresponding target time period T x , among which, T x Meets the following conditions:

[0116] , among which, T 0 1 represents the lower limit of the time, T 0 2 is what

[0117] The upper limit of the time, L 0 2 represents the maximum traffic flow, L x 2 is G x The corresponding maximum traffic flow is defined as follows: α is the first adjustment parameter and α∈(0,+∞], and β is the second adjustment parameter and β∈(1,+∞).

[0118] As mentioned above, by establishing a nonlinear mapping relationship between time period and traffic flow, the corresponding time period within each target time period can be determined based on changes in traffic flow, which is beneficial for more accurate allocation of the green light ratio of traffic lights according to the time period.

[0119] In another specific embodiment, step S200 further includes the following steps:

[0120] S201. Based on the target time period list, obtain the first target corresponding to the target traffic light.

[0121] The time period and the second target time period corresponding to the target traffic light.

[0122] Specifically, the first target time period includes a first sub-time period and a second sub-time period.

[0123] The first sub-time period is the morning peak period, and the second sub-time period is the evening peak period. Those skilled in the art know any method for obtaining the morning and evening peak periods, so it will not be described in detail here.

[0124] Furthermore, the second target time period is any target time period other than the first target time period in the target time period list.

[0125] S202, Based on the first target time period and the second target time period, obtain the...

[0126] The first target traffic flow corresponding to the first target time period and the second target traffic flow corresponding to the second target time period.

[0127] Specifically, the first target traffic flow is the average traffic flow of all preset time slices corresponding to the first target time period.

[0128] Specifically, the second target traffic flow is the average traffic flow of all preset time slices corresponding to the second target time period.

[0129] S203. Based on the first target traffic flow and the second target traffic flow, determine the target...

[0130] List of time periods.

[0131] Specifically, step S203 also includes the following steps:

[0132] S2031. Obtain a preset time period and target traffic flow set. The S2031 step in this embodiment is the same as the S201 step in the previous embodiment, and will not be described again here.

[0133] S2032. Obtain the target traffic flow difference based on the first target traffic flow and the second target traffic flow.

[0134] S2033, When the target traffic flow difference is not less than the preset traffic flow difference threshold, according to

[0135] The preset time period and the target traffic flow set are used to obtain a first target time period mapping table. In this embodiment, step S2033 is the same as step S202 in the first embodiment, and will not be described again here.

[0136] S2034. Obtain the target time period list according to the first target time period mapping table and the target time period list. The S2034 step in this embodiment is the same as the S203 step in the first embodiment, and will not be repeated here.

[0137] S2035. When the target traffic flow difference is less than a preset traffic flow difference threshold, according to the...

[0138] Given the preset time period and the target traffic flow set, obtain the second target time period mapping table. In this embodiment, step S2035 is the same as step S202 in the second embodiment, and will not be described again here.

[0139] S2036. Obtain the target time period list according to the second target time period mapping table and the target time period list. The S2036 step in this embodiment is the same as the S203 step in the second embodiment, and will not be described again here.

[0140] The above method can determine a more suitable time period by analyzing the differences in traffic flow between different time periods, thereby more accurately determining the corresponding time period within each target time period. This ensures a more accurate allocation of the green light ratio based on the time period.

[0141] S2. Obtain the preset phase list and the first designated lane list corresponding to the target traffic light.

[0142] Specifically, the preset phase list includes: a plurality of preset phase identifiers and a second designated lane list corresponding to each preset phase identifier, wherein the second designated lane list includes: the second designated lane ID corresponding to the preset phase identifier and the lane driving dimension corresponding to the second designated lane ID.

[0143] Specifically, the first designated lane list includes: the first designated lane IDs corresponding to several target traffic lights, and the lane driving dimension and designated intersection duration corresponding to each first designated lane ID.

[0144] Preferably, the lane driving dimension includes one or more combinations of the following: a driving dimension in which a vehicle can turn left, a driving dimension in which a vehicle can go straight, a driving dimension in which a vehicle can make a U-turn, and a driving dimension in which a vehicle can turn right.

[0145] S3. Obtain the target phase list of the target traffic light based on the preset phase list and the first designated lane list.

[0146] Specifically, step S3 also includes the following steps:

[0147] S31. Obtain the first phase according to the preset phase list and the first designated lane list.

[0148] Bit list.

[0149] Specifically, step S31 also includes the following steps:

[0150] S311. Obtain the intermediate phase set ZJ = {ZJ1, ZJ2, ..., ZJ} σ ..., ZJ δ}, ZJ σ Let σ be the σ-th intermediate phase list, where σ = 1...δ, and δ is the number of intermediate phase lists and δ ≤ δ. 0 δ 0 The number of preset phases in the preset phase list.

[0151] Specifically, ZJ1 is the preset phase list.

[0152] Specifically, ZJ σ For ZJ σ-1 Delete ZH σ-1 The list that follows.

[0153] S313. Obtain the preset specified lane set CD={CD1, CD2, ..., CD...} σ , ..., CD δ}, CD σ For ZJ σ The corresponding preset list of designated lanes.

[0154] Specifically, CD1 is the first designated lane list.

[0155] Specifically, CD σ For CD σ-1 Delete ZH σ-1 The list following the corresponding second designated lane list.

[0156] S315. Based on ZJ and CD, obtain the first phase list ZH = {ZH1, ZH2, ...,}

[0157] ZH σ ..., ZHδ}, ZH σ For ZJ in the first phase list σ The corresponding first phase.

[0158] Specifically, step S315 also includes the following steps to obtain ZH. σ :

[0159] According to ZJ σ-1 and CD σ-1 Get ZJ σ-1 The corresponding priority list, wherein the ZJ σ-1 The corresponding priority list includes several ZJs. σ-1 A preset phase priority corresponding to a preset phase identifier, wherein the preset phase priority is the number of times the second designated lane ID is consistent with the first designated lane ID in the second designated lane list corresponding to the preset phase identifier.

[0160] Traversing ZJ σ-1 The corresponding priority list and from ZJ σ-1 Get the highest priority from the corresponding priority list

[0161] The preset phase corresponding to the large preset phase priority is used as ZH σ .

[0162] The above method can accurately select the appropriate phase for the target traffic light, avoiding conflicts between multiple phases.

[0163] The conversion process takes time and affects vehicle traffic.

[0164] S33. Obtain the target phase list based on the first intermediate phase list.

[0165] Specifically, step S33 also includes the following steps:

[0166] S331. During the first sub-time period or the second sub-time period, obtain the first pair.

[0167] The first and second opposite traffic flows are the traffic flows corresponding to the lanes where traffic is traveling in opposite directions.

[0168] Furthermore, the first oncoming traffic flow is the average traffic flow in the lane corresponding to the first oncoming traffic flow during the first sub-time period or the second sub-time period.

[0169] Furthermore, the second opposing traffic flow is the average traffic flow in the lane corresponding to the second opposing traffic flow during the first sub-time period or the second sub-time period.

[0170] S333. Obtain the target phase list based on the first oncoming traffic flow.

[0171] Specifically, step S333 also includes the following steps:

[0172] When ΔT CL <ΔT 0 CL When, the first intermediate phase list is used as the target phase list, where ΔT 0 CL This is the preset adjustment phase time threshold.

[0173] Furthermore, ΔT 0 CL The value range is 5~8s, preferably ΔT. 0 CL The range of values

[0174] It lasts for 5 seconds.

[0175] Specifically, ΔT CL Meets the following conditions:

[0176] CL1 represents the first oncoming traffic flow, and CL2 represents the second...

[0177] Oncoming traffic flow, CL max T is the maximum value among CL1 and CL2. CL max For CL max The corresponding time period, where T CL max The method for obtaining the time period can be referred to in step S200, and will not be repeated here.

[0178] When ΔT CL ≥ΔT 0 CL At that time, a preset phase that meets the straight-ahead condition will be obtained from the list of remaining phases.

[0179] The phase is inserted into the first intermediate phase list, a second intermediate phase list is generated, and the second intermediate phase list is used as the target phase list.

[0180] As mentioned above, when one phase is insufficient to allow vehicles to pass, an additional phase is added to ensure that vehicles have enough time to pass.

[0181] S4. Based on the target time period list and the target phase list, control the allocation of the green ratio corresponding to the target traffic light. Those skilled in the art are familiar with any existing method for determining the green ratio of a traffic light based on the target time period list and the phase information of the target traffic light, and will not be elaborated here.

[0182] This embodiment provides a traffic light control method, which includes: obtaining a target time period list; obtaining a preset phase list corresponding to the target traffic light and a first designated lane list corresponding to the target traffic light; obtaining a target phase list of the target traffic light based on the preset phase list and the first designated lane list; and controlling the allocation of the green light ratio corresponding to the target traffic light based on the target time period list and the target phase list. It can be seen that this method can accurately select a suitable phase for the target traffic light, avoiding the time consumed by switching between multiple phases and affecting vehicle traffic.

[0183] Furthermore, this invention also obtains the current time point of the target traffic light; based on the current time point of the target traffic light, obtains the target traffic flow set corresponding to the target traffic light within a preset time window; based on the target traffic flow set, obtains the target time period list of the target traffic light; based on the target time period list, determines the target time cycle list corresponding to the target time period list; based on the target time cycle list and the phase information of the target traffic light, controls the allocation of the green light ratio corresponding to the target traffic light. It can be seen that by considering different time slices and the traffic flow corresponding to each time slice at each time point within the time window, the required time period of the traffic light can be determined, thereby improving the accuracy of determining the required time period of the traffic light and further contributing to a more accurate allocation of the green light ratio.

[0184] Furthermore, this invention also obtains a target time period list for the target traffic lights; determines a target time cycle list corresponding to the target time period list based on the target time period list; and controls the allocation of the green ratio corresponding to the target traffic lights based on the target time cycle list and the phase information of the target traffic lights. It can be seen that, based on the mapping relationship between time cycle and traffic flow, the corresponding time cycle within each target time period can be accurately determined, which is beneficial for more accurate allocation of the green ratio of traffic lights according to the time cycle.

[0185] Example 2

[0186] This second embodiment provides a control device for a traffic light, the device comprising:

[0187] Target time period list acquisition module 1 is used to acquire a target time period list.

[0188] Specifically, the target time period list acquisition module 1 includes:

[0189] The target time period acquisition module 100 is used to acquire a list of target time periods for the target traffic lights.

[0190] Specifically, the target time period acquisition module 100 further includes:

[0191] The time point acquisition module 101 is used to acquire the current time point of the target traffic light.

[0192] Specifically, the target traffic light is the traffic light corresponding to the target road segment determined by the user.

[0193] The target traffic flow acquisition module 103 is used to acquire the target traffic flow set corresponding to the target traffic light within a preset time window based on the current time of the target traffic light.

[0194] In one specific embodiment, the preset time window is a time period constructed with the current time point as the end point of the time period and a set time point as the start point of the time period; wherein, those skilled in the art set the initial time point according to time requirements, which will not be elaborated here; it can be seen that when the time points in the time window are continuously superimposed, the traffic flow data can be increased, thereby improving the accuracy of determining the required time period in the traffic light, which in turn helps to allocate the green light ratio of the traffic light more accurately.

[0195] In another specific embodiment, the preset time window is a time period constructed with the current time point as the starting point of the time period and a set time span as the length of the time period. The set time span ranges from 30 to 60 days, and preferably, the set time span is 30 days. It can be seen that as the time window slides continuously, the proportion of newly added traffic flow data in all traffic flow data within the time window can be made more reasonable, the required time period changes in the traffic lights can be determined, and thus the allocation of the green light ratio of the traffic lights can be more accurate.

[0196] Specifically, the preset time window includes one or more preset time points, wherein the value range of each preset time point is 1-2 days.

[0197] Preferably, the value of each preset time point is 1 day.

[0198] Specifically, the target traffic flow set includes a list of preset traffic flows corresponding to all preset time points.

[0199] Specifically, the target traffic flow acquisition module 103 also includes:

[0200] Target lane ID acquisition module 1031, the target lane ID acquisition module 1031 is used to acquire the target lane ID list C={C1, C2, ..., C...} of the target traffic light. t , ..., C k}, C tLet t be the ID of the t-th target lane of the target traffic light, where t = 1...k, and k is the number of target lanes of the target traffic light.

[0201] Furthermore, the number of exit lanes corresponding to the target lane ID is t-1.

[0202] Furthermore, the target lane ID is a unique identifier corresponding to any lane entering the target intersection.

[0203] Furthermore, the preset time slice ranges from 5 to 10 minutes, and preferably, the preset time slice is 10 minutes.

[0204] The first initial traffic flow acquisition module 1033 is used to acquire the first initial traffic flow set H corresponding to C based on C. 0 ={H 0 1, H 0 2, ..., H 0 γ H 0 ξ}, H 0 γ ={H 0 γ1 H 0 γ2 H 0 γi H 0 γm}, H 0 γi Let y be the traffic flow in the i-th preset time slice of the γ-th lane driving dimension corresponding to C; γ = 1, 2, ..., ξ; i = 1, 2, ..., m, where m is the number of preset time slices within the preset time point.

[0205] Preferably, the lane driving dimensions include: driving dimensions where vehicles can turn left, driving dimensions where vehicles can go straight, driving dimensions where vehicles can make a U-turn, and driving dimensions where vehicles can turn right.

[0206] Assume a traffic flow acquisition module 1035, the preset traffic flow acquisition module 1035 is used to acquire traffic flow based on H 0 Obtain the preset traffic flow list A = {A1, A2, ..., A...} i , ..., A m}, A i The preset traffic flow rate is the preset traffic flow rate within the i-th preset time segment.

[0207] Furthermore, A i Meets the following conditions:

[0208] A i=∑ ξ γ=1 H 0 γi .

[0209] The target time period acquisition module 105 is used to acquire a target time period list of the target traffic lights based on the target traffic flow set.

[0210] Specifically, the target time period list includes several target time periods, wherein the target time period is characterized as the time period used for the green light ratio allocation of the target traffic lights, such as the morning peak time period, the evening peak time period, and the off-peak time period.

[0211] Specifically, the target time period acquisition module 105 further includes:

[0212] The first traffic flow acquisition module 1051 is used to acquire the first traffic flow list of the target traffic light when the number of preset time points within the preset time window is not greater than the set threshold number of time points.

[0213] Specifically, the first traffic flow list is a single preset traffic flow list.

[0214] Specifically, the threshold number of set time points is consistent with the value of a single preset time point, which will not be elaborated here.

[0215] The first execution module 1053 is used to obtain the target time period list based on the first traffic flow list.

[0216] Specifically, the first execution module 1053 further includes:

[0217] The first time priority acquisition module 10531 is used to acquire the first time priority list B of the target traffic light based on the first traffic flow list. 0 ={B 0 1, B 0 2, ..., B 0 x , ..., B 0 p}, B 0 x Let x be the time priority corresponding to the x-th first time interval, where x = 1, 2, ..., p, and p is the number of first time intervals. The first time interval includes M... 0 x A series of preset time slices.

[0218] Preferably, B 0x Meets the following conditions:

[0219] B 0 x =A 0 x ×M0x, where A 0 x The maximum first traffic flow rate within a preset time slice in the xth first time interval.

[0220] Preferably, ∑ p x=1 M x =m and M0x≥M0, where M0 is the set threshold for the number of time slices and S0≥3. Those skilled in the art know that a preset time period threshold can be set according to actual needs, and will not be elaborated here.

[0221] The above-mentioned method can reflect the changes in traffic flow during a certain period of the day by using traffic flow and time slices, thereby improving the accuracy of determining the time period required for traffic lights, which in turn facilitates a more accurate allocation of the green light ratio for traffic lights.

[0222] The second time priority acquisition module 10533 is used to acquire time priority based on B. 0 Obtain the second time priority set B = {B1, B2, ..., B} z}, B z Let z be the z-th second time priority list, where z is the number of second time priority lists and z≥2.

[0223] The key traffic flow acquisition module 10535 is used to acquire traffic flow based on B. z , obtain B z Corresponding key traffic flow S z , of which S z Meets the following conditions:

[0224] S z =∑ p x=1 (A) z x ×M z x ), where A z x M represents the maximum first traffic flow within the preset time slice of the x-th second time interval corresponding to the z-th second time priority list. z x This represents the number of preset time slices within the x-th second time interval corresponding to the z-th second time priority list.

[0225] Furthermore, prior to the key traffic flow acquisition module 10535, a third execution module 10534 is also included, which is used to, when z=1, based on B 0 Obtaining S1 can be understood as: based on B 0 Using S z The method for obtaining S1 is not detailed here.

[0226] The first determining module 10537 is used when |S z -S z-1 When |≤ΔS0, B z The corresponding second time interval is taken as the target time period of the target traffic light.

[0227] The second determining module 10539 is used when |S z -S z-1 When |>ΔS0, obtain B z The corresponding third time priority set B zj ={B z+1 B z+2 , ..., B z+j}, until |S z+j -S z+j-1 |≤ΔS0 so that B z+j The corresponding second time interval is taken as the target time period of the target traffic light, where B z+j For B z The corresponding j-th third time priority list, where j is B z The number of corresponding third time priority lists is j≥1.

[0228] The above-mentioned system can reflect the changes in traffic flow during a certain period of the day through traffic flow and time slices, and adjust the length of the time slice according to the traffic flow and time slices, which further improves the accuracy of determining the time slice required for traffic lights, and thus helps to allocate the green light ratio of traffic lights more accurately.

[0229] The second traffic flow acquisition module 1055 is used to acquire the second traffic flow set of the target traffic light when the number of preset time points within the preset time window is greater than the set threshold number of time points.

[0230] Specifically, the second traffic flow set includes several second traffic flow lists, wherein each second traffic flow list is a single preset traffic flow list.

[0231] The second execution module 1057 is used to obtain the target time period list based on the second traffic flow set.

[0232] Specifically, the second execution module 1057 also includes:

[0233] The first acquisition module 10571 acquires data for the second traffic flow set D={D1, D2, ..., D...}. r , ..., D g}, D r ={D r1 D r2 , ..., D ri , ..., D rm}, D ri Let r be the second traffic flow corresponding to the i-th preset time slot in the r-th preset time point, where r = 1, 2, ..., g, and g is the number of preset time points.

[0234] Intermediate traffic flow acquisition module 10573, the intermediate traffic flow acquisition module 10573 is used to acquire the intermediate traffic flow list U={U1, U2, ..., U...} corresponding to D based on D. i , ..., U m}, U i This represents the intermediate traffic flow corresponding to the i-th preset time slice.

[0235] Specifically, U i Meets the following conditions:

[0236] U i =(∑ g r=1 D ri ) / g.

[0237] The second acquisition module 10575 is used to acquire the target time period according to U.

[0238] Specifically, the execution process of the second acquisition module 10575 can refer to the execution process of the first execution module 1053, and will not be repeated here.

[0239] The target time period list acquisition module 200 is used to determine the target time period list corresponding to the target time period list based on the target time period list.

[0240] Specifically, the target time period list acquisition module 200 includes:

[0241] First data acquisition module 201, the first data acquisition module 201 is used to acquire target

[0242] The preset time period and target traffic flow set corresponding to the traffic light, wherein the preset time period is characterized by the green light time of all phases corresponding to the target traffic light in a preset manner. Those skilled in the art know that the preset time period can be set according to actual needs, and will not be elaborated here.

[0243] The first mapping table acquisition module 202 is used to obtain the mapping table based on the mapping table.

[0244] The preset time period and the target traffic flow set are used to obtain a first target time period mapping table.

[0245] Specifically, the first mapping table acquisition module 202 includes:

[0246] The time limit acquisition module 2021 is used to acquire the upper limit value of the time corresponding to the preset time period value and the lower limit value of the time corresponding to the preset time period value.

[0247] Traffic flow limit acquisition module 2022, the traffic flow limit acquisition module 2022 is used for...

[0248] Based on the target traffic flow set, the maximum traffic flow and the minimum traffic flow at the current time point are obtained. Those skilled in the art are familiar with the existing techniques for obtaining the minimum and maximum traffic flow values, which will not be elaborated here.

[0249] The first construction module 2023 is configured to, according to the time...

[0250] The first target time period mapping table is constructed by using the upper time limit, the lower time limit, the maximum traffic flow, and the minimum traffic flow. This can be understood as follows: the first target time period mapping table is a mapping table that satisfies a first mapping relationship between any traffic flow and any time point in a preset time period based on the upper time limit, the lower time limit, the maximum traffic flow, and the minimum traffic flow, wherein the first mapping relationship is a linear mapping relationship.

[0251] The first execution module 203 is used to obtain the target time period list based on the first target time period mapping table and the target time period list.

[0252] Specifically, the first-time execution module 203 also includes:

[0253] Time period acquisition module 2031, the time period acquisition module 2031 is used to acquire the target time period list G={G1, G2, ..., G...} x , ..., G p}, Gx This is the xth target time period.

[0254] Designated traffic flow acquisition module 2032, the designated traffic flow acquisition module 2032 is used to acquire traffic flow based on G x Get G x The corresponding specified traffic flow L x , where L x Meets the following conditions:

[0255] L x =(∑ M0x y=1 L xy / M0x), L xy For G x The traffic flow for the corresponding y-th preset time slot, y=1……M0x.

[0256] The first cycle acquisition module 2033 is used to obtain L. x Get G x The corresponding target time period T x , among which, T x Meets the following conditions:

[0257] T x =(L x -L 0 1) T 0 2 / (L) 0 2-L 0 1) + (L) 0 2-L x )T 0 1 / (L) 0 2-L 0 1)

[0258] Among them, T 0 1 represents the lower limit of the time, L 0 1 represents the minimum traffic flow, T 0 2 represents the upper limit of the time, L 0 2 represents the maximum traffic flow.

[0259] Furthermore, the target time period is the green light duration of all phases corresponding to the target traffic light within any target time period.

[0260] The traffic light control module 300 is used to control the allocation of the green light ratio corresponding to the target traffic light according to the target time period list and the phase information of the target traffic light. Those skilled in the art are familiar with any existing method for determining the green light ratio of a traffic light based on the target time period list and the phase information of the target traffic light, and it will not be described in detail here.

[0261] In one specific embodiment, the target time period list acquisition module 200 further includes:

[0262] The second data acquisition module 201 is used to acquire the preset time period and target traffic flow set corresponding to the target traffic light. The structure of the first data acquisition module 201 in this embodiment is the same as that of the previous first data acquisition module 201, and will not be described again here.

[0263] The second mapping table acquisition module 202 is used to obtain the mapping table based on the mapping table.

[0264] The preset time period and the target traffic flow set are used to obtain a second target time period mapping table.

[0265] Specifically, the second mapping table acquisition module 202 also includes:

[0266] The time limit acquisition module 2021 is used to acquire the upper limit value of the time corresponding to the preset time period value and the lower limit value of the time corresponding to the preset time period value.

[0267] Traffic flow limit acquisition module 2022, the traffic flow limit acquisition module 2022 is used for...

[0268] Based on the target traffic flow set, the maximum traffic flow and the minimum traffic flow at the current time point are obtained. Those skilled in the art are familiar with the existing techniques for obtaining the minimum and maximum traffic flow values, which will not be elaborated here.

[0269] The second construction module 2023 is configured to, according to the time...

[0270] The second target time period mapping table is constructed using the upper time limit, the lower time limit, the maximum traffic flow, and the minimum traffic flow. This can be understood as follows: the second target time period mapping table is a mapping table that satisfies a second mapping relationship between any traffic flow and any time point in a preset time period based on the upper time limit, the lower time limit, the maximum traffic flow, and the minimum traffic flow. The second mapping relationship is a non-linear mapping relationship.

[0271] The second time execution module 203 is used to obtain the target time period list based on the second target time period mapping table and the target time period list.

[0272] Specifically, the second time execution module 203 also includes:

[0273] Time period acquisition module 2031, the time period acquisition module 2031 is used to acquire the target time period list G={G1, G2, ..., G...} x , ..., G p}, G x This is the xth target time period.

[0274] Designated traffic flow acquisition module 2032, the designated traffic flow acquisition module 2032 is used to acquire traffic flow based on G x Get G x The corresponding specified traffic flow L x , where L x Meets the following conditions:

[0275] L x =(∑ M0x y=1 L xy / M0x), L xy For G x The traffic flow for the corresponding y-th preset time slot, y=1……M0x.

[0276] The second cycle acquisition module 2033 is used to obtain L. x Get G x The corresponding target time period T x , among which, T x Meets the following conditions:

[0277] , among which, T 0 1 represents the lower limit of the time, T 0 2 is what

[0278] The upper limit of the time, L 0 2 represents the maximum traffic flow, L x 2 is G x The corresponding maximum traffic flow is defined as follows: α is the first adjustment parameter and α∈(0,+∞], and β is the second adjustment parameter and β∈(1,+∞).

[0279] In another embodiment, the target time period list acquisition module 200 further includes:

[0280] The third data acquisition module 201 is used to acquire data according to the data...

[0281] The target time period list retrieves the first target time period and the second target time period corresponding to the target traffic light.

[0282] Specifically, the first target time period includes a first sub-time period and a second sub-time period.

[0283] The first sub-time period is the morning peak period, and the second sub-time period is the evening peak period. Those skilled in the art know any method for obtaining the morning and evening peak periods, so it will not be described in detail here.

[0284] Furthermore, the second target time period is any target time period other than the first target time period in the target time period list.

[0285] The fourth data acquisition module 202 is used to acquire data according to the data...

[0286] A first target time period and a second target time period are defined, and the first target traffic flow corresponding to the first target time period and the second target traffic flow corresponding to the second target time period are obtained.

[0287] Specifically, the first target traffic flow is the average traffic flow of all preset time slices corresponding to the first target time period.

[0288] Specifically, the second target traffic flow is the average traffic flow of all preset time slices corresponding to the second target time period.

[0289] The fifth data acquisition module 203 is used to acquire data according to the data...

[0290] The first target traffic flow and the second target traffic flow are used to determine the target time period list.

[0291] Specifically, the fifth data acquisition module 203 also includes:

[0292] The sixth data acquisition module 2031 is used to acquire pre-...

[0293] Given a time period and a target traffic flow set, the sixth data acquisition module 2031 in this embodiment is consistent with step S201 in the first embodiment, and will not be described again here.

[0294] The target traffic flow difference acquisition module 2032 is used to acquire the target traffic flow difference based on the first target traffic flow and the second target traffic flow.

[0295] The third mapping table acquisition module 2033 is used when...

[0296] When the target traffic flow difference is not less than the preset traffic flow difference threshold, a first target time period mapping table is obtained according to the preset time period and the target traffic flow set. The structure of the third mapping table acquisition module 2033 in this embodiment is the same as that of the second mapping table acquisition module 202 in the first embodiment, and will not be described again here.

[0297] The third time execution module 2034 is used to obtain the target time period list according to the first target time period mapping table and the target time period list. The structure of the third time execution module 2034 in this embodiment is the same as that of the third time execution module 203 in the first embodiment, and will not be described again here.

[0298] The fourth mapping table acquisition module 2035 is used when...

[0299] When the target traffic flow difference is less than the preset traffic flow difference threshold, a second target time period mapping table is obtained according to the preset time period and the target traffic flow set. The structure of the fourth mapping table acquisition module 2035 in this embodiment is the same as that of the second mapping table acquisition module 202 in the second embodiment, and will not be described again here.

[0300] The fourth time execution module 2036 is used to obtain the target time period list according to the second target time period mapping table and the target time period list. The structure of the fourth time execution module 2036 in this embodiment is the same as that of the second time execution module 203 in the second embodiment, and will not be described again here.

[0301] The first acquisition module 2 is used to acquire a preset phase list and a first designated lane list corresponding to the target traffic light.

[0302] Specifically, the preset phase list includes: a plurality of preset phase identifiers and a second designated lane list corresponding to each preset phase identifier, wherein the second designated lane list includes: the second designated lane ID corresponding to the preset phase identifier and the lane driving dimension corresponding to the second designated lane ID.

[0303] Specifically, the first designated lane list includes: the first designated lane IDs corresponding to several target traffic lights, and the lane driving dimension and designated intersection duration corresponding to each first designated lane ID.

[0304] Preferably, the lane driving dimension includes one or more combinations of the following: a driving dimension in which a vehicle can turn left, a driving dimension in which a vehicle can go straight, a driving dimension in which a vehicle can make a U-turn, and a driving dimension in which a vehicle can turn right.

[0305] The target phase list acquisition module 3 is used to acquire the target phase list of the target traffic light based on the preset phase list and the first designated lane list.

[0306] Specifically, the target phase list acquisition module 3 also includes:

[0307] The first phase list acquisition module 31 is used to obtain the first phase list based on the...

[0308] Given the preset phase list and the first designated lane list, obtain the first phase list.

[0309] Specifically, the first phase list acquisition module 31 also includes:

[0310] Intermediate phase set acquisition module 311, the intermediate phase set acquisition module 311 is used to acquire intermediate phase set ZJ={ZJ1, ZJ2, ..., ZJ...} σ ..., ZJ δ}, ZJ σ Let σ be the σ-th intermediate phase list, where σ = 1...δ, and δ is the number of intermediate phase lists and δ ≤ δ. 0 δ 0 The number of preset phases in the preset phase list.

[0311] Specifically, ZJ1 is the preset phase list.

[0312] Specifically, ZJ σ For ZJ σ-1 Delete ZH σ-1 The list that follows.

[0313] Preset specified lane set acquisition module 313, the preset specified lane set acquisition module 313 is used to acquire the preset specified lane set CD={CD1, CD2, ..., CD...} σ , ..., CD δ}, CD σ For ZJ σ The corresponding preset list of designated lanes.

[0314] Specifically, CD1 is the first designated lane list.

[0315] Specifically, CD σ For CD σ-1 Delete ZH σ-1 The list following the corresponding second designated lane list.

[0316] The first phase list acquisition module 315 is used for...

[0317] Based on ZJ and CD, obtain the first phase list ZH = {ZH1, ZH2, ..., ZH}. σ ..., ZH δ}, ZH σ For ZJ in the first phase list σ The corresponding first phase.

[0318] Specifically, the first phase list acquisition module 315 also includes:

[0319] Priority list acquisition module, the priority list acquisition module is used to obtain priority based on ZJ σ-1 and CD σ-1 Get ZJ σ-1 The corresponding priority list, wherein the ZJ σ-1 The corresponding priority list includes several ZJs. σ-1 A preset phase priority corresponding to a preset phase identifier, wherein the preset phase priority is the number of times the second designated lane ID is consistent with the first designated lane ID in the second designated lane list corresponding to the preset phase identifier.

[0320] Phase acquisition module, the phase acquisition module is used to traverse ZJ σ-1 Corresponding priority list

[0321] And from ZJ σ-1 The preset phase corresponding to the highest preset phase priority is obtained from the priority list and used as ZH. σ .

[0322] Phase list determination module 33, the phase list determination module 33 is used to determine the phase list based on the first

[0323] The intermediate phase list is used to obtain the target phase list.

[0324] Specifically, the phase list determination module 33 also includes:

[0325] Oncoming traffic flow acquisition module 331 is used in the first...

[0326] Within a sub-time period or the second sub-time period, the first and second opposite traffic flows are obtained; and the first and second opposite traffic flows are the traffic flows corresponding to the lanes of relative travel.

[0327] Furthermore, the first oncoming traffic flow is the average traffic flow in the lane corresponding to the first oncoming traffic flow during the first sub-time period or the second sub-time period.

[0328] Furthermore, the second opposing traffic flow is the average traffic flow in the lane corresponding to the second opposing traffic flow during the first sub-time period or the second sub-time period.

[0329] Phase generation module 333, the phase generation module 333 is used to generate phases based on the first opposing phases.

[0330] The traffic flow and the second oncoming traffic flow are used to obtain the target phase list.

[0331] Specifically, the phase generation module 333 also includes:

[0332] The first generation module is used when ΔT CL <ΔT 0 CL When, the first intermediate phase list is used as the target phase list, where ΔT 0 CL This is the preset adjustment phase time threshold.

[0333] Furthermore, ΔT 0 CL The value range is 5~8s, preferably ΔT. 0 CL The range of values

[0334] It lasts for 5 seconds.

[0335] Specifically, ΔT CL Meets the following conditions:

[0336] CL1 represents the first oncoming traffic flow, and CL2 represents the second...

[0337] Oncoming traffic flow, CL max T is the maximum value among CL1 and CL2. CL max For CL max The corresponding time period, where T CL max The method for obtaining the time period can be referred to in step S200, and will not be repeated here.

[0338] The second generation module is used when ΔT CL ≥ΔT 0 CL At that time, from the remaining phase

[0339] The preset phases that meet the straight-ahead conditions are obtained from the list and inserted into the first intermediate phase list to generate the second intermediate phase list, and the second intermediate phase list is used as the target phase list.

[0340] Traffic light control module 4 is used to control the allocation of green light ratios corresponding to target traffic lights according to the target time period list and the target phase list.

[0341] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0342] Get the list of target time periods;

[0343] Obtain the preset phase list and the first designated lane list corresponding to the target traffic light;

[0344] Based on the preset phase list and the first designated lane list, obtain the target phase list of the target traffic light;

[0345] Based on the target time period list and the target phase list, control the allocation of the green ratio corresponding to the target traffic lights.

[0346] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0347] Get the list of target time periods;

[0348] Obtain the preset phase list and the first designated lane list corresponding to the target traffic light;

[0349] Based on the preset phase list and the first designated lane list, obtain the target phase list of the target traffic light;

[0350] Based on the target time period list and the target phase list, control the allocation of the green ratio corresponding to the target traffic lights.

[0351] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0352] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described functional units and modules are used as examples. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be determined as different functional units or modules to complete all or part of the functions described above.

[0353] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A method for controlling a traffic light, characterized in that, The method includes the following steps: Get the list of target time periods; Obtain the preset phase list and the first designated lane list corresponding to the target traffic light, including the following steps: S201. Obtain the preset time period and target traffic flow set corresponding to the target traffic light; S202. Obtain the second target based on the preset time period and the target traffic flow set. The time cycle mapping table, in step S202, also includes the following steps: S2021. Obtain the upper limit value of the time corresponding to the preset time period value and the lower limit value of the time corresponding to the preset time period value; S2022. Based on the target traffic flow set, obtain the maximum traffic flow corresponding to the current time point. The minimum traffic flow corresponding to the current time point; S2023, based on the upper time limit, the lower time limit, the maximum traffic flow, and... The minimum traffic flow is used to construct the second target time period mapping table; S203. Obtain the target time period list based on the second target time period mapping table and the target time period list. Step S203 further includes the following steps: S2031. Obtain the target time period list G={G1, G2, ..., G...} x , ..., G p }, G x For the xth target time period; S2032, according to G x Get G x The corresponding specified traffic flow L x , where L x The following conditions must be met: L x =(∑ M0x y=1 L xy / M0x), Lxy is G x The traffic flow corresponding to the y-th preset time slot, y=1……M0x; S2033, according to L x Get G x The corresponding target time period T x , among which, T x Meets the following conditions: , among which, T 0 1 represents the lower limit of the time, T 0 2 is what The upper limit of the time, L 0 2 represents the maximum traffic flow, L x 2 is G x The corresponding maximum traffic flow is defined as follows: α is the first adjustment parameter and α∈(0,+∞], β is the second adjustment parameter and β∈(1,+∞]; Based on the preset phase list and the first designated lane list, obtain the target phase list of the target traffic light; Based on the target time period list and the target phase list, control the allocation of the green ratio corresponding to the target traffic lights.

2. The traffic light control method according to claim 1, characterized in that, The process of obtaining the target phase list of the target traffic light based on the preset phase list and the first designated lane list further includes the following steps: Based on the preset phase list and the first designated lane list, obtain the first intermediate phase. Bit list; Based on the first intermediate phase list, the target phase list is obtained.

3. The traffic light control method according to claim 2, characterized in that, Obtaining the target phase list based on the first intermediate phase list also includes the following steps: Within the first sub-time period or the second sub-time period, obtain the first pair corresponding to the first lane. The traffic flow in the first target time period includes the traffic flow in the second lane and the traffic flow in the second opposite direction. The first target time period includes the first sub-time period and the second sub-time period. The first sub-time period is the morning peak period and the second sub-time period is the evening peak period. A target phase list is obtained based on the first oncoming traffic flow and the second oncoming traffic flow.

4. The traffic light control method according to claim 3, characterized in that, The first oncoming traffic flow is the average traffic flow in the first lane during the first sub-time period or the second sub-time period.

5. The traffic light control method according to claim 3, characterized in that, The second opposing traffic flow is the average traffic flow in the second lane during the first or second sub-time period.

6. The traffic light control method according to claim 3, characterized in that, The first lane and the second lane are opposite lanes.

7. A control device for a traffic light, characterized in that, The device includes A target time period list acquisition module, which is used to acquire a target time period list; The first acquisition module is used to acquire a preset phase list corresponding to the target traffic light and a first designated lane list corresponding to the target traffic light. The target time period list acquisition module further includes: The second data acquisition module is used to acquire the preset time period and target traffic flow set corresponding to the target traffic light. The second mapping table acquisition module is used to obtain the mapping table according to the preset... Given the time period and the target traffic flow set, a second target time period mapping table is obtained, wherein the second mapping table acquisition module further includes: A time limit acquisition module is used to acquire the upper time limit value corresponding to the preset time period value and the lower time limit value corresponding to the preset time period value. A traffic flow limit acquisition module, the traffic flow limit acquisition module being used to obtain the target... Traffic flow set, obtain the maximum traffic flow and the minimum traffic flow at the current time point; The second construction module is configured to, based on the time upper limit value, the... The lower time limit, the maximum traffic flow, and the minimum traffic flow are used to construct the second target time period mapping table; A second time execution module is configured to obtain the target time period list based on the second target time period mapping table and the target time period list. The second time execution module further includes: The time period acquisition module is used to acquire a target time period list G={G1, G2, ..., G...} x , ..., G p }, G x For the xth target time period; The designated traffic flow acquisition module is used to obtain traffic flow based on G. x Get G x The corresponding specified traffic flow L x , where L x The following conditions must be met: L x =(∑ M0x y=1 L xy / M0x), L xy For G x The traffic flow corresponding to the y-th preset time slot, y=1……M0x; The second cycle acquisition module is used to obtain information based on L. x Get G x The corresponding target time period T x , among which, T x Meets the following conditions: , among which, T 0 1 represents the lower limit of the time, T 0 2 is what The upper limit of the time, L 0 2 represents the maximum traffic flow, L x 2 is G x The corresponding maximum traffic flow is defined as follows: α is the first adjustment parameter and α∈(0,+∞], β is the second adjustment parameter and β∈(1,+∞]; The target phase list acquisition module is used to acquire the target phase list of the target traffic light based on the preset phase list and the first designated lane list. A traffic light control module is used to control the allocation of the green light ratio corresponding to the target traffic light according to the target time period list and the target phase list.

8. The control device for a traffic light according to claim 7, characterized in that, The target phase list acquisition module includes: The first phase list acquisition module is configured to, according to the... From the preset phase list and the first designated lane list, obtain the first intermediate phase list; The phase list determination module is used to determine the phase list based on the first intermediate phase. The list retrieves the target phase list.

9. The control device for a traffic light according to claim 8, characterized in that, Phase list determination module: The oncoming traffic flow acquisition module is used in the first sub-time. Within a first target time period or a second sub-time period, the first oncoming traffic flow corresponding to the first lane and the second oncoming traffic flow corresponding to the second lane are obtained. The first target time period includes a first sub-time period and a second sub-time period. The first sub-time period is the morning peak period and the second sub-time period is the evening peak period. A phase generation module is used to obtain a target phase list based on the first oncoming traffic flow and the second oncoming traffic flow.

10. The control device for a traffic light according to claim 9, characterized in that, The first oncoming traffic flow is the average traffic flow in the first lane during the first sub-time period or the second sub-time period.

11. The control device for a traffic light according to claim 9, characterized in that, The second opposing traffic flow is the average traffic flow in the second lane during the first or second sub-time period.

12. The control device for a traffic light according to claim 9, characterized in that, The first lane and the second lane are opposite lanes.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the traffic light control method as described in any one of claims 1 to 6.

14. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the traffic light control method as described in any one of claims 1 to 6.