CN112767718A - Signal lamp control method and device, readable storage medium and electronic equipment - Google Patents

Signal lamp control method and device, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN112767718A
CN112767718A CN202110130364.1A CN202110130364A CN112767718A CN 112767718 A CN112767718 A CN 112767718A CN 202110130364 A CN202110130364 A CN 202110130364A CN 112767718 A CN112767718 A CN 112767718A
Authority
CN
China
Prior art keywords
monitoring area
determining
signal lamp
line
target
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
CN202110130364.1A
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110130364.1A priority Critical patent/CN112767718A/en
Publication of CN112767718A publication Critical patent/CN112767718A/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
    • 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

A signal lamp control method, a device, a readable storage medium and an electronic device are provided, the method comprises the following steps: acquiring video images of each monitoring area, and determining whether the monitoring area is in a congestion state or not according to the video images; when the monitoring area is in a congestion state and a signal lamp corresponding to the monitoring area is a green lamp, determining the number of vehicles which can be accommodated in the monitoring area according to the video image; determining target vehicles needing to be intercepted outside a target intersection cut-off line according to the number of the vehicles, wherein the target intersection cut-off line is an intersection cut-off line in the monitoring area; determining the time required by the target vehicle to reach the cut-off line of the target intersection according to the video image and the target vehicle; the time for converting the signal lamp into the red light is set as the time, and the method can effectively avoid that vehicles in the other direction cannot pass due to the congestion of the intersection.

Description

