CN113793512A - Traffic signal lamp control method, device, equipment and storage medium - Google Patents

Traffic signal lamp control method, device, equipment and storage medium Download PDF

Info

Publication number
CN113793512A
CN113793512A CN202111064177.4A CN202111064177A CN113793512A CN 113793512 A CN113793512 A CN 113793512A CN 202111064177 A CN202111064177 A CN 202111064177A CN 113793512 A CN113793512 A CN 113793512A
Authority
CN
China
Prior art keywords
waiting
passing direction
target
traffic
traffic signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111064177.4A
Other languages
Chinese (zh)
Inventor
严健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202111064177.4A priority Critical patent/CN113793512A/en
Publication of CN113793512A publication Critical patent/CN113793512A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/07Controlling traffic signals
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/056Detecting movement of traffic to be counted or controlled with provision for distinguishing direction of travel
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/07Controlling traffic signals
    • G08G1/08Controlling traffic signals according to detected number or speed of vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application belongs to the technical field of artificial intelligence, and provides a control method, a device, equipment and a storage medium for a traffic signal lamp, wherein the method comprises the following steps: collecting video image data of a waiting area of a target intersection in each passing direction in a preset period; determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction; determining a target traffic direction from each traffic direction according to the average waiting time and the density of waiting objects in each traffic direction; determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction; and when the switching time is up, controlling the traffic signal lamps in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state. This application can improve the current efficiency of crossroad pedestrian, vehicle, applicable in the wisdom city field.

Description

