Traffic control method and device, computer equipment and storage medium
Through the method of combining cameras and virtual coils, traffic flow data is obtained to determine cycle saturation, which solves the problem of low accuracy of voltage accounting data in traditional signal control systems, improves the accuracy and sensitivity of traffic control, and reduces costs.
Patent Information
- Application Number
- CN202410976964.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-20
AI Technical Summary
The accuracy of the occupancy data collected in the traditional signal control system is low, resulting in low traffic control accuracy, especially in abnormal scenarios where vehicle occupancy cannot be effectively detected.
Using the method of combining cameras and virtual coils, the traffic flow data of vehicles is obtained when the current cycle of the traffic light enters the green light countdown. The cycle saturation is determined through the camera data and virtual coil data, and based on this, the cycle control data of the next cycle is generated to Precisely control traffic lights.
It improves the accuracy of traffic flow data and the accuracy and sensitivity of traffic control, reduces construction costs, and adapts to different traffic flow conditions.
Smart Images

Figure CN118675341A
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent transportation technology, and in particular to a traffic control method, device, computer equipment and storage medium. Background Art
[0002] The control scheme of the traditional signal control system is to collect data through physical coils, geomagnetic, video, radar and other collection equipment, and collect a cross-section of occupancy data, and then generate a traffic light control scheme based on the occupancy data. The disadvantages of this scheme are: in abnormal scenarios (when starting at a red light, the first car does not occupy the physical coil; or the traffic is slow or even temporarily blocked, but the physical coil happens to be between the vehicles), the occupancy detection is empty, which makes the collected occupancy data low in accuracy, resulting in low traffic control precision.
[0003] There is currently no effective solution to the problem that the accuracy of the collected occupancy data in related technologies is low, resulting in low traffic control precision. Summary of the invention
[0004] In this embodiment, a traffic control method, apparatus, computer device and storage medium are provided to solve the problem in the related art that the accuracy of the collected occupancy data is low, resulting in low traffic control precision.
[0005] In a first aspect, a traffic control method is provided in this embodiment, which is applied to a traffic control system, wherein the traffic control system includes a camera, a virtual coil, a signal machine, a processor, and a traffic light; the virtual coil is set in a detection area of a road; the signal machine is connected to the camera, the processor, and the traffic light respectively; the method is applicable to the processor; the method includes:
[0006] When the current cycle of the traffic light enters the green light countdown, the traffic flow data of the vehicle reported by the camera is obtained; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area;
[0007] Determine the cycle saturation of the current cycle according to the camera data and the virtual coil data; the cycle saturation corresponds to the traffic light of one phase;
[0008] generating cycle control data of the next cycle based on the cycle saturation;
[0009] After the green light of the traffic light ends, the traffic light is controlled in the signal based on the cycle control data.
[0010] In some embodiments, determining the cycle saturation of the current cycle according to the camera data and the virtual coil data includes:
[0011] Determining lane saturation of the current cycle based on the camera data and the virtual coil data;
[0012] Based on the lane saturation, determining the phase saturation of the current cycle;
[0013] Based on the phase saturation, a cycle saturation of the current cycle is determined.
[0014] In some of these embodiments, the camera includes a first camera and a second camera;
[0015] Determining lane saturation according to the camera data and the virtual coil data includes:
[0016] determining a first lane saturation according to camera data and virtual coil data corresponding to the first camera within a first time threshold before the end of a current cycle;
[0017] determining a second lane saturation according to camera data and virtual coil data corresponding to the second camera within a second time threshold before the end of the current cycle;
[0018] The lane saturation of the current cycle is determined based on the first lane saturation and the second lane saturation.
[0019] In some embodiments, determining the phase saturation of the current cycle based on the lane saturation includes:
[0020] Taking the maximum lane saturation in the first preset cycle as the phase saturation of the current cycle;
[0021] Alternatively, the average of the lane saturation within the first preset period is taken as the phase saturation of the current period.
[0022] In some embodiments, generating cycle control data of a next cycle based on the cycle saturation includes:
[0023] The cycle saturation is input into a pre-trained cycle control model to obtain cycle control data for the next cycle.
[0024] In some of the embodiments, the virtual coil length is less than an average safety distance between vehicles.
[0025] In some embodiments, the method further comprises:
[0026] After determining the cycle saturation of the current cycle, the regional average saturation of the current cycle is determined based on the cycle saturation; the regional average saturation corresponds to the plurality of traffic lights.
[0027] In a second aspect, a traffic control device is provided in this embodiment, which is applied to a traffic control system, wherein the traffic control system includes a camera, a virtual coil, a signal machine, a processor, and a traffic light; the virtual coil is arranged in a detection area of a road; the signal machine is respectively connected to the camera, the processor, and the traffic light; the device is applicable to the processor; the device includes:
[0028] An acquisition module is used to acquire the traffic flow data of the vehicle reported by the camera when the current cycle of the traffic light enters the green light countdown; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area;
[0029] A first calculation module, used for determining the cycle saturation of the current cycle according to the camera data and the virtual coil data; the cycle saturation corresponds to the traffic light of one phase;
[0030] A second calculation module, used for generating cycle control data of the next cycle based on the cycle saturation;
[0031] An execution module is used to control the traffic light based on the periodic control data in the signal machine after the green light of the traffic light ends.
[0032] In a third aspect, a computer device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the traffic control method described in the first aspect when executing the computer program.
[0033] In a fourth aspect, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the traffic control method described in the first aspect is implemented.
[0034] Compared with the related art, the traffic control method, apparatus, computer equipment and storage medium provided in the present embodiment obtain traffic flow data of vehicles reported by the camera by counting down to the green light in the current cycle of the traffic light; the traffic flow data includes camera data collected by the camera and virtual coil data reported by the virtual coil; the vehicle is located in the detection area; the cycle saturation of the current cycle is determined according to the camera data and the virtual coil data; the cycle saturation corresponds to a traffic light of one phase; the cycle control data of the next cycle is generated based on the cycle saturation; after the green light of the traffic light ends, the traffic light is controlled in the signal machine based on the cycle control data, which solves the problem of low accuracy of the collected occupancy data and low traffic control accuracy in the related art, improves the accuracy of the traffic flow data, and uses the cycle saturation as an indicator to achieve the improvement of traffic control accuracy and sensitivity.
[0035] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0037] Figure 1 is a structural block diagram of a traffic control system provided by an embodiment of the present application;
[0038] Figure 2 is a flow chart of a traffic control method provided by an embodiment of the present application;
[0039] Figure 3 is a schematic diagram of a detection area provided in an embodiment of the present application;
[0040] Figure 4 is a flowchart of step S221;
[0041] Figure 5 It is a structural block diagram of a traffic control device provided in one embodiment of the present application.
[0042] In the figure: 10, camera; 20, traffic light; 30, processor; 40, traffic light; 210, acquisition module; 220, first calculation module; 230, second calculation module; 240, execution module. DETAILED DESCRIPTION
[0043] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0044] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0045] The method embodiment provided in this embodiment is applied to a traffic control system, such as Figure 1 As shown, the traffic control system includes a camera 10, a virtual coil, a signal machine 20, a processor 30 and a traffic light 40; the virtual coil is set in the detection area of the road; the signal machine 20 is connected to the camera 10, the processor 30 and the traffic light 40 respectively.
[0046] The camera 10, the virtual coil and the traffic light 40 can be set on the road as required; the intersection of the road is divided into a detection area; the virtual coil is set in the detection area; the virtual coil is arranged according to a preset rule, such as Figure 3 As shown in the figure, the shape of the virtual coil can be a rectangle, parallel lines, etc., and there is no restriction on this. Users can manually configure the number of virtual coils and the detection range. When the number of virtual coils reaches a certain amount, the cross-sectional detection is changed to a scene detection with a relatively large depth. Specifically, the minimum length of the virtual coil is configured to be 1 meter. In one direction of the road, there are at least 20 virtual coils by default ( Figure 3 Not all virtual coils are shown in the figure.) When a vehicle occupies a virtual coil, the virtual coil reports virtual coil data to the processor 30; the virtual coil data includes the number of virtual coil occupancy times corresponding to the virtual coil number.
[0047] Among them, the camera 10 can be one or more, and the camera 10 can include a first camera and a second camera; the type of camera 10 used at each intersection may be inconsistent. For example: some intersections have both the first camera and the second camera; some intersections have only the first camera or the second camera. Among them, the first camera can be an electric police camera; the second camera can be a detection camera; the first camera and the second camera can both collect camera data, the difference is: the first camera shoots the rear of the vehicle; the second camera shoots the head of the vehicle; resulting in different representations of the occupancy time in the road section of the detection area; the occupancy state of the first camera during the green light can be expressed as follows: the occupied state indicates that a car is passing, and the non-occupied state indicates that the previous vehicle has passed the intersection, and the next vehicle has not yet arrived. The occupied state of the second camera indicates that a car is passing, and the non-occupied state cannot directly represent that the previous vehicle has passed the intersection, and some vehicles have the possibility of changing lanes after the solid line.
[0048] Among them, the camera data collected by the camera 10 is transmitted to the processor 30 through the signal machine 20; the virtual coil data reported by the virtual coil is transmitted to the processor 30 through the signal machine 20; the camera data and the virtual coil data are collectively referred to as traffic flow data. The method embodiment is executed in the processor 30 to generate the cycle control data of the next cycle; the cycle control data is sent to the signal machine 20 for execution; so that the signal machine 20 controls the traffic light 40 based on the cycle control data after the green light of the traffic light 40 ends. When multiple intersections appear, the traffic flow data of multiple intersections can be involved in the processor 30 to generate the cycle control data of the area of the next cycle; thereby adaptively adjusting the multi-intersection coordination optimization cycle plan.
[0049] The method embodiment provided in this embodiment can be executed in the above-mentioned processor 30. The processor 30 may include one or more sub-processors and a memory for storing data, wherein the processor 30 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA, etc. The above-mentioned processor 30 may also include a transmission device and an input and output device for communication functions. The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the traffic control method in this embodiment. The processor 30 executes various functional applications and data processing by running the computer program stored in the memory, that is, implementing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor 30, and these remote memories may be connected to the processor 30 via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0050] The transmission device is used to receive or send data via a network. The above-mentioned network includes a wireless network provided by a communication provider of the processor 30. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0051] In this embodiment, a traffic control method is provided. Figure 2 is a flow chart of the traffic control method of this embodiment, such as Figure 2 As shown, the process includes the following steps:
[0052] Step S210, when the current cycle of the traffic light enters the green light countdown, the traffic flow data of the vehicle reported by the camera is obtained; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area;
[0053] Step S220, determining the cycle saturation of the current cycle according to the camera data and the virtual coil data; the cycle saturation corresponds to a traffic light of one phase;
[0054] Step S230, generating cycle control data for the next cycle based on the cycle saturation;
[0055] Step S240, after the green light of the traffic light ends, in the traffic light, the traffic light is controlled based on the periodic control data.
[0056] In this embodiment, based on the traffic flow data obtained in the current cycle, the cycle control data of the next cycle is generated, so that the traffic light can control the traffic light based on the cycle control data after the green light of the traffic light ends, thereby achieving the purpose of high-precision and high-sensitivity control of the traffic light.
[0057] Among them, one cycle refers to the time from the end of the green light of the traffic light to the beginning of the green light. The countdown to the green light in the current cycle is used as the time opportunity to obtain the traffic flow data of the vehicle, which greatly reduces the amount of data while ensuring the validity of the traffic flow data. For example: when the traffic light turns green in the current cycle, the traffic flow data of the vehicle reported by the camera can be obtained; or the last time threshold of the traffic light turning green in the current cycle can be obtained, such as: 5 seconds, 3 seconds before the end of the green light, etc., and there is no restriction on this.
[0058] Among them, the phase of the traffic light is arranged according to the lane allocation and traffic rules of different roads. For example, when there are fewer lanes in a certain direction and cannot meet the waiting of turning and straight vehicles, vehicles need to be released according to each entrance. Secondly, the inconsistency and asymmetry of traffic flow also need to be considered. When allocating phases, the green light time in each direction should be reasonably allocated and adjusted to adapt to the different traffic flow conditions. For example, when the traffic flow on the left is asymmetric, the traffic flow can be temporarily stopped when turning left to release left-turning vehicles as much as possible at the same time. In addition, the traffic flow conditions at different distances from the intersection need to be fully considered.
[0059] After acquiring the traffic flow data, the cycle saturation corresponding to the traffic lights of each phase in the current cycle is determined based on the camera data and virtual coil data in the traffic flow data; the saturation is used as a feedback indicator to generate the cycle control data for the next cycle; finally, after the green light of the traffic light ends, the signal machine controls the light colors and corresponding time of the traffic light according to the instructions in the cycle control data. This is different from the traditional definition of saturation in traffic engineering, and can reuse cameras with different uses and installation locations, saving construction and equipment costs; and can improve the control accuracy and sensitivity of traffic.
[0060] The control scheme in the related technology is: collect data through physical coils, geomagnetism, video, radar and other collection equipment, collect a cross-section of occupancy data, and then generate a traffic light control scheme based on the occupancy data. The disadvantages of this scheme are: in abnormal scenarios (when starting at a red light, the first car does not occupy the physical coil; or the traffic is slow or even temporarily blocked, but the physical coil happens to be between the vehicles), the occupancy detection is empty, making the collected occupancy data low in accuracy, resulting in low traffic control accuracy; this scheme requires laying physical coils to record vehicle flow by sensing the changes in the electromagnetic field generated when vehicles pass by, which is costly and easily affected by the environment. In this embodiment, the traffic flow data of the vehicle reported by the camera is obtained by entering the green light countdown in the current cycle of the traffic light; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area; the cycle saturation of the current cycle is determined according to the camera data and the virtual coil data; the cycle saturation corresponds to a traffic light of one phase; the cycle control data of the next cycle is generated based on the cycle saturation; after the green light of the traffic light ends, the traffic light is controlled in the signal machine based on the cycle control data, which solves the problem of low accuracy of the collected pressure data in the related technology, resulting in low traffic control accuracy, improves the accuracy of the traffic flow data, and uses the cycle saturation as an indicator to achieve the improvement of traffic control accuracy and sensitivity. Among them, the virtual coil is set on the lane in advance, and the virtual coil data can be obtained by using the relative position change of the virtual coil and the vehicle; so that this embodiment only needs to build a camera, thereby reducing the construction cost.
[0061] The above steps are described in detail below:
[0062] In some of the embodiments, the virtual coil length is less than an average safety distance between vehicles.
[0063] Specifically, Figure 3 As shown, the detection area of all relevant lanes of the camera, the grid and the blank part are the detection area; the grid part indicates that there is no vehicle occupying the current area, and the blank part indicates that there is a vehicle occupying the current area; the blank part and the grid part can be considered as the location of a virtual coil. In other embodiments, the virtual coil can also be a virtual line segment perpendicular to the lane line and centered.
[0064] For the entrance of an intersection, if the green light duration is g, the vehicle speed at the saturated flow rate is v, and the length of the virtual coil is l loop During the green light period, the vehicle occupies the virtual coil for a period of t.
[0065] Among them, the expression of lane saturation S under saturated flow rate is:
[0066] In the formula, represents the average headway time, and its expression is:
[0067] In the formula, represents the average vehicle length (m), represents the average vehicle speed under saturation, Represents the average safety distance (m), which is about function.
[0068] If the entrance lane passes vehicles at a saturation flow rate S during the green light period, the number of passing vehicles q is: q = gS;
[0069] In the formula, the number of passing vehicles q is corrected using the following empirical formula to improve accuracy; q = [2 + (-7)];
[0070] In the formula, [] is a rounding down symbol.
[0071] Since any part of the vehicle covering the virtual coil will cause the virtual coil to be in a pressed state, the virtual coil occupied time t can be expressed as: By simplifying it, we can get Substituting the relevant formula into the simplified formula above, we can get It can be determined that the length of the virtual coil is linearly positively correlated with the duration of the virtual coil occupation. There will be repeated occupancy, so the length of the virtual coil is set to be smaller than the average safety distance.
[0072] In some embodiments, determining the cycle saturation of the current cycle according to the camera data and the virtual coil data in step S220 includes the following steps:
[0073] Step S221, determining the lane saturation of the current cycle according to the camera data and the virtual coil data;
[0074] Step S222, determining the phase saturation of the current cycle based on the lane saturation;
[0075] Step S223, determining the cycle saturation of the current cycle based on the phase saturation.
[0076] Specifically, each camera has corresponding camera data, including but not limited to vehicle position, vehicle length, vehicle spacing, vehicle speed, virtual coil length, and traffic light information. Virtual coil data includes the number of virtual coil occupancy corresponding to the virtual coil number; the virtual coil data will be aggregated into the processor to calculate the total number of virtual coils and the number of virtual coil occupancy.
[0077] Lane saturation is calculated based on camera data and virtual coil data. It integrates the relevant data of the camera and the virtual coil. The determined lane saturation can involve the degree of traffic dispersion during the green light period, the number of passing vehicles and the subsequent arrival of traffic; then based on the lane saturation, the phase saturation of the current cycle is determined; using lane saturation as an indicator, it can solve the problem of intersection equipment degradation (for example: an intersection may have some entrance lanes with only partial equipment or no equipment installed, and the equipment conditions of different entrance lanes are different, resulting in degradation) to ensure the stability of the overall traffic control.
[0078] In some of the embodiments, the camera includes a first camera and a second camera; in this case, Figure 4 As shown, determining the lane saturation according to the camera data and the virtual coil data in step S221 includes the following steps:
[0079] Step S2211, determining the saturation of the first lane according to the camera data and the virtual coil data corresponding to the first camera within a first time threshold before the end of the current cycle;
[0080] Step S2212, determining the saturation of the second lane according to the camera data and the virtual coil data corresponding to the second camera within a second time threshold before the end of the current cycle;
[0081] Step S2213, determining the lane saturation of the current cycle based on the first lane saturation and the second lane saturation.
[0082] Specifically, it is assumed that the intersection is equipped with both the first camera and the second camera, and it is assumed that there is no equipment degradation at the intersection. First, the saturation of the first lane corresponding to the first camera is calculated; the saturation of the second lane corresponding to the second camera is calculated; and then the saturation of the first lane and the second lane are combined to determine the lane saturation of the current cycle.
[0083] For example: the first time threshold is 3 seconds; 3 seconds before the end of the current cycle, the first lane saturation S1 is determined according to the camera data and the virtual coil data corresponding to the first camera;
[0084]
[0085] In the formula, a represents the number of virtual coils occupied during the i-th upload, b represents the total number of virtual coils, and n1 represents the number of first camera uploads under the green light condition in the current cycle.
[0086] The second time threshold is 2 seconds; 2 seconds before the end of the current cycle, the second lane saturation S2 is determined based on the camera data and virtual coil data corresponding to the second camera; n2 indicates the number of uploads from the second camera in the current cycle with the green light.
[0087] Then the lane saturation S of the current cycle can be expressed as:
[0088]
[0089] If S>1.5; then S=1.5.
[0090] The first time threshold and the second time threshold can be set according to requirements and are not limited thereto.
[0091] Through this embodiment, multiple types of cameras are integrated to improve the accuracy of lane saturation.
[0092] When the camera is the first camera, it is considered that there is only the first camera at the intersection, and it is considered that the intersection has equipment degradation. Then the corresponding first lane saturation is calculated based on the first camera; the first lane saturation is multiplied by the empirical parameter λ as the lane saturation of the current cycle.
[0093] For example: the first time threshold is 3 seconds; 3 seconds before the end of the current cycle, the first lane saturation S1 is determined according to the camera data and the virtual coil data corresponding to the first camera;
[0094]
[0095] The lane saturation S of the current cycle can be expressed as: S=λS1.
[0096] When the camera is the second camera, it is considered that there is only the second camera at the intersection, and it is considered that the intersection has equipment degradation. Then first calculate the corresponding second lane saturation based on the second camera; multiply the second lane saturation by the empirical parameter λ as the lane saturation of the current cycle.
[0097] For example: the second time threshold is 2 seconds; 2 seconds before the end of the current cycle, the second lane saturation S2 is determined according to the camera data and the virtual coil data corresponding to the second camera;
[0098]
[0099] The lane saturation S of the current cycle can be expressed as: S=λS2.
[0100] Therefore, using lane saturation as an indicator can solve the problems caused by the degradation of intersection equipment.
[0101] After the lane saturation is obtained, the lane saturation can be smoothed to improve the accuracy of the lane saturation. For example, the average of the first m cycles is taken as the lane saturation of the current cycle; where m is the number of smoothing cycles set, which can be set according to actual conditions and can be set to 3.
[0102] The smoothing formula is as follows:
[0103]
[0104] By selecting the camera and taking lane saturation as an indicator, the problem of inaccurate data caused by the different cameras on the vehicles at the current intersection can be solved. At the same time, to adapt to social development, if more types of detectors appear, such as lidar and millimeter-wave radar, lane saturation can also be obtained to enter the subsequent steps. The scene is flexible and scalable.
[0105] In some embodiments, determining the phase saturation of the current cycle based on the lane saturation in step S222 includes the following steps:
[0106] The maximum lane saturation in the first preset cycle is used as the phase saturation of the current cycle;
[0107] Alternatively, the average lane saturation in the first preset period is taken as the phase saturation of the current period.
[0108] Specifically, at least two methods are provided to calculate the phase saturation. The first method is: taking the maximum lane saturation within the first preset period (for example, 3 periods) as the phase saturation of the current period; the second method is: taking the average of the lane saturation within the first preset period (for example, 3 periods) as the phase saturation of the current period.
[0109] Through this embodiment, the calculation method of phase saturation can be selected according to needs to meet the needs of different scenarios.
[0110] In some embodiments, determining the cycle saturation of the current cycle based on the phase saturation in step S223 includes the following steps:
[0111] The maximum phase saturation in the second preset cycle is used as the cycle saturation of the current cycle;
[0112] Or, take the average of the phase saturation in the second preset period as the period saturation of the current period.
[0113] Specifically, when the total number of phases is greater than the second preset period, the average of the saturations of the first two phases with the largest saturation is taken as the period saturation. If the total number of phases is the second preset period, the maximum phase saturation is taken as the period saturation. In this embodiment, the second preset period is 4. In other embodiments, the second preset period is not limited.
[0114] Through this embodiment, the calculation method of the period saturation can be selected according to the needs to meet the needs of different scenarios.
[0115] In some embodiments, generating the cycle control data of the next cycle based on the cycle saturation in step S230 includes the following steps:
[0116] The cycle saturation is input into a pre-trained cycle control model to obtain the cycle control data of the next cycle.
[0117] Specifically, the cycle control model is pre-trained based on a large number of training sets; the training sets are the cycle saturation and cycle control scheme of the current cycle obtained at different intersections and different time periods; the cycle control model outputs the cycle control data of the next cycle. The training method of the cycle control model is determined by the network structure of the cycle control model and is not restricted. For example: if the cycle control model is a CNN neural network model, then the training method corresponding to the CNN neural network model can be used.
[0118] After the cycle control model is trained, the cycle saturation is input into the pre-trained cycle control model to optimize the cycle control data of the current cycle, thereby obtaining the cycle control data of the next cycle. The cycle control data includes cycle sub-control data corresponding to one or more traffic lights, so that the cycle control data can control the operation of traffic lights of multiple phases at an intersection.
[0119] Preferably, if the cycle saturation is less than 1, the cycle control data of the current cycle is used as the cycle control data of the next cycle. If the cycle saturation is greater than or equal to 1 (the cycle saturation will be controlled between 1 and 1.5), the cycle control data of the current cycle is optimized to obtain the cycle control data of the next cycle.
[0120] Through this embodiment, the cycle saturation is input as an indicator into a pre-trained cycle control model to obtain the cycle control data for the next cycle; thereby continuously optimizing the cycle control data and presenting it in real time at traffic intersections, thereby improving accuracy while reducing manpower, achieving the dual goals of improved precision and speed and convenience.
[0121] In some of the embodiments, the periodic control data includes periodic sub-control data of one or more traffic lights; each traffic light corresponds to a detection area.
[0122] In some of the embodiments, the traffic control method further comprises the following steps:
[0123] After determining the cycle saturation of the current cycle, the regional average saturation of the current cycle is determined based on the cycle saturation; the regional average saturation corresponds to a plurality of traffic lights.
[0124] Specifically, the regional average saturation can be determined by the following formula:
[0125]
[0126] In the formula, It represents the regional average saturation of each intersection in the region; represents the average saturation of the ith intersection, and n represents the number of intersections in the area.
[0127] If there is a marked lane that does not participate in the regional average saturation calculation, the lane will be ignored when calculating the regional average saturation.
[0128] The average saturation of the area is input into the pre-trained regional control model to obtain the regional control data for the next cycle; thereby automatically outputting coordinated and adaptive traffic control suitable for multiple intersections.
[0129] Among them, the regional control model is pre-trained based on a large number of training sets; among them, the training sets are the average regional saturation obtained at different intersections and different time periods and the regional control plan of the current cycle.
[0130] In some of the embodiments, in order to further improve the accuracy of traffic control, it is necessary to pre-process the traffic flow data.
[0131] Specifically, after obtaining the traffic flow data of the vehicle reported by the camera, the traffic flow data is cleaned; the cleaned traffic flow data is smoothed. For example, a clustering algorithm is used to cluster and group the traffic flow data, remove isolated points, and obtain different cluster sets; then the binary method is used to draw the image, supplement the missing data, and perform data smoothing.
[0132] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0133] The present embodiment is described and illustrated below through preferred embodiments.
[0134] The transportation method of this preferred embodiment is:
[0135] After the vehicle enters the detection area, the camera collects the vehicle's traffic flow data to determine whether the green light has entered the countdown; if not, it returns to continue collecting the vehicle's traffic flow data; if so, the collected traffic flow data is reported to the processor through the signal; the cycle saturation of the current cycle is determined based on the camera data and the virtual coil data; the cycle control data of the next cycle is generated based on the cycle saturation; the cycle control data of the next cycle is sent to the signal; after the green light of the traffic light ends, the traffic light is controlled based on the cycle control data; and during the execution of the cycle control data of the next cycle, the above process is repeated to achieve cycle control of traffic.
[0136] Through this preferred embodiment, the problem of low accuracy of collected occupancy data in related technologies, which leads to low traffic control accuracy, is solved, the accuracy of traffic flow data is improved, and cycle saturation is used as an indicator to improve accuracy, reduce manpower, and achieve improved traffic control accuracy and sensitivity; and it can achieve autonomous collaboration between processors and signal machines, and can continuously optimize cycle plans and present them in real time at traffic intersections.
[0137] In this embodiment, a traffic control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0138] Figure 5 is a structural block diagram of the traffic control device of this embodiment, such as Figure 5 As shown, it is applied to a traffic control system, which includes a camera, a virtual coil, a signal machine, a processor and a traffic light; the virtual coil is set in the detection area of the road; the signal machine is connected to the camera, the processor and the traffic light respectively; the device is suitable for the processor. The device includes:
[0139] The acquisition module 210 is used to acquire the traffic flow data of the vehicle reported by the camera when the current cycle of the traffic light enters the green light countdown; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area;
[0140] A first calculation module 220 is used to determine the cycle saturation of the current cycle according to the camera data and the virtual coil data; the cycle saturation corresponds to a traffic light of one phase;
[0141] A second calculation module 230, used to generate cycle control data of the next cycle based on the cycle saturation;
[0142] The execution module 240 is used to control the traffic light based on the periodic control data in the traffic light after the green light of the traffic light ends.
[0143] Through the above-mentioned device, the problem of low accuracy of collected occupancy data in related technologies, which leads to low traffic control accuracy, is solved, the accuracy of traffic flow data is improved, and the cycle saturation is used as an indicator to improve the control accuracy and sensitivity of traffic.
[0144] In some of the embodiments, the first calculation module 220 is further used to determine the lane saturation of the current cycle based on the camera data and the virtual coil data;
[0145] Based on the lane saturation, determining the phase saturation of the current cycle;
[0146] Based on the phase saturation, a cycle saturation of the current cycle is determined.
[0147] In some of the embodiments, the first calculation module 220 is further used for the camera including a first camera and a second camera; within a first time threshold before the end of the current cycle, determining the first lane saturation according to the camera data corresponding to the first camera and the virtual coil data;
[0148] determining a second lane saturation according to camera data and virtual coil data corresponding to a second camera within a second time threshold before the end of the current cycle;
[0149] The lane saturation of the current cycle is determined according to the first lane saturation and the second lane saturation.
[0150] In some of the embodiments, the first calculation module 220 is further configured to use the maximum lane saturation in the first preset cycle as the phase saturation of the current cycle;
[0151] Alternatively, the average lane saturation in the first preset period is taken as the phase saturation of the current period.
[0152] In some of the embodiments, the second calculation module 230 is further configured to generate cycle control data of the next cycle based on the cycle saturation, including:
[0153] The cycle saturation is input into a pre-trained cycle control model to obtain the cycle control data of the next cycle.
[0154] In some of the embodiments, the virtual coil length is less than an average safety distance between vehicles.
[0155] In some of these embodiments, the traffic control device further includes a third computing module;
[0156] The third calculation module is also used to determine the regional average saturation of the current cycle based on the cycle saturation after determining the cycle saturation of the current cycle; the regional average saturation corresponds to multiple traffic lights.
[0157] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0158] In this embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0159] Optionally, the computer device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0160] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0161] S1, when the current cycle of the traffic light enters the green light countdown, the traffic flow data of the vehicle reported by the camera is obtained; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area;
[0162] S2, determining the cycle saturation of the current cycle according to the camera data and the virtual coil data; the cycle saturation corresponds to a traffic light of one phase;
[0163] S3, generating cycle control data of the next cycle based on the cycle saturation;
[0164] S4, after the green light of the traffic light ends, in the traffic light, the traffic light is controlled based on the periodic control data.
[0165] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.
[0166] In addition, in combination with the traffic control method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the traffic control method. The storage medium stores a computer program, and when the computer program is executed by a processor, any traffic control method in the above embodiments is implemented.
[0167] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.
[0168] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.
[0169] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
[0170] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A traffic control method, characterized in that: Applied to a traffic control system, the traffic control system includes a camera, a virtual coil, a signal machine, a processor and a traffic light; the virtual coil is arranged in a detection area of a road; The signal machine is respectively connected to the camera, the processor and the traffic light; The method is applicable to the processor; the method comprises: When the current cycle of the traffic light enters the green light countdown, the traffic flow data of the vehicle reported by the camera is obtained; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area; Determine the cycle saturation of the current cycle according to the camera data and the virtual coil data; the cycle saturation corresponds to the traffic light of one phase; generating cycle control data of the next cycle based on the cycle saturation; After the green light of the traffic light ends, the traffic light is controlled in the signal based on the cycle control data.
2. The traffic control method according to claim 1, characterized in that: Determining the cycle saturation of the current cycle according to the camera data and the virtual coil data includes: Determining lane saturation of the current cycle based on the camera data and the virtual coil data; Based on the lane saturation, determining the phase saturation of the current cycle; Based on the phase saturation, a cycle saturation of the current cycle is determined.
3. The traffic control method according to claim 2, characterized in that: The camera includes a first camera and a second camera; Determining lane saturation according to the camera data and the virtual coil data includes: determining a first lane saturation according to camera data and virtual coil data corresponding to the first camera within a first time threshold before the end of a current cycle; determining a second lane saturation according to camera data and virtual coil data corresponding to the second camera within a second time threshold before the end of the current cycle; The lane saturation of the current cycle is determined based on the first lane saturation and the second lane saturation.
4. The traffic control method according to claim 2, characterized in that: Determining the phase saturation of the current cycle based on the lane saturation includes: Taking the maximum lane saturation in the first preset cycle as the phase saturation of the current cycle; Alternatively, the average of the lane saturation within the first preset period is taken as the phase saturation of the current period.
5. The traffic control method according to claim 1, characterized in that: Generating cycle control data of the next cycle based on the cycle saturation includes: The cycle saturation is input into a pre-trained cycle control model to obtain cycle control data for the next cycle.
6. The traffic control method according to claim 1, characterized in that: The virtual coil length is smaller than an average safety distance between vehicles.
7. The traffic control method according to claim 1, characterized in that: The method further comprises: After determining the cycle saturation of the current cycle, the regional average saturation of the current cycle is determined based on the cycle saturation; the regional average saturation corresponds to the plurality of traffic lights.
8. A traffic control device, characterized in that: Applied to a traffic control system, the traffic control system includes a camera, a virtual coil, a signal machine, a processor and a traffic light; the virtual coil is arranged in a detection area of a road; The signal machine is respectively connected to the camera, the processor and the traffic light; The device is suitable for use in the processor; The device comprises: An acquisition module is used to acquire the traffic flow data of the vehicle reported by the camera when the current cycle of the traffic light enters the green light countdown; the traffic flow data includes the camera data collected by the camera and the virtual coil data reported by the virtual coil; the vehicle is located in the detection area; A first calculation module, used for determining the cycle saturation of the current cycle according to the camera data and the virtual coil data; the cycle saturation corresponds to the traffic light of one phase; A second calculation module, used for generating cycle control data of the next cycle based on the cycle saturation; An execution module is used to control the traffic light based on the periodic control data in the signal machine after the green light of the traffic light ends.
9. A computer device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps of the traffic control method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the traffic control method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Traffic signal lamp adaptive control method and system reusing electric police data, and storage medium
CN121171045A