Signal lamp control method and device, readable storage medium and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a signal lamp control method and apparatus, a readable storage medium, and an electronic device.
Background
Along with the development of intelligent technology, intelligent traffic is more and more extensive to get into the market, for example, electron breaks down to take a candid photograph, makes a dash across the red light and shoots to and based on vehicle identification technique, interval duration that can dynamic adjustment traffic lights etc. this has brought very big convenience for alleviating traffic pressure.
However, there are still more pain points in the traffic field, as shown in fig. 5, when the traffic is in a peak period, there are very many vehicles in the up-down direction, and only two vehicles in the left-right direction wait, but when the traffic light in the up-down direction has changed into a red light due to the yellow light robbed by the vehicles in the up-down direction, there are still a plurality of vehicles staying at the intersection, so that the vehicles in the left-right direction can not pass through even though the traffic light is green, and normal traffic is seriously blocked.
At present, in order to relieve the traffic jam condition in the traffic rush hour, the most common mode is that a traffic police of a traffic management department commands on site so as to avoid the situation that the traffic police cannot pass in the other direction due to the traffic jam. The mode needs a large amount of manpower and material resources, and the sustainable development of intelligent traffic is influenced.
Disclosure of Invention
In view of the above situation, a signal lamp control method, a signal lamp control device, a readable storage medium and an electronic device are provided to avoid the occurrence of a phenomenon that a vehicle in another direction cannot normally pass due to intersection congestion.
A signal lamp control method, comprising:
acquiring video images of each monitoring area, and determining whether the monitoring area is in a congestion state or not according to the video images;
when the monitoring area is in a congestion state and a signal lamp corresponding to the monitoring area is a green lamp, determining the number of vehicles which can be accommodated in the monitoring area according to the video image;
determining target vehicles needing to be intercepted outside a target intersection cut-off line according to the number of the vehicles, wherein the target intersection cut-off line is an intersection cut-off line in the monitoring area;
determining the time required by the target vehicle to reach the cut-off line of the target intersection according to the video image and the target vehicle;
and setting the time for converting the signal lamp into the red lamp as the time.
Further, in the signal lamp control method, the step of determining the number of vehicles that can be accommodated in the monitored area according to the video image includes:
determining the available road length within a first preset distance from an intersection cut-off line of the monitoring area and the occupied road length of each vehicle driving to the monitoring area according to the video image;
and determining the number of vehicles which can be accommodated in the monitoring area according to the available road length and the occupied road length of each vehicle driving to the monitoring area, wherein the available road length is the remaining road length except the occupied road length of each vehicle in the first preset distance, and the occupied road length is the sum of the distance between the front and the rear of the vehicle and the length of the vehicle.
Further, in the signal lamp control method, the step of determining an available road length within a first preset distance from an intersection cutoff line of the monitored area according to the video image includes:
determining the number of the current vehicles within a first preset distance from an intersection cut-off line of the monitoring area and the occupied lane length of each vehicle within the first preset distance according to the video image;
and calculating the available road length within the first preset distance according to the first preset distance, the current vehicle number and the occupied road length of each vehicle within the first preset distance.
Further, in the signal lamp control method, the step of determining the number of vehicles that can be accommodated in the monitoring area according to the available road length and the occupied road length of each vehicle driving to the monitoring area includes:
and calculating the difference value between the available road length and the occupied road length of a plurality of vehicles driving to the monitoring area, and recording the number of the vehicles when the difference value is smaller than a threshold value, namely the number of the vehicles which can be contained in the monitoring area.
Further, in the signal light control method, the step of determining, according to the video image and the target vehicle, a time required for the target vehicle to reach the target intersection cut-off line includes:
determining the speed of the target vehicle and the distance between the target vehicle and the cut-off line of the target intersection according to the video image;
and calculating the time required by the target vehicle to reach the cut-off line of the target intersection according to the vehicle speed and the distance.
Further, the method for controlling a signal lamp, wherein the step of setting the time for switching the signal lamp to the red light according to the time further comprises:
when the signal lamp jumps to a red light and the duration of the signal lamp in the red light state reaches the system set time, detecting whether the monitoring area is still in a congestion state;
if yes, controlling the signal lamp to keep a red lamp state for a preset time, and returning to the step of detecting whether the monitoring area is still in a congestion state;
if not, controlling the signal lamp to jump to a green lamp.
Further, in the signal lamp control method, the step of determining whether the monitored area is in a congestion state according to the video image includes:
determining whether a congestion road section exists in the monitoring area according to the video image;
if so, determining whether the distance between the congested road section and an intersection cut-off line of the monitoring area is smaller than a second preset distance;
and when the distance is smaller than the second preset distance, determining that the monitoring area is in a congestion state.
Further, in the signal lamp control method, the step of obtaining the video image of each monitoring area includes:
and acquiring video images of each monitoring area acquired by image acquisition equipment at preset time intervals.
Further, in the signal lamp control method, the step of setting the time for switching the signal lamp to the red light as the target time further includes:
and returning to the step of determining the number of the vehicles which can be accommodated within a first preset distance from the intersection cut-off line of the monitoring area.
The invention also discloses a signal lamp control device, which comprises:
the monitoring module is used for acquiring video images of each monitoring area and determining whether the monitoring area is in a congestion state or not according to the video images;
the first determining module is used for determining the number of vehicles which can be contained in the monitoring area according to the video image when the monitoring area is in a congestion state and a signal lamp corresponding to the monitoring area is a green lamp;
the second determining module is used for determining target vehicles needing to be intercepted outside a target intersection cut-off line according to the number of the vehicles, and the target intersection cut-off line is an intersection cut-off line in the monitoring area;
the third determining module is used for determining the time required by the target vehicle to reach the cut-off line of the target intersection according to the video image and the target vehicle;
and the setting module is used for setting the time for converting the signal lamp into the red light as the time.
Further, the signal lamp control device further comprises a detection module, configured to:
when the signal lamp jumps to a red light and the duration of the signal lamp in the red light state reaches the system set time, detecting whether the monitoring area is still in a congestion state;
if yes, controlling the signal lamp to keep a red lamp state for a preset time, and returning to the step of detecting whether the monitoring area is still in a congestion state;
if not, controlling the signal lamp to jump to a green lamp.
The invention also provides a readable storage medium, on which a program is stored, wherein the program is characterized in that when being executed by a processor, the program realizes any one of the above methods.
The technical solution of the present invention further provides an electronic device, which includes a memory, a processor, and a program stored in the memory and executable on the processor, and is characterized in that the processor implements any one of the methods described above when executing the program.
According to the invention, by monitoring the vehicle passing state of each monitoring area of the crossroad, when a certain monitoring area is congested, the number of vehicles which can enter the area can be calculated by detecting the vehicles which enter the monitoring area, and then vehicles which cannot be accommodated are intercepted outside the crossroad by setting the signal lamps to be red lamps in advance. By the method, when congestion is about to occur at the intersection, the signal lamp in the congestion direction can be set to be the red lamp in advance, so that vehicles jammed in the center of the intersection in the direction can not influence the passing of vehicles in the other direction when the traffic jam is about to occur in the red lamp, the traffic lights can be automatically adjusted according to the passing state of the vehicles, and traffic jam is avoided.
Drawings
Fig. 1 is a flowchart of a signal lamp control method in a first embodiment of the present invention;
FIG. 2 is an intersection fiduciary marker map;
fig. 3 is a flowchart of a signal lamp control method in a second embodiment of the present invention;
FIG. 4 is a block diagram of a signal lamp control device according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
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, a signal lamp control method according to an embodiment of the present invention includes steps S11-S15.
Step S11, acquiring video images of each monitoring area, and determining whether the monitoring area is in a congestion state according to the video images.
The monitoring area is a road area which is positioned at the downstream of the driving direction in the road areas of all directions of the crossroad. In this embodiment, the intersection is formed by two intersecting roads, and each road can be generally set to be driven in one direction or in two directions according to actual conditions. When the unidirectional driving of each road is carried out, the intersection cut-off line of the crossroad is used for dividing, each unidirectional driving road can be divided into two parts, and therefore each unidirectional driving road can be divided into two road areas. Of the two road regions, a road region downstream in the traveling direction is defined as a monitoring region. For example, at an intersection formed by two roads traveling in one direction, two monitoring areas may be determined. Four monitoring areas can be determined at the intersection formed by two roads running in two directions.
Taking two road areas of a one-way driving road from left to right as an example, if a road area at the downstream (right end of the intersection) in the driving direction is congested, when a vehicle at the upstream (left end of the intersection) enters, the congestion at the intersection area may occur, and vehicles in other driving directions cannot pass through. The congestion occurring at the upstream of the driving direction (at the left end of the intersection) has no influence on the road area at the right end of the intersection, so that the road passing condition of the road area at the downstream of the driving direction (namely the defined monitoring area) only needs to be monitored.
General crossroads are all provided with cameras for detecting all directions, and the road traffic condition of each monitoring area can be determined through video images collected by the cameras. The camera polls and detects each monitoring area to judge whether each monitoring area is congested or not.
It can be understood that the detection area is an area within a certain distance from the intersection, and the size of the detection area can be determined according to the area covered by the intersection camera.
The step of determining whether the monitored area is in a congestion state according to the video image comprises the following steps:
determining whether a congestion road section exists in the monitoring area according to the video image;
if so, determining whether the distance between the congested road section and an intersection cut-off line of the monitoring area is smaller than a second preset distance;
and when the distance is smaller than the second preset distance, determining that the monitoring area is in a congestion state.
The second distance d should not be set too large to influence the normal switching frequency of the signal lamp system, and can be set to 0.5-5 m. Namely, when the vehicle at the position of the congested road section of the current detection area and the second distance from the intersection cut-off line is detected to stop, the congestion of the monitoring area can be judged.
The indication state of the signal lamps in the monitoring area can be directly obtained from the road traffic signal controller. When congestion occurs in a monitoring area and a signal lamp in the vehicle running direction is green, the time for changing the green light to the red light needs to be regulated.
And step S12, when the monitoring area is in a congestion state and the signal lamp corresponding to the monitoring area is a green lamp, determining the number of vehicles which can be accommodated in the monitoring area according to the video image.
Specifically, the step of determining the number of vehicles that can be accommodated in the monitoring area according to the video image includes:
determining the available road length within a first preset distance from an intersection cut-off line of the monitoring area and the occupied road length of each vehicle driving to the monitoring area according to the video image;
and determining the number of vehicles which can be accommodated in the monitoring area according to the available road length and the occupied road length of each vehicle driving to the monitoring area, wherein the available road length is the remaining road length except the occupied road length of each vehicle in the first preset distance, and the occupied road length is the sum of the distance between the front and the rear of the vehicle and the length of the vehicle.
Wherein the step of determining the number of vehicles which can be accommodated within a first preset distance from the intersection cut-off line of the monitoring area comprises:
determining the available road length within a first preset distance from an intersection cut-off line of the monitoring area, wherein the available road length is the length of a road occupied by the vehicle within the first preset distance;
and determining the number of vehicles which can be contained in the monitoring area according to the available road length and the occupied road length of each vehicle driving to the monitoring area.
The first preset distance L0 can be set according to actual needs, for example, 100 m. The available road length L1 within the first preset distance L0 from the intersection cutoff line of the monitored area is the remaining length of the area 100m from which the vehicle distance and the length of the vehicle required by each vehicle are removed.
For example, as shown in FIG. 2, area C, the number of vehicles N within a distance L0 and the length of each vehicle C are monitored1、C2…CnAnd the speed D of each vehicle1、D2、D3…DnWhen the default vehicle stops, the front-rear distance is M meters, then the distance that the lane is currently occupied is recorded as L2, and the calculation method of L2 is as follows: (N-1) M + C1+C2+…+Cn. The available lane length L1-L0-L2.
The length of the occupied road of the vehicle is the sum of the distance between the front and the rear of the vehicle and the length of the vehicle. The number of vehicles which can enter the monitoring area can be calculated according to the available road length and the occupied road length of each vehicle driving to the monitoring area.
In specific implementation, the length of a vehicle about to enter the C direction is detected and recorded as G1, G2 and G3 … Gn, and the calculation mode that the vehicle can enter a plurality of vehicles again within the L0 distance of a monitoring area is as follows:
L1-(G1+M)-(G2+M)-(G3+ M.. when the calculated value is less than a preset threshold, the subscript value of G represents the number of vehicles that can still re-enter the monitored area, denoted as Gx. The threshold value is typically the body length of the vehicle.
And step S13, determining the target vehicles needing to be intercepted outside the cut-off line of the target intersection according to the number of the vehicles, wherein the cut-off line of the target intersection is the cut-off line of the intersection in the monitoring area.
And step S14, determining the time required by the target vehicle to reach the target intersection cut-off line according to the video image and the target vehicle.
Specifically, the step of determining, according to the video image and the target vehicle, a time required for the target vehicle to reach the target intersection cut-off line includes:
determining the speed of the target vehicle and the distance between the target vehicle and the cut-off line of the target intersection according to the video image;
and calculating the time required by the target vehicle to reach the cut-off line of the target intersection according to the vehicle speed and the distance.
And step S15, setting the time for converting the signal lamp into the red lamp as the time.
The intersection cut-off line of the target road is the intersection cut-off line of the upstream road region in the same driving direction as the current detection region, i.e. the intersection cut-off line in the region a in fig. 2. The monitoring area C has not accommodated the target vehicle, i.e. the G thx+1If the vehicle continues to drive in, the vehicle will be stuck at the crossroad, so that the G-th signal lamp is needed to be regulated and controlledx+1The vehicle is intercepted in area a.
Detection target vehicle Gx+1The distance from the road-cut-off line in the area A is marked as Sx+1The target vehicle speed is Dx+1The target vehicle G can be calculatedx+1And also Sx+1/Dx+1The second reaches the intersection;
setting signal lamp countdownAt the Sx+1/Dx+1And setting the signal lamp in the vehicle running direction corresponding to the current detection area as a red lamp before the second, so as to avoid the influence of the target vehicle on the vehicle passing in the BD direction when the target vehicle enters the intersection.
The vehicle passing state of each monitoring area of the crossroad is monitored, when congestion occurs in a certain monitoring area, the number of vehicles which can enter the area can be calculated by detecting the vehicles which enter the monitoring area, and then the vehicles which cannot be accommodated are intercepted outside the crossroad by setting the signal lamps to be red lamps in advance. By the method, when congestion is about to occur at the intersection, the signal lamp in the congestion direction can be set to be the red lamp in advance, so that vehicles jammed in the center of the intersection in the direction can not influence the passing of vehicles in the other direction when the traffic jam is about to occur in the red lamp, the traffic lights can be automatically adjusted according to the passing state of the vehicles, and traffic jam is avoided.
Referring to fig. 3, a signal lamp control method according to a second embodiment of the present invention includes steps S21-S28.
Step S21, acquiring video images of each monitoring area acquired by image acquisition equipment at preset time intervals, determining whether the monitoring area is in a congestion state according to the video images, and if so, executing step S22.
The crossroad is formed by intersecting two roads, the one-way driving road of each road is divided into two road areas by taking a crossroad cut-off line of the crossroad as a boundary, and the road area at the downstream of the vehicle driving direction in the two road areas is defined as a monitoring area.
The signal lamp control method in this embodiment is used for adjusting and controlling a signal lamp at an intersection, the intersection is formed by crossing two road intersections, the intersection is a square area, and four sides of the square area are intersection cut-off lines, that is, when a red light is emitted, a vehicle needs to be stopped outside the cut-off lines and cannot enter the intersection area.
The crossroad is provided with image acquisition equipment for detecting each road area, and in specific implementation, the image acquisition equipment acquires video images of each monitoring area acquired by the image acquisition equipment at preset time intervals, and can monitor the road traffic condition of each monitoring area according to the acquired video images so as to determine whether each monitoring area is congested or not. And when the monitoring area is in a congestion state, the next step is carried out, and if not, the monitoring is continued.
And step S22, when the monitored area is in a congestion state and the signal lamp corresponding to the vehicle running direction of the monitored area is a green lamp, determining the available road length within a first preset distance from the intersection cut-off line of the monitored area. The available road length is the remaining road length within the first preset distance except the occupied road length of each vehicle.
And step S23, determining the number of vehicles which can be contained in the monitoring area according to the available road length and the occupied road length of each vehicle driving to the monitoring area. The length of the occupied road is the sum of the distance between the front and the rear of the vehicle and the length of the vehicle.
Step S24, determining the target vehicles needing to be intercepted outside the cut-off line of the target intersection according to the number of the vehicles, and calculating the time required by the target vehicles to reach the cut-off line of the target intersection so as to obtain the target time. And the target road intersection cut-off line is an intersection cut-off line on a road area opposite to the monitoring area.
The target intersection cut-off line is the intersection cut-off line which is positioned on the same road with the monitoring area and is positioned on the other side of the intersection. The congestion of the monitored area can be calculated to accommodate x vehicles in the number of the vehicles, namely, x vehicles can be allowed to drive from the opposite side of the monitored area, and the x +1 vehicle must be intercepted outside the intersection cut-off line of the opposite road area.
The target time can be calculated according to the distance of the target path cut-off line of the target vehicle and the vehicle of the target vehicle, namely when the target vehicle reaches the intersection cut-off line of the target, the signal lamp is controlled to jump.
Step S25, setting the time for changing the signal light into red light as the target time, and returning to step S22.
After the target time of the target vehicle reaching the intersection cut-off line of the target is determined, the time of converting the green light of the traffic light into the red light is set as the target time, and the step S22 is returned to, namely, the available road length within the first preset distance from the intersection cut-off line of the monitoring area is continuously determined, the target time of the vehicle needing to be intercepted reaching the intersection cut-off line is recalculated, and the conversion time of the signal light is adjusted, so that the jump time of the signal light is more accurate.
And step S26, when the signal lamp jumps to the red light and the duration of the signal lamp in the red light state reaches the system set time, detecting whether the monitoring area is still in the congestion state, if so, executing step S27, otherwise, executing step S28.
And step S27, controlling the signal lamp to keep the red lamp state for a preset time, and returning to step S26.
And step S28, controlling the signal lamp to jump to a green lamp.
Typically, the signal lamp system is preset with a signal lamp time, for example, the red lamp time is 60s, i.e., the signal lamp is turned to green after 60 s. And when the signal lamp jumps to the red light and the time of the signal lamp in the red light state reaches the system set time, detecting whether the monitored area is still in the congestion state, if so, continuing to keep the red light, and returning to the step S26 after a preset time interval. And when the monitored areas are detected not to be in the congestion state, the signal lamps are controlled to be switched to green lamps, and the road conditions of the monitored areas are continuously monitored.
Referring to fig. 4, a signal lamp control device in a third embodiment of the present invention includes:
the monitoring module 41 is configured to acquire a video image of each monitoring area, and determine whether the monitoring area is in a congestion state according to the video image;
the first determining module 42 is configured to determine, according to the video image, the number of vehicles that can be accommodated in the monitoring area when the monitoring area is in a congestion state and a signal lamp corresponding to the monitoring area is a green lamp;
a second determining module 43, configured to determine, according to the number of the vehicles, a target vehicle that needs to be intercepted outside a target intersection cut-off line, where the target intersection cut-off line is an intersection cut-off line in the monitoring area;
a third determining module 44, configured to determine, according to the video image and the target vehicle, a time required for the target vehicle to reach the target intersection cut-off line;
and the setting module 45 is used for setting the time for converting the signal lamp into the red light as the time.
Further, the signal lamp control device further comprises a detection module, configured to:
when the signal lamp jumps to a red light and the duration of the signal lamp in the red light state reaches the system set time, detecting whether the monitoring area is still in a congestion state;
if yes, controlling the signal lamp to keep a red lamp state for a preset time, and returning to the step of detecting whether the monitoring area is still in a congestion state;
if not, controlling the signal lamp to jump to a green lamp.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The signal lamp control device provided by the embodiment of the invention has the same implementation principle and technical effect as the method embodiment, and for the sake of brief description, no part of the device embodiment is mentioned, and reference may be made to the corresponding content in the method embodiment.
In addition, the signal lamp control method of the embodiment of the present application described in conjunction with fig. 1 may be implemented by an electronic device, which may be a server. Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic device may include a processor 11 and a memory 12 storing computer program instructions.
Specifically, the processor 11 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 15 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 15 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, magnetic tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 15 may include removable or non-removable (or fixed) media, where appropriate. The memory 15 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 15 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 15 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 12 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions executed by the processor 11.
The processor 11 reads and executes the computer program instructions stored in the memory 12 to implement any one of the signal light control methods in the above-described embodiments.
In some of these embodiments, the electronic device may also include a communication interface 13 and a bus 10. As shown in fig. 1, the processor 11, the memory 12, and the communication interface 13 are connected via a bus 10 to complete communication therebetween.
The communication interface 13 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication interface 13 may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 10 includes hardware, software, or both to couple the components of the electronic device to one another. Bus 10 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 10 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a HyperTransport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (AGP) Bus, a Local Video Association (Video Electronics Bus), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 10 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, in combination with the signal lamp control method in the foregoing embodiments, the embodiments of the present application may be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the signal light control methods in the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A signal lamp control method, comprising:
acquiring video images of each monitoring area, and determining whether the monitoring area is in a congestion state or not according to the video images;
when the monitoring area is in a congestion state and a signal lamp corresponding to the monitoring area is a green lamp, determining the number of vehicles which can be accommodated in the monitoring area according to the video image;
determining target vehicles needing to be intercepted outside a target intersection cut-off line according to the number of the vehicles, wherein the target intersection cut-off line is an intersection cut-off line in the monitoring area;
determining the time required by the target vehicle to reach the cut-off line of the target intersection according to the video image and the target vehicle;
and setting the time for converting the signal lamp into the red lamp as the time.
2. The signal light control method of claim 1, wherein said step of determining from said video images the number of vehicles that can still be accommodated within said monitored area comprises:
determining the available road length within a first preset distance from an intersection cut-off line of the monitoring area and the occupied road length of each vehicle driving to the monitoring area according to the video image;
and determining the number of vehicles which can be accommodated in the monitoring area according to the available road length and the occupied road length of each vehicle driving to the monitoring area, wherein the available road length is the remaining road length except the occupied road length of each vehicle in the first preset distance, and the occupied road length is the sum of the distance between the front and the rear of the vehicle and the length of the vehicle.
3. The signal light control method of claim 2, wherein the step of determining an available road length within a first predetermined distance from an intersection cutoff line of the monitored area from the video image comprises:
determining the number of the current vehicles within a first preset distance from an intersection cut-off line of the monitoring area and the occupied lane length of each vehicle within the first preset distance according to the video image;
and calculating the available road length within the first preset distance according to the first preset distance, the current vehicle number and the occupied road length of each vehicle within the first preset distance.
4. The signal light control method of claim 1, wherein the step of determining the time required for the target vehicle to reach the target intersection cut-off line based on the video image and the target vehicle comprises:
determining the speed of the target vehicle and the distance between the target vehicle and the cut-off line of the target intersection according to the video image;
and calculating the time required by the target vehicle to reach the cut-off line of the target intersection according to the vehicle speed and the distance.
5. The signal lamp control method of claim 1, wherein said step of setting the time at which the signal lamp is switched to the red light according to the time further comprises, after said step of setting the time at which the signal lamp is switched to the red light:
when the signal lamp jumps to a red light and the duration of the signal lamp in the red light state reaches the system set time, detecting whether the monitoring area is still in a congestion state;
if yes, controlling the signal lamp to keep a red lamp state for a preset time, and returning to the step of detecting whether the monitoring area is still in a congestion state;
if not, controlling the signal lamp to jump to a green lamp.
6. The signal light control method of claim 1, wherein the step of determining whether the monitored area is congested based on the video image comprises:
determining whether a congestion road section exists in the monitoring area according to the video image;
if so, determining whether the distance between the congested road section and an intersection cut-off line of the monitoring area is smaller than a second preset distance;
and when the distance is smaller than the second preset distance, determining that the monitoring area is in a congestion state.
7. The signal lamp control method of claim 1, wherein the step of setting the time for which the signal lamp is changed to the red light as the target time further comprises:
and returning to the step of determining the number of the vehicles which can be accommodated within a first preset distance from the intersection cut-off line of the monitoring area.
8. A signal lamp control apparatus, comprising:
the monitoring module is used for acquiring video images of each monitoring area and determining whether the monitoring area is in a congestion state or not according to the video images;
the first determining module is used for determining the number of vehicles which can be contained in the monitoring area according to the video image when the monitoring area is in a congestion state and a signal lamp corresponding to the monitoring area is a green lamp;
the second determining module is used for determining target vehicles needing to be intercepted outside a target intersection cut-off line according to the number of the vehicles, and the target intersection cut-off line is an intersection cut-off line in the monitoring area;
the third determining module is used for determining the time required by the target vehicle to reach the cut-off line of the target intersection according to the video image and the target vehicle;
and the setting module is used for setting the time for converting the signal lamp into the red light as the time.
9. A readable storage medium on which a program is stored, which program, when executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1-7 when executing the program.
CN202110130364.1A 2021-01-29 2021-01-29 Signal lamp control method and device, readable storage medium and electronic equipment Pending CN112767718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110130364.1A CN112767718A (en) 2021-01-29 2021-01-29 Signal lamp control method and device, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110130364.1A CN112767718A (en) 2021-01-29 2021-01-29 Signal lamp control method and device, readable storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112767718A true CN112767718A (en) 2021-05-07

Family

ID=75703988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110130364.1A Pending CN112767718A (en) 2021-01-29 2021-01-29 Signal lamp control method and device, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112767718A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114863701A (en) * 2022-04-26 2022-08-05 北京百度网讯科技有限公司 Traffic signal lamp control method, device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002039235A2 (en) * 2000-11-02 2002-05-16 Digimarc Corporation Batch identifier registration and embedding in media signals
CN101123041A (en) * 2006-08-10 2008-02-13 深圳市哈工大交通电子技术有限公司 A traffic signal lamp control method and traffic signal lamp system
CN101593431A (en) * 2008-05-26 2009-12-02 奥城同立科技开发(北京)有限公司 The method of automatically regulating vehicle traffic condition at crossing
CN104575047A (en) * 2015-01-09 2015-04-29 北京尚易德科技有限公司 System and method for preventing motor vehicle from rushing for green light to block road junction and running red light in reminding mode
CN108074403A (en) * 2018-01-18 2018-05-25 徐晓音 Control method and system that the traffic lights of crossing vehicle congestion is shown are prevented based on bidirectional camera shooting head
CN111899534A (en) * 2020-06-05 2020-11-06 西安理工大学 Traffic light intelligent control method based on road real-time capacity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002039235A2 (en) * 2000-11-02 2002-05-16 Digimarc Corporation Batch identifier registration and embedding in media signals
CN101123041A (en) * 2006-08-10 2008-02-13 深圳市哈工大交通电子技术有限公司 A traffic signal lamp control method and traffic signal lamp system
CN101593431A (en) * 2008-05-26 2009-12-02 奥城同立科技开发(北京)有限公司 The method of automatically regulating vehicle traffic condition at crossing
CN104575047A (en) * 2015-01-09 2015-04-29 北京尚易德科技有限公司 System and method for preventing motor vehicle from rushing for green light to block road junction and running red light in reminding mode
CN108074403A (en) * 2018-01-18 2018-05-25 徐晓音 Control method and system that the traffic lights of crossing vehicle congestion is shown are prevented based on bidirectional camera shooting head
CN111899534A (en) * 2020-06-05 2020-11-06 西安理工大学 Traffic light intelligent control method based on road real-time capacity

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114863701A (en) * 2022-04-26 2022-08-05 北京百度网讯科技有限公司 Traffic signal lamp control method, device, electronic equipment and medium
CN114863701B (en) * 2022-04-26 2024-01-16 北京百度网讯科技有限公司 Traffic signal lamp control method, device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN106384519B (en) Traffic light control method and device
CN111063205B (en) Signal lamp control method, device, equipment and storage medium
CN103903465B (en) A kind of congestion in road reason real-time release method and system
CN104021682B (en) Oversaturated intersection selfreparing control method
US20210043076A1 (en) Traffic monitoring apparatus, traffic monitoring system, traffic monitoring method, and non-transitory computer readable medium storing program
US20210012653A1 (en) Traffic monitoring apparatus, traffic monitoring system, traffic monitoring method, and non-transitory computer readable medium storing program
CN109118791B (en) Traffic control method and device for expressway ramp
CN110634307A (en) Traffic control method and device of front-end traffic control equipment
US20210027619A1 (en) Traffic monitoring apparatus, traffic monitoring system, traffic monitoring method, and non-transitory computer readable medium storing program
KR101065250B1 (en) control methode for time of green traffic light
CN109754619B (en) Single-point traffic signal control method and device, traffic signal machine and storage medium
CN112767718A (en) Signal lamp control method and device, readable storage medium and electronic equipment
US11302188B2 (en) Communication apparatus and computer readable medium
CN112349094B (en) Method and system for evaluating motor vehicle passing efficiency of signal lamp-free control intersection
CN116433988B (en) Multi-source heterogeneous image data classification treatment method
CN110706476A (en) Peak-balancing self-adaptive traffic control method and device
CN110718075A (en) Relay green wave traffic control method and device
CN111681432A (en) Method and device for determining congestion source of intersection containing signal lamp
US11967236B2 (en) Communication control apparatus, vehicle, computer-readable storage medium, and communication control method
CN114373314A (en) Intersection signal control method and equipment
CN114495526A (en) Variable lane control method, device and equipment integrating main road and auxiliary road control
JP2021152488A (en) Passing support device, passing support method, and passing support program
CN111627203B (en) System management method for traffic trunk road congestion avoidance
CN112837529A (en) Data processing method and system, acquisition device, processor and storage medium
US20240321089A1 (en) Signal control system, apparatus, method, and computer-readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210507