Traffic signal lamp control method, device, equipment and storage medium
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling a traffic signal lamp.
Background
In the field of transportation, with the development of various high and new technologies, such as the research on internet of things technology and image processing technology, an Intelligent Transportation System (ITS) based on sensor technology and image processing technology is born. The intelligent traffic system based on the image processing technology is a popular technology for traffic management application due to the outstanding advantages of no damage to roads, wide detection range, simplicity in installation and use, low cost and the like.
However, the intelligent transportation system based on the image processing technology is mostly applied to the aspect of traffic violation management, and is hardly applied to the aspect of control of traffic signal lamps. In practice, at some intersections, there are often few pedestrians and vehicles but long green time, which results in great loss of pedestrian and vehicle passing efficiency.
Disclosure of Invention
The application mainly aims to provide a traffic signal lamp control method, a traffic signal lamp control device, traffic signal lamp control equipment and a storage medium, and aims to solve the technical problem that the traffic efficiency of pedestrians and vehicles is low due to the existing traffic signal lamp control mode.
In a first aspect, the present application provides a method for controlling a traffic signal lamp, the method comprising:
collecting video image data of a waiting area of a target intersection in each passing direction in a preset period;
determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction;
determining a target passing direction from each passing direction according to the average waiting time and the density of waiting objects in each passing direction;
determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction;
and when the switching time is up, controlling the traffic signal lamps in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state.
In a second aspect, the present application further provides a control apparatus for a traffic signal lamp, the apparatus comprising:
the acquisition module is used for acquiring video image data of a waiting area of the target intersection in each passing direction in a preset period;
the first determining module is used for determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction;
the second determining module is used for determining a target passing direction from each passing direction according to the average waiting time length and the density of waiting objects in each passing direction;
the third determining module is used for determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction;
and the switching module is used for controlling the traffic signal lamps in the target passing direction to be switched to the release state and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state when the switching time is up.
In a third aspect, the present application further provides a computer device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the method for controlling a traffic light as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the method for controlling a traffic light as described above.
The application discloses a control method, a device, equipment and a storage medium of a traffic signal lamp, wherein the control method of the traffic signal lamp is used for collecting video image data of a waiting area of a target intersection in each passing direction in a preset period; determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction; determining a target passing direction from each passing direction according to the average waiting time and the density of waiting objects in each passing direction; determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction; and when the switching time is up, controlling the traffic signal lamps in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state. By the aid of the mode, the fact that the actual traffic conditions are attached to control the intersection traffic signal lamps is achieved, the effect that the indication states of pedestrians, vehicles and the intersection traffic signal lamps are harmonious is achieved, passing efficiency of the pedestrians and the vehicles at the intersection is improved, and the control of the intersection traffic signal lamps is more intelligent and humanized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating an embodiment of a traffic signal control method according to the present application;
fig. 2 is an exemplary diagram of a crossroad scene related to an embodiment of a traffic signal lamp control method according to the present application;
FIG. 3 is a schematic flow chart illustrating another embodiment of a traffic signal control method according to the present application;
fig. 4 is a schematic block diagram of a control device of a traffic signal lamp according to an embodiment of the present application;
fig. 5 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the application provides a method, a device and equipment for controlling a traffic signal lamp and a storage medium. The control method of the traffic signal lamp is mainly applied to control equipment of the traffic signal lamp, the control equipment of the traffic signal lamp can be terminal equipment with a data processing function, such as a server, and the control equipment of the traffic signal lamp is provided with a control system of the traffic signal lamp.
The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for controlling a traffic signal lamp according to an embodiment of the present disclosure.
As shown in fig. 1, the control method of the traffic signal lamp includes steps S101 to S105.
Step S101, collecting video image data of a waiting area of a target intersection in each passing direction in a preset period.
The control method of the traffic signal lamp is applied to a target intersection, which can be a single intersection, please refer to fig. 2, and fig. 2 is an exemplary diagram of an intersection scene.
As shown in fig. 2, the intersections include intersections in four directions, that is, east, west, south, and north, and each intersection is respectively disposed with traffic signal lamp devices 201, 202, 203, and 204. The traffic signal lamp device 201 is used for indicating traffic states in three traffic directions, namely, straight going from west to east, turning from west to south to right and turning from west to north to left; the traffic signal lamp device 202 is used for indicating traffic states of three traffic directions, namely, straight traveling from south to north, turning from south to east to right and turning from south to west to left; the traffic signal lamp device 203 is used for indicating traffic states of three traffic directions of straight going from east to west, turning right from east to north and turning left from east to south; the traffic signal device 204 is used for indicating traffic states of three traffic directions, i.e., straight traveling from north to south, turning right from north to west, and turning left from north to east.
Wherein each traffic light device comprises three traffic lights, for example, the traffic light device 201, a first traffic light (for example, a solid circle in fig. 2) is used for indicating that the traffic direction indicated by the traffic light device 201 is allowed to pass when being lighted, a second traffic light (for example, a dashed circle in fig. 2) is used for warning when being lighted, and a third traffic light (for example, a hollow circle in fig. 2) is used for indicating that the traffic direction indicated by the traffic light device 201 is forbidden to pass when being lighted.
It is understood that the traffic signal device 201 is consistent with the indication state of the traffic signal device 203, and the traffic signal device 202 is consistent with the indication state of the traffic signal device 204. For example, the indication states of the traffic signal light devices 201 and 203 corresponding to the traffic direction indicate that the traffic is allowed to pass, and the indication states of the remaining traffic signal lights indicate that the traffic is forbidden.
Therefore, for the passing direction of the crossroad, the directions of straight going from south to north and straight going from north to south are not distinguished, and the directions are collectively called as the north-south passing direction, and because the two passing directions of turning from south to east and straight going from south to north follow the indication state of the same traffic light and the two passing directions of turning from north to west and straight going from north to south follow the indication state of the same traffic light, the two north-south turning directions of turning from south to east to right and turning from north to west to right are also classified into the north-south passing direction; similarly, the straight going directions from east to west and the straight going directions from west to east are not distinguished, and the directions are collectively called as the east-west passing directions, and because the two passing directions of turning right from east to north and the straight going directions from east to west follow the indication state of the same traffic light and the two passing directions of turning right from west to south and the straight going directions from west to east follow the indication state of the same traffic light, the two east-west-right turning directions of turning right from east to north and turning right from west to south are also classified as the east-west passing directions; the two left-turn traffic directions of turning left from south to west and turning left from north to east are also collectively called the north-south left-turn traffic direction, and the two left-turn traffic directions of turning left from west to north and turning left from east to south are also collectively called the east-west left-turn traffic direction.
In summary, the passing directions of the crossroads include a north-south passing direction, an east-west passing direction, a north-south left-turn passing direction and an east-west left-turn passing direction. It can be understood that the north-south traffic direction and the north-south left-turn traffic direction follow the same traffic light indication state, and the east-west traffic direction and the east-west left-turn traffic direction follow the same traffic light indication state.
Continuing to refer to FIG. 2, as indicated by the dashed box s in the above figure1、s2、s3And s4As shown, the waiting areas for the respective traffic directions at the intersection include a motor vehicle waiting area and a pedestrian waiting area. The waiting area in each passing direction is correspondingly provided with a video image data acquisition device, such as a camera, and the arrangement position enables the acquisition range of the video image data acquisition device to cover the waiting area. For convenience of description, a motor vehicle waiting in a motor vehicle waiting area and a pedestrian traveling in a pedestrian waiting area are collectively referred to as waiting objects.
Firstly, triggering each video image data acquisition device to acquire video image data of a waiting area of a target intersection in each passing direction in a preset period in real time.
Step S102, according to the video image data of the waiting area in each passing direction, determining the average waiting time length and the density of the waiting objects in each passing direction.
The video image data of the waiting areas in each traffic direction are analyzed to determine the average waiting time and the density of the waiting objects in each traffic direction.
In some embodiments, the step S102 specifically includes: analyzing each frame of video image of the waiting area in each passing direction to obtain the entering time of the waiting object entering the waiting area in each passing direction, and determining the average waiting time of the waiting object in each passing direction according to the entering time; analyzing the last frame of video image of the waiting area in each passing direction to obtain the number of waiting objects in each passing direction, and determining the density of the waiting objects in each passing direction according to the number.
Firstly, separating the video image data of the waiting area in each passing direction into image frames to obtain multi-frame video images.
The average waiting duration of the waiting objects in each passing direction is determined, each frame of video image of the waiting area in each passing direction is identified, and the entering time t of each waiting object entering the waiting area in each passing direction is obtainediThen, the entry time t of each waiting object entering the waiting area of each passing direction is calculatediTo the end of the preset period toWaiting time of delta tiFor Δ tiTaking an average value to obtain the average waiting time of the waiting objects in each passing direction
Figure BDA0003257549510000061
The density degree of the waiting objects in each traffic direction is determined, the last frame of video image of the waiting area in each traffic direction is identified, the number n of the waiting objects in the waiting area in each traffic direction is obtained, and the density degree rho of the waiting objects in the waiting area in each traffic direction can be obtained by dividing the number of the waiting objects in the waiting area in each traffic direction by the area of the waiting area in each traffic direction.
In consideration of the case where the waiting area has an abnormal waiting object staying for a long time due to a cause (for example, traffic commander, faulty vehicle, or the like), the average waiting time period is calculated
Figure BDA0003257549510000062
And before the density rho, eliminating the waiting time corresponding to the abnormal waiting object. Exemplarily, for a waiting object staying in the waiting area in two consecutive preset periods, the waiting object is determined to be an abnormal waiting object, the waiting duration corresponding to the abnormal waiting object is removed, and the waiting duration is not included in the average waiting duration
Figure BDA0003257549510000063
And calculation of the degree of denseness ρ.
Step S103, determining a target traffic direction from each traffic direction according to the average waiting time and the density of the waiting objects in each traffic direction.
And further determining a target traffic direction from the traffic directions according to the average waiting time length and the density of the waiting objects in the traffic directions.
In some embodiments, the step S103 specifically includes: determining the passing urgency degree corresponding to each passing direction according to the average waiting time length and the density of the waiting objects in each passing direction; and determining a target passing direction from each passing direction according to the passing urgency degree corresponding to each passing direction.
That is, the traffic urgency level corresponding to each traffic direction is measured by the average waiting time and the density of the waiting objects in each traffic direction. Illustratively, the average waiting time and the density of the waiting objects in each passing direction are positively correlated with the passing urgency degree corresponding to each passing direction, and the passing urgency degree corresponding to each passing direction is determined by using a preset positive correlation calculation formula, which is as follows:
Figure BDA0003257549510000071
Figure BDA0003257549510000072
f(ρ)=b0ρ+b1
wherein y represents the urgency of passage, b0、b1The weight values are expressed and can be solved by using a least square method.
And after the passing urgency degrees corresponding to the passing directions are obtained, determining the target passing direction from the passing directions according to the passing urgency degrees corresponding to the passing directions.
In some embodiments, the determining, according to the passing urgency corresponding to each passing direction, a target passing direction from each passing direction includes: comparing the passing urgency degrees corresponding to the passing directions to obtain a comparison result; and determining a target passing direction from each passing direction according to the comparison result.
And comparing the passing urgency degrees corresponding to all the passing directions, and determining the passing direction corresponding to the maximum passing urgency degree which is compared as a target passing direction.
And step S104, determining the switching time of the traffic signal lamp in the target traffic direction according to the average waiting time of the waiting object in the target traffic direction.
And after the target passing direction is determined, calculating the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the waiting area of the target passing direction.
In some embodiments, the step S104 specifically includes: according to the average waiting time of the waiting object in the target passing direction, combining with a preset switching time calculation formula
Figure BDA0003257549510000081
Calculating the switching time of the traffic signal lamp of the target passing direction, wherein t represents the switching time, and t represents the switching timeoRepresents the end time, t, of said preset periodmaxIndicating a pre-set latency period threshold value,
Figure BDA0003257549510000082
and the average waiting time length of the waiting object in the target passing direction is represented, and lambda represents a preset time coefficient.
That is, the switching time of the traffic signal lamp in the target traffic direction is calculated according to the average waiting duration of the waiting object in the waiting area in the target traffic direction and by combining a preset switching time calculation formula shown as follows:
Figure BDA0003257549510000083
wherein t represents the switching time of the traffic signal lamp in the target traffic direction;
toindicating an end time of the preset period;
tmaxthe method comprises the steps of representing a preset waiting time threshold, wherein the preset waiting time threshold is the longest waiting time of a waiting object at the intersection and can be flexibly set according to actual needs, such as 150 seconds;
Figure BDA0003257549510000084
the average waiting time length of the waiting object representing the target passing direction;
lambda represents a time coefficient and can be flexibly set according to actual needs;
twindicating a warning time, such as 3 seconds.
And step S105, when the switching time is up, controlling the traffic signal lamps in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the non-passing state.
And after the switching time of the traffic signal lamp in the target passing direction is obtained through calculation, when the switching time is up, controlling the traffic signal lamp in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state.
For example, if the determined target traffic direction is the east-west traffic direction, in the intersection scene shown in fig. 2, the traffic signal lights of the traffic signal devices 201 and 203 indicating traffic can be switched to the release state and the traffic signal lights of the remaining traffic directions can be switched to the non-release state when the switching time arrives.
In some embodiments, as shown in FIG. 3, step S106 is included after step S105.
And step S106, determining the duration of the traffic signal lamp in the target passing direction keeping the release state.
In order to ensure that the waiting objects in the waiting area in the target passing direction can smoothly finish passing when the traffic light in the target passing direction keeps the release state, the duration of the release state of the traffic light in the target passing direction needs to be determined.
In some embodiments, step S106 specifically includes: according to the number of waiting objects in the target passing direction, combining a preset duration calculation formula
Figure BDA0003257549510000091
Calculating the duration of the traffic signal lamp in the target passing direction for keeping the release state, wherein t' represents the duration, and t isdRepresenting the transit delay of said waiting objects, n representing the number of said waiting objects,
Figure BDA0003257549510000092
represents an average time period for the waiting object to pass through the intersection.
Namely, based on the number of waiting objects in the target passing direction, the duration of the traffic signal lamp in the target passing direction in the release state is calculated by combining a preset duration calculation formula, wherein the preset duration is as follows:
Figure BDA0003257549510000093
wherein t' represents the duration;
tdthe passing delay of the waiting object can be preset according to experience;
n represents the number of the waiting objects;
Figure BDA0003257549510000094
the average time length for the waiting object to pass through the intersection is shown and can be preset according to experience.
The control method of the traffic signal lamp provided by the embodiment collects video image data of waiting areas of the target intersection in each passing direction in a preset period; determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction; determining a target passing direction from each passing direction according to the average waiting time and the density of waiting objects in each passing direction; determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction; and when the switching time is up, controlling the traffic signal lamps in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state. By the aid of the mode, the fact that the actual traffic conditions are attached to control the intersection traffic signal lamps is achieved, the effect that the indication states of pedestrians, vehicles and the intersection traffic signal lamps are harmonious is achieved, passing efficiency of the pedestrians and the vehicles at the intersection is improved, and the control of the intersection traffic signal lamps is more intelligent and humanized.
Referring to fig. 4, fig. 4 is a schematic block diagram of a control device of a traffic signal lamp according to an embodiment of the present disclosure.
As shown in fig. 4, the apparatus 400 includes: an acquisition module 401, a first determination module 402, a second determination module 403, a third determination module 404, and a switching module 405.
The acquisition module 401 is configured to acquire video image data of a waiting area of a target intersection in each passing direction in a preset period;
a first determining module 402, configured to determine an average waiting duration and a density of waiting objects in each of the passing directions according to video image data of a waiting area in each of the passing directions;
a second determining module 403, configured to determine a target traffic direction from each of the traffic directions according to an average waiting time and an intensity of waiting objects in each of the traffic directions;
a third determining module 404, configured to determine, according to the average waiting duration of the waiting object in the target passing direction, the switching time of the traffic signal lamp in the target passing direction;
and a switching module 405, configured to control the traffic signal light in the target passing direction to be switched to the release state and control the traffic signal lights in the other passing directions to be switched to the non-passing state when the switching time is reached.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatus and each module and unit may refer to the corresponding processes in the foregoing embodiments of the control method of a traffic signal lamp, and are not described herein again.
The apparatus provided by the above embodiments may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present disclosure. The computer device may be a Personal Computer (PC), a server, or the like having a data processing function.
As shown in fig. 5, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform any one of the methods of controlling a traffic signal light.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for running a computer program in the non-volatile storage medium, which, when executed by the processor, causes the processor to execute any one of the methods for controlling a traffic signal.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
collecting video image data of a waiting area of a target intersection in each passing direction in a preset period; determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction; determining a target passing direction from each passing direction according to the average waiting time and the density of waiting objects in each passing direction; determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction; and when the switching time is up, controlling the traffic signal lamps in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state.
In some embodiments, the processor is configured to, when determining a target traffic direction from each of the traffic directions according to the average waiting time and the density of waiting objects in each of the traffic directions, implement:
determining the passing urgency degree corresponding to each passing direction according to the average waiting time length and the density of the waiting objects in each passing direction;
and determining a target passing direction from each passing direction according to the passing urgency degree corresponding to each passing direction.
In some embodiments, the processor is configured to, when determining a target passing direction from each passing direction according to the passing urgency corresponding to each passing direction, implement:
comparing the passing urgency degrees corresponding to the passing directions to obtain a comparison result;
and determining a target passing direction from each passing direction according to the comparison result.
In some embodiments, the processor is configured to, when determining the switching time of the traffic signal lamp in the target traffic direction according to the average waiting duration of the waiting object in the target traffic direction, implement:
according to the average waiting time of the waiting object in the target passing direction, combining with a preset switching time calculation formula
Figure BDA0003257549510000121
Calculating the switching time of the traffic signal lamp of the target passing direction, wherein t represents the switching time, and t represents the switching timeoRepresents the end time, t, of said preset periodmaxIndicating a pre-set latency period threshold value,
Figure BDA0003257549510000122
the average waiting time length of the waiting object representing the target passing direction, lambda represents a preset time coefficient, twIndicating a preset alert time.
In some embodiments, the processor is configured to determine the average waiting duration and the density of the waiting objects in each of the traffic directions based on the video image data of the waiting areas in each of the traffic directions, and is configured to:
analyzing each frame of video image of the waiting area in each passing direction to obtain the entering time of the waiting object entering the waiting area in each passing direction, and determining the average waiting time of the waiting object in each passing direction according to the entering time;
analyzing the last frame of video image of the waiting area in each passing direction to obtain the number of waiting objects in each passing direction, and determining the density of the waiting objects in each passing direction according to the number.
In some embodiments, after the processor switches the traffic signal light for controlling the target traffic direction to the release state when the switching time arrives, the following steps are implemented:
and determining the duration of the passing state of the traffic signal lamp of the target passing direction.
In some embodiments, the processor implements the duration of time that the traffic light determining the target traffic direction remains in the cleared state to implement:
according to the number of waiting objects in the target passing direction, combining a preset duration calculation formula
Figure BDA0003257549510000123
Calculating the duration of the traffic signal lamp in the target passing direction for keeping the release state, wherein t' represents the duration, and t isdRepresenting the transit delay of the waiting object, n representing the number of waiting objects of the target transit direction,
Figure BDA0003257549510000124
represents an average time period for the waiting object to pass through the intersection.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to the embodiments of the control method for a traffic signal lamp in the present application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of controlling a traffic signal, the method comprising the steps of:
collecting video image data of a waiting area of a target intersection in each passing direction in a preset period;
determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction;
determining a target passing direction from each passing direction according to the average waiting time and the density of waiting objects in each passing direction;
determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction;
and when the switching time is up, controlling the traffic signal lamps in the target passing direction to be switched to the release state, and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state.
2. The method for controlling a traffic signal lamp according to claim 1, wherein the determining a target traffic direction from each of the traffic directions according to the average waiting time and the density of the waiting objects in each of the traffic directions comprises:
determining the passing urgency degree corresponding to each passing direction according to the average waiting time length and the density of the waiting objects in each passing direction;
and determining a target passing direction from each passing direction according to the passing urgency degree corresponding to each passing direction.
3. The method for controlling a traffic signal lamp according to claim 2, wherein the determining a target traffic direction from each traffic direction according to the traffic urgency corresponding to each traffic direction comprises:
comparing the passing urgency degrees corresponding to the passing directions to obtain a comparison result;
and determining a target passing direction from each passing direction according to the comparison result.
4. The method for controlling traffic signal lights according to claim 1, wherein the determining the switching time of the traffic signal light in the target traffic direction according to the average waiting time of the waiting object in the target traffic direction comprises:
according to the average waiting time of the waiting object in the target passing direction, combining with a preset switching time calculation formula
Figure FDA0003257549500000011
Calculating the switching time of the traffic signal lamp of the target passing direction, wherein t represents the switching time, and t represents the switching timeoRepresents the end time, t, of said preset periodmaxIndicating a pre-set latency period threshold value,
Figure FDA0003257549500000023
the average waiting time length of the waiting object representing the target passing direction, lambda represents a preset time coefficient, twIndicating a preset alert time.
5. The method for controlling a traffic signal lamp according to claim 1, wherein said determining an average waiting time period and a density of waiting objects in each of said traffic directions from video image data of waiting areas in each of said traffic directions comprises:
analyzing each frame of video image of the waiting area in each passing direction to obtain the entering time of the waiting object entering the waiting area in each passing direction, and determining the average waiting time of the waiting object in each passing direction according to the entering time;
analyzing the last frame of video image of the waiting area in each passing direction to obtain the number of waiting objects in each passing direction, and determining the density of the waiting objects in each passing direction according to the number.
6. The method for controlling a traffic signal lamp according to claim 1, wherein the controlling the traffic signal lamp of the target traffic direction to switch to the release state after the switching time arrives comprises:
and determining the duration of the passing state of the traffic signal lamp of the target passing direction.
7. The method of claim 6, wherein the determining the duration for which the traffic signal of the target traffic direction remains in the clear state comprises:
according to the number of waiting objects in the target passing direction, combining a preset duration calculation formula
Figure FDA0003257549500000021
Calculating the duration of the traffic signal lamp in the target passing direction for keeping the release state, wherein t' represents the duration, and t isdRepresenting the transit delay of the waiting object, n representing the number of waiting objects of the target transit direction,
Figure FDA0003257549500000022
represents an average time period for the waiting object to pass through the intersection.
8. A control apparatus of a traffic signal, characterized by comprising:
the acquisition module is used for acquiring video image data of a waiting area of the target intersection in each passing direction in a preset period;
the first determining module is used for determining the average waiting time length and the density of waiting objects in each passing direction according to the video image data of the waiting area in each passing direction;
the second determining module is used for determining a target passing direction from each passing direction according to the average waiting time length and the density of waiting objects in each passing direction;
the third determining module is used for determining the switching time of the traffic signal lamp in the target passing direction according to the average waiting time of the waiting object in the target passing direction;
and the switching module is used for controlling the traffic signal lamps in the target passing direction to be switched to the release state and controlling the traffic signal lamps in the other passing directions to be switched to the forbidden state when the switching time is up.
9. A computer arrangement, characterized in that the computer arrangement comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, carries out the steps of the method of controlling a traffic signal lamp according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, wherein the computer program, when being executed by a processor, carries out the steps of the method of controlling a traffic signal lamp according to any one of claims 1 to 7.
CN202111064177.4A 2021-09-10 2021-09-10 Traffic signal lamp control method, device, equipment and storage medium Pending CN113793512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111064177.4A CN113793512A (en) 2021-09-10 2021-09-10 Traffic signal lamp control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111064177.4A CN113793512A (en) 2021-09-10 2021-09-10 Traffic signal lamp control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113793512A true CN113793512A (en) 2021-12-14

Family

ID=79182919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111064177.4A Pending CN113793512A (en) 2021-09-10 2021-09-10 Traffic signal lamp control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113793512A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114842655A (en) * 2022-04-29 2022-08-02 杭州海康威视数字技术股份有限公司 Traffic signal control method, device and equipment
CN117133137A (en) * 2023-10-23 2023-11-28 安徽省交通规划设计研究总院股份有限公司 Self-adaptive control method for pedestrian crossing signal lamp

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046986A (en) * 2015-06-17 2015-11-11 上海斐讯数据通信技术有限公司 Traffic light intelligent switching method and system, and intelligent traffic guidance equipment
CN106384519A (en) * 2016-11-22 2017-02-08 百度在线网络技术(北京)有限公司 Traffic light controlling method and apparatus
CN108986493A (en) * 2018-08-21 2018-12-11 北京深瞐科技有限公司 Traffic lights transit time distribution method and its device
CN110689738A (en) * 2019-09-24 2020-01-14 北京地平线机器人技术研发有限公司 Traffic signal lamp control method and device, storage medium and electronic equipment
CN111583672A (en) * 2020-04-09 2020-08-25 江苏中科院智能科学技术应用研究院 Intelligent traffic light control method, system and device
US20200372793A1 (en) * 2017-12-31 2020-11-26 Axilion Ltd. Method, Device, and System of Dynamic Allocation of Traffic Resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046986A (en) * 2015-06-17 2015-11-11 上海斐讯数据通信技术有限公司 Traffic light intelligent switching method and system, and intelligent traffic guidance equipment
CN106384519A (en) * 2016-11-22 2017-02-08 百度在线网络技术(北京)有限公司 Traffic light controlling method and apparatus
US20200372793A1 (en) * 2017-12-31 2020-11-26 Axilion Ltd. Method, Device, and System of Dynamic Allocation of Traffic Resources
CN108986493A (en) * 2018-08-21 2018-12-11 北京深瞐科技有限公司 Traffic lights transit time distribution method and its device
CN110689738A (en) * 2019-09-24 2020-01-14 北京地平线机器人技术研发有限公司 Traffic signal lamp control method and device, storage medium and electronic equipment
CN111583672A (en) * 2020-04-09 2020-08-25 江苏中科院智能科学技术应用研究院 Intelligent traffic light control method, system and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114842655A (en) * 2022-04-29 2022-08-02 杭州海康威视数字技术股份有限公司 Traffic signal control method, device and equipment
CN117133137A (en) * 2023-10-23 2023-11-28 安徽省交通规划设计研究总院股份有限公司 Self-adaptive control method for pedestrian crossing signal lamp

Similar Documents

Publication Publication Date Title
CN113793512A (en) Traffic signal lamp control method, device, equipment and storage medium
CN110379180B (en) Traffic signal control method, traffic signal control device and terminal equipment
CN112400192A (en) Method and system for multi-modal deep traffic signal control
CN112799826B (en) Intelligent analysis algorithm selection method, device and system and electronic equipment
WO2018141403A1 (en) System, device and method for managing traffic in a geographical location
US11062154B2 (en) Non-transitory storage medium storing image transmission program, image transmission device, and image transmission method
CN109841078B (en) Navigation data processing method and device and storage medium
CN109661692B (en) Traffic incident prediction method and device and terminal equipment
CN112241649A (en) Target identification method and device
Dubey et al. Implementation of an intelligent traffic control system and real time traffic statistics broadcasting
CN113870598B (en) Road condition information monitoring method and device, computer equipment and storage medium
US20220244068A1 (en) Dynamic map generation with focus on construction and localization field of technology
CN111310660B (en) Target detection false alarm suppression method and device for ADAS scene
CN114036411A (en) Route planning method, device, equipment and medium
Sitaram et al. Still image processing techniques for intelligent traffic monitoring
CN111081037B (en) Traffic signal lamp control method, device, equipment and storage medium
CN113221791A (en) Vehicle parking violation detection method and device, electronic equipment and storage medium
CN110491122B (en) Method and device for reducing urban congestion ranking
CN116935631A (en) Abnormal traffic situation detection method, device and system based on radar fusion
CN115440063B (en) Traffic signal lamp control method, device, computer equipment and storage medium
KR102302486B1 (en) Urban road speed processing method, urban road speed processing device, device and non-volatile computer storage medium
CN110008957A (en) Cell based on Car license recognition and image variance algorithm, which is disobeyed, stops alarm method
CN110473398B (en) Urban road congestion analysis method and device
CN111741267B (en) Method, device, equipment and medium for determining vehicle delay
CN112597874A (en) Signal lamp identification method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20211214

WD01 Invention patent application deemed withdrawn after publication