CN111899530A - Traffic light control method, system, mobile terminal and storage medium - Google Patents
Traffic light control method, system, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN111899530A CN111899530A CN202010573820.5A CN202010573820A CN111899530A CN 111899530 A CN111899530 A CN 111899530A CN 202010573820 A CN202010573820 A CN 202010573820A CN 111899530 A CN111899530 A CN 111899530A
- Authority
- CN
- China
- Prior art keywords
- traffic light
- vehicle
- waiting
- vehicles
- time length
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/07—Controlling traffic signals
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/07—Controlling traffic signals
- G08G1/08—Controlling traffic signals according to detected number or speed of vehicles
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/07—Controlling traffic signals
- G08G1/081—Plural intersections under common control
- G08G1/083—Controlling the allocation of time between phases of a cycle
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/09—Arrangements for giving variable traffic instructions
- G08G1/095—Traffic lights
Abstract
The invention provides a traffic light control method, a system, a mobile terminal and a storage medium, wherein the method comprises the following steps: detecting the number of waiting pedestrians on two sides of a target road to obtain the number of waiting pedestrians; if the number of waiting people is larger than a first preset number of people, detecting the number of vehicles running at the target road intersection to obtain the running number of the vehicles; if the number of the vehicles is less than a first preset number, determining the target time length of the traffic light according to the number of waiting people; and switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light, and switching the vehicle traffic light on the target road into a red light. The invention can judge whether to switch the traffic lights according to the waiting number and the vehicle running number, if the waiting number is greater than the first preset number and the vehicle running number is less than the first preset number, the pedestrian traffic lights are switched to the green lights and the vehicle traffic lights are switched to the red lights, thereby preventing the time waste and the traffic jam caused by adopting the fixed time control.
Description
Technical Field
The invention belongs to the technical field of traffic light control, and particularly relates to a traffic light control method, a traffic light control system, a mobile terminal and a storage medium.
Background
With the continuous and high-speed development of economy in China, the urban area is doubled or dozens of times, people live rich, many people live a life of 'having a house and a vehicle', the number of vehicles in various domestic large and medium cities is rapidly increased, and the traffic pressure is increased while the increase of the number of the vehicles brings convenience to the traveling of people. Because the motor vehicles develop too fast, the road construction is not enough, the occupation rate of public traffic is low, the urban layout structure is unreasonable and the like, the problems of road congestion, vehicle blockage and traffic order disorder are more and more prominent at present, and the progress of economic construction is seriously influenced, so that the control of traffic lights is more and more valued by people for ensuring the smoothness of road traffic.
The existing traffic lights are controlled by adopting fixed time, when vehicles or pedestrians in the direction of the green light drive away from a road intersection, the vehicles or the pedestrians need to wait for the set time and then switch to the red light, so that the time of the pedestrians or the vehicles waiting for the red light is wasted, the degree of congestion of the road is indirectly caused, and the phenomenon of traffic jam is easily caused.
Disclosure of Invention
The embodiment of the invention aims to provide a traffic light control method, a traffic light control system, a mobile terminal and a storage medium, and aims to solve the problem that the traffic jam phenomenon is easily caused by adopting fixed time control in the conventional traffic light control method.
The embodiment of the invention is realized in such a way that a traffic light control method comprises the following steps:
detecting the number of waiting pedestrians on two sides of a target road to obtain the number of waiting pedestrians;
if the waiting number of people is larger than a first preset number of people, detecting the number of vehicles running at the target road intersection to obtain the running number of the vehicles;
if the number of the vehicles is smaller than a first preset number, determining the target time length of the traffic light according to the number of waiting people;
and switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light, and switching the vehicle traffic light on the target road into a red light.
Further, the step of determining the target time length of the traffic light according to the number of the waiting people comprises the following steps:
acquiring the length of a zebra crossing on the target road, and inquiring the pedestrian default time length and a first time delay coefficient corresponding to the pedestrian default time length according to the length of the zebra crossing;
calculating the number difference between the waiting number and the first preset number, and calculating the product of the number difference and the first time length delay coefficient to obtain a first delay time length;
and calculating the sum of the first delay time length and the pedestrian default time length to obtain the traffic light target time length.
Further, after the step of switching the pedestrian traffic light on the target road to the green light according to the target time length of the traffic light, the method further comprises:
if the number of people waiting for pedestrians on two sides of the target road is detected to be less than a second preset number within the target time length of the traffic light, carrying out number detection on pedestrians walking on the intersection of the target road to obtain the number of walking people;
if the number of the walking people is less than a third preset number of people, detecting the number of the vehicles waiting to run on the target road to obtain the waiting number of the vehicles;
acquiring the length of a zebra crossing on the target road, and inquiring vehicle default time length and a second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing;
and if the waiting number of the vehicles is less than a second preset number, switching the pedestrian traffic light into a red light according to the default time length of the vehicles, and switching the traffic light of the vehicles into a green light.
Further, after the step of querying the vehicle default time length and the second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing, the method further includes:
if the vehicle waiting number is larger than the second preset number, calculating a number difference between the vehicle waiting number and the second preset number;
calculating the product of the quantity difference and the second time delay coefficient to obtain a second delay time, and calculating the sum of the second delay time and the vehicle default time to obtain the vehicle running time;
and switching the pedestrian traffic light into a red light according to the running time of the vehicle, and switching the vehicle traffic light into a green light.
Further, after the step of querying the vehicle default time length and the second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing, the method further includes:
and acquiring the number of lanes of the target road, and calculating the product of the number of lanes and a preset vehicle waiting coefficient to obtain the second preset number.
Further, the step of detecting the number of the vehicles running at the target road intersection to obtain the running number of the vehicles includes:
taking the zebra crossing of the target road as a reference line, translating the zebra crossing back to the vehicle traffic light by a preset distance, and setting an area formed between the translated zebra crossing and the vehicle traffic light as a vehicle driving area;
and detecting the quantity of the vehicles in the vehicle running area to obtain the running quantity of the vehicles.
Furthermore, after the step of translating away from the traffic light of the vehicle by a preset distance with the zebra crossing of the target road as a reference line, the method further comprises:
setting a region formed between the translated zebra crossing and the reference line as a vehicle waiting region;
and if the vehicles of the specified types exist in the vehicle waiting area, switching the traffic lights of the pedestrian to red lights and switching the traffic lights of the vehicles to green lights until the vehicles of the specified types pass through the vehicle running area.
Another object of an embodiment of the present invention is to provide a traffic light control system, including:
the pedestrian detection module is used for detecting the number of waiting pedestrians on two sides of the target road to obtain the number of waiting pedestrians;
the vehicle detection module is used for detecting the number of vehicles running at the target road intersection to obtain the running number of the vehicles if the waiting number is greater than a first preset number;
the time length determining module is used for determining the target time length of the traffic lights according to the waiting number of people if the number of the vehicles is smaller than a first preset number;
and the traffic light control module is used for switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light and switching the vehicle traffic light on the target road into a red light.
Another objective of an embodiment of the present invention is to provide a mobile terminal, including a storage device and a processor, where the storage device is used to store a computer program, and the processor runs the computer program to make the mobile terminal execute the traffic light control method.
Another object of an embodiment of the present invention is to provide a storage medium, which stores a computer program used in the mobile terminal, wherein the computer program, when executed by a processor, implements the steps of the traffic light control method.
According to the embodiment of the invention, whether the pedestrian traffic lights and the vehicle traffic lights need to be switched is judged by the design of detecting the number of the waiting pedestrians on the two sides of the target road and detecting the number of the vehicles running on the intersection of the target road, if the waiting pedestrians are detected to be more than the first preset number and the vehicle running number is detected to be less than the first preset number, the pedestrian traffic lights are automatically switched to the green lights and the vehicle traffic lights are automatically switched to the red lights, so that the time waste and the traffic jam caused by the fixed time control of the traffic lights are prevented, and the accuracy of controlling the display time of the traffic lights is effectively improved by the design of determining the target time of the traffic lights according to the waiting pedestrians.
Drawings
Fig. 1 is a flowchart of a traffic light control method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a traffic light control method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a traffic light control method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a traffic light control method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a traffic light control system according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
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.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Example one
Referring to fig. 1, a flowchart of a traffic light control method according to a first embodiment of the present invention includes the steps of:
step S10, detecting the number of waiting pedestrians on two sides of the target road to obtain the number of waiting pedestrians;
the shooting device is used for respectively shooting images of pedestrian waiting areas on two sides of the target road to obtain two shot images, and respectively identifying the images of the two shot images to obtain the waiting number.
Step S20, if the number of waiting people is larger than a first preset number of people, detecting the number of vehicles running at the intersection of the target road to obtain the running number of the vehicles;
the first preset number of people can be set according to the requirement, for example, the first preset number of people can be set to 20 people, 25 people or 30 people, and if the number of people waiting for the first preset number of people is greater than the first preset number of people, it is determined that more pedestrians are waiting for the road on the target road, and switching control of the traffic lights needs to be triggered.
Specifically, if the number of waiting people is greater than a first preset number of people, detecting the number of vehicles running at the target road intersection to judge whether the number of vehicles running at the current time at the target road intersection meets a traffic light switching condition, wherein the traffic light switching condition is used for judging whether to switch a pedestrian traffic light on the target road into a green light and switch a vehicle traffic light on the target road into a red light;
in this embodiment, the pedestrian traffic light is used for prompting whether pedestrians can pass through a zebra crossing that a target road arrives, and the vehicle traffic light is used for prompting a vehicle driver whether the vehicle driver can pass through the intersection of the target road.
Step S30, if the number of the vehicles is less than a first preset number, determining the target time length of the traffic light according to the waiting number of people;
in this step, if the number of vehicles running is less than the first preset number, it is determined that the number of vehicles currently running at the target road intersection meets the traffic light switching condition, that is, it is determined that there are more pedestrians waiting for the road on the target road and fewer vehicles currently running, and the traffic light can be switched, so as to prevent the waste of time for waiting for the pedestrians on the red light and improve the smoothness of the road traffic.
Specifically, the time length of the traffic light target is the display time length after the switching of the traffic light and the pedestrian traffic light, in the step, the time lengths of the traffic light targets correspondingly set by different waiting persons can be different, and when the waiting persons are more, the corresponding time lengths of the traffic light targets can be relatively prolonged for guaranteeing the passing of the pedestrians so as to prevent the pedestrians from waiting again.
In addition, in this step, the first preset number may be set as required or queried based on the width of the traffic lane or the number of lanes in the target road, for example, when the first preset number is set as required, the first preset number may be set as 5, 10, or 20, etc.;
when the first preset number is inquired based on the width or the number of the lanes in the target road, the width or the number of the lanes in the target road is obtained, and the width or the number of the lanes is matched with a vehicle driving number inquiry table prestored locally to obtain the first preset number, wherein the vehicle driving number stores the corresponding relation between the widths or the number of the lanes and the corresponding first preset number.
Step S40, switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light, and switching the vehicle traffic light on the target road into a red light;
when the target time length of the traffic light is determined, the pedestrian traffic light is switched from the red light to the yellow light, the vehicle traffic light is switched from the green light to the yellow light, the yellow light continuously flickers for 3 seconds, the pedestrian traffic light is switched to the green light, the vehicle traffic light is switched to the red light, and the control time length and the display time length of the pedestrian traffic light and the vehicle traffic light are set as the target time length of the traffic light.
In addition, in this embodiment, if it is detected that the number of vehicles to be driven at the target road intersection is smaller than the number threshold and the number of pedestrians waiting for or passing through the zebra crossing is smaller than the number threshold, the target time length of the traffic light is determined according to the number of vehicles to be driven, the traffic light of the pedestrians is switched to the red light according to the target time length of the traffic light, and the traffic light of the vehicles is switched to the green light, so that the waste of time of a vehicle driver caused by more vehicles waiting for to be driven and less pedestrians waiting for or passing through the zebra crossing is prevented, and the congestion of road traffic is prevented.
In the embodiment, the number of the pedestrians waiting on the two sides of the target road and the number of the vehicles running on the intersection of the target road are detected, whether the pedestrians waiting on the two sides of the target road need to be switched or not is judged, if the number of the pedestrians waiting on the intersection waiting road is larger than a first preset number and the number of the vehicles running on the intersection waiting road is smaller than the first preset number, the pedestrians waiting on the intersection waiting.
Example two
Referring to fig. 2, it is a flowchart of a traffic light control method according to a second embodiment of the present invention, where the second embodiment is used to refine step S30 in the first embodiment to refine and describe how to determine a target time duration of a traffic light according to the number of waiting people, and the method includes the steps of:
step S31, acquiring the length of the zebra crossing on the target road, and inquiring the pedestrian default time length and a first time delay coefficient corresponding to the pedestrian default time length according to the length of the zebra crossing;
the zebra crossing query table is pre-stored locally, and the zebra crossing query table stores corresponding relations between different target road numbers and corresponding zebra crossing lengths, so in this step, the road number of the target road is obtained, and the road number is matched with the zebra crossing query table to obtain the zebra crossing length, preferably, the road number can be stored in a text or digital manner, for example, the road number can be "001", "002", "eastern side road of safe road" or "western side road of safe road" or the like.
Optionally, in this step, a zebra crossing parameter lookup table is also stored locally in advance, a correspondence between different zebra crossing lengths and corresponding duration parameters is stored in the zebra crossing parameter lookup table, and the duration parameters include a pedestrian default duration and a first time delay coefficient corresponding to the pedestrian default duration.
Step S32, calculating the difference between the waiting number and the first preset number, and calculating the product of the difference and the first time delay coefficient to obtain a first delay time;
the target time lengths of the traffic lights corresponding to different waiting people can be different, so that in the step, the corresponding first delay time length is obtained through calculation by calculating the difference between the waiting people and a first preset number and calculating the product of the difference and a first time length delay coefficient;
step S33, calculating the sum of the first delay time length and the pedestrian default time length to obtain the traffic light target time length;
the sum of the first delay time and the pedestrian default time is set as the traffic light target time, so that the corresponding traffic light target time can be calculated according to different waiting people, the time for each pedestrian to cross the zebra crossing is guaranteed, and the travel safety of the pedestrian is improved.
In the embodiment, by acquiring the length of the zebra crossing on the target road and inquiring the design of the first time delay coefficient corresponding to the pedestrian default time and the pedestrian default time according to the length of the zebra crossing, the traffic light target time corresponding to the target road with different lengths of the zebra crossing can be calculated respectively, the accuracy of calculating the traffic light target time is improved, and by calculating the number difference between the waiting number and the first preset number and calculating the product of the number difference and the first time delay coefficient, the corresponding delay time can be calculated according to different numbers of pedestrians, so that the time for each pedestrian to cross the zebra crossing is ensured, and the travel safety of the pedestrian is improved.
EXAMPLE III
Referring to fig. 3, which is a flowchart of a traffic light control method according to a third embodiment of the present invention, compared to the first embodiment, the traffic light control method according to the present embodiment further includes step S50 to step S110 after step S40, which is detailed as follows:
step S50, if the number of people waiting for pedestrians on two sides of the target road is detected to be less than a second preset number within the target time length of the traffic light, detecting the number of pedestrians walking on the intersection of the target road to obtain the walking number;
the second preset number of people can be set according to the requirement or queried based on the length of the zebra crossing on the target road, for example, the second preset number of people can be set to be 5, 6 or 7;
specifically, in this step, the second preset number of people is used to determine whether the number of people waiting for pedestrians on both sides of the target road is in a state of a small number when the traffic light is in a green light state, and when it is determined that the number of people waiting for pedestrians on both sides of the target road is small, the number of people walking at the intersection of the target road is obtained.
Step S60, if the number of the walking people is less than a third preset number of people, detecting the number of the vehicles waiting to be driven on the target road to obtain the waiting number of the vehicles;
the third preset number of people can be set according to the requirement or inquired based on the length of the zebra crossing in the target road, and the third preset number of people is used for judging whether pedestrians walking on the target road intersection are in a state with a small number or not when the pedestrian traffic lights are in a green light state;
in the step, when the number of the walking people walking on the intersection of the target road is judged to be less, the waiting number of the vehicles on the target road is obtained, and the waiting number of the vehicles is the number of the vehicles waiting for passing the zebra crossing on the target road when the traffic lights of the vehicles are in a red light state.
Step S70, acquiring the length of the zebra crossing on the target road, and inquiring the vehicle default time length and a second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing;
the zebra crossing parameter query table is stored locally in advance, the corresponding relation between different zebra crossing lengths and corresponding duration parameters is stored in the zebra crossing parameter query table, and the duration parameters comprise vehicle default duration and second duration delay coefficients corresponding to the vehicle default duration.
Preferably, in this step, after the step of querying the vehicle default time length and the second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing, the method further includes:
and acquiring the number of lanes of the target road, and calculating the product of the number of lanes and a preset vehicle waiting coefficient to obtain the second preset number.
Step S80, if the vehicle waiting number is greater than the second preset number, calculating a number difference between the vehicle waiting number and the second preset number;
if the waiting number of the vehicles is greater than the second preset number, the number of the vehicles waiting to run is determined to be more, and the green light time delay is needed for the vehicles waiting to run, so that the accuracy of the subsequent delay time length calculation is improved by calculating the number difference between the waiting number of the vehicles and the second preset number.
Step S90, calculating the product of the quantity difference and the second time delay coefficient to obtain a second delay time, and calculating the sum of the second delay time and the vehicle default time to obtain the vehicle running time;
therefore, in the step, the second delay time length is obtained by calculating the product of the quantity difference and the second time length delay coefficient, and the design of the sum of the second delay time length and the vehicle default time length is calculated to obtain the corresponding second delay time length.
Step S100, switching the pedestrian traffic light into a red light according to the vehicle running time, and switching the vehicle traffic light into a green light;
step S110, if the waiting number of the vehicles is less than a second preset number, switching the pedestrian traffic light to a red light according to the default time length of the vehicles, and switching the traffic light to a green light;
if the waiting number of the vehicles is smaller than the second preset number, the waiting number of the vehicles is judged to be not required to be delayed by green lights, and therefore the traffic lights of the pedestrians are switched to the red lights according to the default time length of the vehicles, and the traffic lights of the vehicles are switched to the green lights.
In the embodiment, whether the number of pedestrians is smaller than a second preset number and the number of pedestrians is smaller than a third preset number is judged by judging whether the number of pedestrians waiting for in the target time length of the traffic light is smaller than the second preset number and the number of pedestrians waiting for in the third preset number, if the number of pedestrians waiting for is smaller than the second preset number and the number of pedestrians walking for is smaller than the third preset number, the number of pedestrians is judged to be less, the pedestrian traffic light and the vehicle traffic light can be switched, the accuracy of calculating the second delay time length is improved by inquiring the design of a second time length delay coefficient corresponding to the vehicle default time length and the vehicle default time length according to the length of the zebra crossing, and the design of the second delay time length is obtained by calculating the number difference between the number of the pedestrians waiting for the vehicle and the second preset number and calculating the product of the number difference and the second time length delay coefficient, therefore, the time delay corresponding to the waiting quantity of different vehicles can be calculated, and the accuracy of setting the running time of the vehicles is improved.
Example four
Please refer to fig. 4, which is a flowchart of a traffic light control method according to a fourth embodiment of the present invention, the fourth embodiment is used to refine step S20 in the first embodiment to refine how to detect the number of vehicles driving at the target road intersection, so as to obtain the number of vehicles driving, and the method includes the steps of:
step S21, taking the zebra crossing of the target road as a reference line, translating the zebra crossing back to the vehicle traffic light by a preset distance, and setting an area formed between the translated zebra crossing and the vehicle traffic light as a vehicle driving area;
the preset distance can be set according to requirements or inquired based on the length of the zebra crossing in the target road, and the accuracy of the subsequent vehicle running quantity detection is effectively improved by setting the area formed between the zebra crossing after translation and the vehicle traffic light as the vehicle running area.
Step S22, detecting the number of vehicles in the vehicle driving area to obtain the vehicle driving number;
step S23, setting an area formed between the translated zebra crossing and the reference line as a vehicle waiting area;
the area formed between the translated zebra crossing and the datum line is set as a vehicle waiting area, so that the accuracy of vehicle waiting number detection is effectively improved.
Step S24, if it is detected that the vehicle of the designated type exists in the vehicle waiting area, the traffic light of the pedestrian is switched to red light, and the traffic light of the vehicle is switched to green light until the vehicle of the designated type passes through the vehicle driving area;
the specific type of vehicle may be set according to requirements, for example, the specific type of vehicle may be an emergency type vehicle or a police car type vehicle.
Specifically, in this embodiment, by acquiring the captured image of the vehicle waiting area in real time, and comparing the similarity between the vehicle image in the captured image and the designated vehicle image prestored locally, if it is detected that the comparison value between any one of the captured images and any one of the designated vehicle images is greater than the comparison threshold value, it is determined that the vehicle corresponding to the vehicle image is the vehicle of the designated type.
In the embodiment, the design that the area formed between the translated zebra stripes and the vehicle traffic lights is set as the vehicle running area effectively improves the accuracy of the detection of the running quantity of the subsequent vehicles, the design that the area formed between the translated zebra stripes and the reference lines is set as the vehicle waiting area effectively improves the accuracy of the detection of the vehicle waiting quantity, the design that the similarity of the vehicle image in the shot image is compared with the designated vehicle image prestored locally is adopted to judge whether the designated type of vehicles exists in the vehicle waiting area, and when the designated type of vehicles exists in the vehicle waiting area, the pedestrian traffic lights are switched to the red lights and the vehicle traffic lights are switched to the green lights so as to facilitate the passing of the designated type of vehicles, and the flexibility of the traffic lights is improved.
EXAMPLE five
Referring to fig. 5, a schematic structural diagram of a traffic light control system 100 according to a fifth embodiment of the present invention includes: pedestrian detection module 10, vehicle detection module 11, duration confirm module 12 and traffic light control module 13, wherein:
and the pedestrian detection module 10 is used for detecting the number of waiting pedestrians on two sides of the target road to obtain the number of waiting pedestrians.
And the vehicle detection module 11 is configured to detect the number of vehicles running at the target road intersection if the number of waiting people is greater than a first preset number of people, so as to obtain the running number of the vehicles.
Wherein the vehicle detection module 11 is further configured to: taking the zebra crossing of the target road as a reference line, translating the zebra crossing back to the vehicle traffic light by a preset distance, and setting an area formed between the translated zebra crossing and the vehicle traffic light as a vehicle driving area;
and detecting the quantity of the vehicles in the vehicle running area to obtain the running quantity of the vehicles.
Preferably, the vehicle detection module 11 is further configured to: setting a region formed between the translated zebra crossing and the reference line as a vehicle waiting region;
and if the vehicles of the specified types exist in the vehicle waiting area, switching the traffic lights of the pedestrian to red lights and switching the traffic lights of the vehicles to green lights until the vehicles of the specified types pass through the vehicle running area.
And the duration determining module 12 is configured to determine the target duration of the traffic light according to the number of waiting people if the number of vehicles running is smaller than a first preset number.
Wherein the duration determining module 12 is further configured to: acquiring the length of a zebra crossing on the target road, and inquiring the pedestrian default time length and a first time delay coefficient corresponding to the pedestrian default time length according to the length of the zebra crossing;
calculating the number difference between the waiting number and the first preset number, and calculating the product of the number difference and the first time length delay coefficient to obtain a first delay time length;
and calculating the sum of the first delay time length and the pedestrian default time length to obtain the traffic light target time length.
And the traffic light control module 13 is used for switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light and switching the vehicle traffic light on the target road into a red light.
If the number of people waiting for pedestrians on two sides of the target road is detected to be less than a second preset number within the target time length of the traffic light, detecting the number of pedestrians walking on the intersection of the target road to obtain the number of walking people;
if the number of the walking people is less than a third preset number of people, detecting the number of the vehicles waiting to run on the target road to obtain the waiting number of the vehicles;
acquiring the length of a zebra crossing on the target road, and inquiring vehicle default time length and a second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing;
and if the waiting number of the vehicles is less than a second preset number, switching the pedestrian traffic light into a red light according to the default time length of the vehicles, and switching the traffic light of the vehicles into a green light.
Preferably, the traffic light control module 13 is further configured to: if the vehicle waiting number is larger than the second preset number, calculating a number difference between the vehicle waiting number and the second preset number;
calculating the product of the quantity difference and the second time delay coefficient to obtain a second delay time, and calculating the sum of the second delay time and the vehicle default time to obtain the vehicle running time;
and switching the pedestrian traffic light into a red light according to the running time of the vehicle, and switching the vehicle traffic light into a green light.
Further, the traffic light control module 13 is further configured to: and acquiring the number of lanes of the target road, and calculating the product of the number of lanes and a preset vehicle waiting coefficient to obtain the second preset number.
In the embodiment, the number of the pedestrians waiting on the two sides of the target road and the number of the vehicles running on the intersection of the target road are detected, whether the pedestrians waiting on the two sides of the target road need to be switched or not is judged, if the number of the pedestrians waiting on the intersection waiting road is larger than a first preset number and the number of the vehicles running on the intersection waiting road is smaller than the first preset number, the pedestrians waiting on the intersection waiting.
EXAMPLE six
Referring to fig. 6, a mobile terminal 101 according to a sixth embodiment of the present invention includes a storage device and a processor, where the storage device is used to store a computer program, and the processor runs the computer program to enable the mobile terminal 101 to execute the traffic light control method.
The present embodiment also provides a storage medium on which a computer program used in the above-mentioned mobile terminal 101 is stored, which when executed, includes the steps of:
detecting the number of waiting pedestrians on two sides of a target road to obtain the number of waiting pedestrians;
if the waiting number of people is larger than a first preset number of people, detecting the number of vehicles running at the target road intersection to obtain the running number of the vehicles;
if the number of the vehicles is smaller than a first preset number, determining the target time length of the traffic light according to the number of waiting people;
and switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light, and switching the vehicle traffic light on the target road into a red light. The storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is used as an example, in practical applications, the above-mentioned function distribution may be performed by different functional units or modules according to needs, that is, the internal structure of the storage device is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or may be implemented in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application.
It will be understood by those skilled in the art that the configuration shown in fig. 5 is not intended to limit the traffic light control system of the present invention and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components, and that the traffic light control method of fig. 1-4 may be implemented using more or fewer components than those shown in fig. 5, or some components in combination, or a different arrangement of components. The units, modules, etc. referred to herein are a series of computer programs that can be executed by a processor (not shown) in the target traffic light control system and that function to perform a specific function, and may all be stored in a storage device (not shown) of the target traffic light control system.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (10)
1. A traffic light control method, characterized in that the method comprises:
detecting the number of waiting pedestrians on two sides of a target road to obtain the number of waiting pedestrians;
if the waiting number of people is larger than a first preset number of people, detecting the number of vehicles running at the target road intersection to obtain the running number of the vehicles;
if the number of the vehicles is smaller than a first preset number, determining the target time length of the traffic light according to the number of waiting people;
and switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light, and switching the vehicle traffic light on the target road into a red light.
2. The traffic light control method according to claim 1, wherein the step of determining the target duration of the traffic light according to the number of waiting persons comprises:
acquiring the length of a zebra crossing on the target road, and inquiring the pedestrian default time length and a first time delay coefficient corresponding to the pedestrian default time length according to the length of the zebra crossing;
calculating the number difference between the waiting number and the first preset number, and calculating the product of the number difference and the first time length delay coefficient to obtain a first delay time length;
and calculating the sum of the first delay time length and the pedestrian default time length to obtain the traffic light target time length.
3. The traffic light control method of claim 1, wherein after the step of switching the pedestrian traffic light on the target road to a green light according to the traffic light target duration, the method further comprises:
if the number of people waiting for pedestrians on two sides of the target road is detected to be less than a second preset number within the target time length of the traffic light, carrying out number detection on pedestrians walking on the intersection of the target road to obtain the number of walking people;
if the number of the walking people is less than a third preset number of people, detecting the number of the vehicles waiting to run on the target road to obtain the waiting number of the vehicles;
acquiring the length of a zebra crossing on the target road, and inquiring vehicle default time length and a second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing;
and if the waiting number of the vehicles is less than a second preset number, switching the pedestrian traffic light into a red light according to the default time length of the vehicles, and switching the traffic light of the vehicles into a green light.
4. The traffic light control method according to claim 3, wherein after the step of querying the vehicle default time length and the second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing, the method further comprises:
if the vehicle waiting number is larger than the second preset number, calculating a number difference between the vehicle waiting number and the second preset number;
calculating the product of the quantity difference and the second time delay coefficient to obtain a second delay time, and calculating the sum of the second delay time and the vehicle default time to obtain the vehicle running time;
and switching the pedestrian traffic light into a red light according to the running time of the vehicle, and switching the vehicle traffic light into a green light.
5. The traffic light control method according to claim 3, wherein after the step of querying the vehicle default time length and the second time length delay coefficient corresponding to the vehicle default time length according to the length of the zebra crossing, the method further comprises:
and acquiring the number of lanes of the target road, and calculating the product of the number of lanes and a preset vehicle waiting coefficient to obtain the second preset number.
6. The traffic light control method according to claim 1, wherein the step of detecting the number of vehicles traveling at the target road intersection to obtain the number of vehicles traveling comprises:
taking the zebra crossing of the target road as a reference line, translating the zebra crossing back to the vehicle traffic light by a preset distance, and setting an area formed between the translated zebra crossing and the vehicle traffic light as a vehicle driving area;
and detecting the quantity of the vehicles in the vehicle running area to obtain the running quantity of the vehicles.
7. The traffic light control method of claim 6, wherein after the step of translating away from the vehicle traffic light by a preset distance with the zebra crossing of the target road as a reference line, the method further comprises:
setting a region formed between the translated zebra crossing and the reference line as a vehicle waiting region;
and if the vehicles of the specified types exist in the vehicle waiting area, switching the traffic lights of the pedestrian to red lights and switching the traffic lights of the vehicles to green lights until the vehicles of the specified types pass through the vehicle running area.
8. A traffic light control system, characterized in that the system comprises:
the pedestrian detection module is used for detecting the number of waiting pedestrians on two sides of the target road to obtain the number of waiting pedestrians;
the vehicle detection module is used for detecting the number of vehicles running at the target road intersection to obtain the running number of the vehicles if the waiting number is greater than a first preset number;
the time length determining module is used for determining the target time length of the traffic lights according to the waiting number of people if the number of the vehicles is smaller than a first preset number;
and the traffic light control module is used for switching the pedestrian traffic light on the target road into a green light according to the target time length of the traffic light and switching the vehicle traffic light on the target road into a red light.
9. A mobile terminal, characterized by comprising a storage device for storing a computer program and a processor for executing the computer program to cause the mobile terminal to perform the traffic light control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that it stores a computer program for use in a mobile terminal according to claim 9, which computer program, when being executed by a processor, carries out the steps of the traffic light control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010573820.5A CN111899530B (en) | 2020-06-22 | 2020-06-22 | Traffic light control method, system, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010573820.5A CN111899530B (en) | 2020-06-22 | 2020-06-22 | Traffic light control method, system, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111899530A true CN111899530A (en) | 2020-11-06 |
CN111899530B CN111899530B (en) | 2022-02-01 |
Family
ID=73206916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010573820.5A Active CN111899530B (en) | 2020-06-22 | 2020-06-22 | Traffic light control method, system, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111899530B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112837541A (en) * | 2020-12-31 | 2021-05-25 | 遵义师范学院 | Intelligent traffic vehicle flow management method based on improved SSD |
CN113362620A (en) * | 2021-06-23 | 2021-09-07 | 智道网联科技(北京)有限公司 | Traffic light control method and device |
CN113538943A (en) * | 2021-07-19 | 2021-10-22 | 昭通亮风台信息科技有限公司 | Traffic light control method and system |
CN114639252A (en) * | 2022-02-23 | 2022-06-17 | 东南大学 | Signal lamp timing setting method for signal control pedestrian crossing |
CN114842654A (en) * | 2022-04-25 | 2022-08-02 | 中国电信股份有限公司 | Traffic signal lamp control method and device, electronic equipment and storage medium |
CN114973718A (en) * | 2022-05-19 | 2022-08-30 | 重庆捷尔博模具科技有限公司 | Intelligent traffic light device |
CN115938141A (en) * | 2023-03-15 | 2023-04-07 | 昆明理工大学 | Sidewalk traffic signal lamp with dynamic identification and intelligent adjustment functions |
CN116721560A (en) * | 2023-08-03 | 2023-09-08 | 华睿交通科技股份有限公司 | Traffic light system based on laser radar |
CN117079448A (en) * | 2023-08-23 | 2023-11-17 | 南京鑫荣汇信息科技有限公司 | Induction system and method for intelligent panel active luminous sign |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101593415A (en) * | 2008-05-26 | 2009-12-02 | 奥城同立科技开发(北京)有限公司 | The crosswalk traffic-light of highly effective and safe and motor vehicle control method |
CN101593432A (en) * | 2008-05-26 | 2009-12-02 | 奥城同立科技开发(北京)有限公司 | Automatically control the crosswalk traffic-light control method of clearance time |
CN103295404A (en) * | 2013-06-19 | 2013-09-11 | 东南大学 | Road section pedestrian traffic signal control system based on pedestrian crossing clearance time |
CN103745604A (en) * | 2014-01-27 | 2014-04-23 | 北京大学 | Humanized efficient pedestrian crossing facility and control method thereof |
CN104282158A (en) * | 2013-07-10 | 2015-01-14 | 杭州海康威视数字技术股份有限公司 | Intelligent control method and system for traffic lights |
CN104700613A (en) * | 2015-02-27 | 2015-06-10 | 惠州Tcl移动通信有限公司 | Method for leading blind man across road, mobile terminal and road indication device |
ES2561912A1 (en) * | 2014-08-28 | 2016-03-01 | Fundación Centro De Innovación De Infraestructuras Inteligentes | Procedure for the monitoring and management of security in pedestrian crossings and device for its realization (Machine-translation by Google Translate, not legally binding) |
CN105513376A (en) * | 2015-11-20 | 2016-04-20 | 小米科技有限责任公司 | Traffic light adjustment method and device |
CN107170255A (en) * | 2017-06-19 | 2017-09-15 | 上海斐讯数据通信技术有限公司 | The intelligent control method and system of a kind of crosswalk traffic-light |
CN108091147A (en) * | 2017-12-25 | 2018-05-29 | 重庆冀繁科技发展有限公司 | Wagon flow monitoring method based on satellite positioning Tachographs terminal |
WO2018098161A1 (en) * | 2016-11-22 | 2018-05-31 | Dispatch, Inc. | Methods for autonomously navigating across uncontrolled and controlled intersections |
KR20180057826A (en) * | 2016-11-23 | 2018-05-31 | 윤종식 | Method for preventing accident in cross road of school zone and system of the same |
CN108171996A (en) * | 2018-01-04 | 2018-06-15 | 重庆公共运输职业学院 | A kind of self-adapting intelligent traffic lights control method |
CN108615378A (en) * | 2018-06-07 | 2018-10-02 | 武汉理工大学 | A kind of traffic light time regulation and control method at two-way multilane zebra stripes crossing |
KR20180119266A (en) * | 2017-04-25 | 2018-11-02 | 김은태 | Control apparatus of smart traffic light |
CN110969866A (en) * | 2019-11-13 | 2020-04-07 | 北京百度网讯科技有限公司 | Signal lamp timing method and device, electronic equipment and storage medium |
-
2020
- 2020-06-22 CN CN202010573820.5A patent/CN111899530B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101593432A (en) * | 2008-05-26 | 2009-12-02 | 奥城同立科技开发(北京)有限公司 | Automatically control the crosswalk traffic-light control method of clearance time |
CN101593415A (en) * | 2008-05-26 | 2009-12-02 | 奥城同立科技开发(北京)有限公司 | The crosswalk traffic-light of highly effective and safe and motor vehicle control method |
CN103295404A (en) * | 2013-06-19 | 2013-09-11 | 东南大学 | Road section pedestrian traffic signal control system based on pedestrian crossing clearance time |
CN104282158A (en) * | 2013-07-10 | 2015-01-14 | 杭州海康威视数字技术股份有限公司 | Intelligent control method and system for traffic lights |
CN103745604A (en) * | 2014-01-27 | 2014-04-23 | 北京大学 | Humanized efficient pedestrian crossing facility and control method thereof |
ES2561912A1 (en) * | 2014-08-28 | 2016-03-01 | Fundación Centro De Innovación De Infraestructuras Inteligentes | Procedure for the monitoring and management of security in pedestrian crossings and device for its realization (Machine-translation by Google Translate, not legally binding) |
CN104700613A (en) * | 2015-02-27 | 2015-06-10 | 惠州Tcl移动通信有限公司 | Method for leading blind man across road, mobile terminal and road indication device |
CN105513376A (en) * | 2015-11-20 | 2016-04-20 | 小米科技有限责任公司 | Traffic light adjustment method and device |
WO2018098161A1 (en) * | 2016-11-22 | 2018-05-31 | Dispatch, Inc. | Methods for autonomously navigating across uncontrolled and controlled intersections |
KR20180057826A (en) * | 2016-11-23 | 2018-05-31 | 윤종식 | Method for preventing accident in cross road of school zone and system of the same |
KR20180119266A (en) * | 2017-04-25 | 2018-11-02 | 김은태 | Control apparatus of smart traffic light |
CN107170255A (en) * | 2017-06-19 | 2017-09-15 | 上海斐讯数据通信技术有限公司 | The intelligent control method and system of a kind of crosswalk traffic-light |
CN108091147A (en) * | 2017-12-25 | 2018-05-29 | 重庆冀繁科技发展有限公司 | Wagon flow monitoring method based on satellite positioning Tachographs terminal |
CN108171996A (en) * | 2018-01-04 | 2018-06-15 | 重庆公共运输职业学院 | A kind of self-adapting intelligent traffic lights control method |
CN108615378A (en) * | 2018-06-07 | 2018-10-02 | 武汉理工大学 | A kind of traffic light time regulation and control method at two-way multilane zebra stripes crossing |
CN110969866A (en) * | 2019-11-13 | 2020-04-07 | 北京百度网讯科技有限公司 | Signal lamp timing method and device, electronic equipment and storage medium |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112837541B (en) * | 2020-12-31 | 2022-04-29 | 遵义师范学院 | Intelligent traffic vehicle flow management method based on improved SSD |
CN112837541A (en) * | 2020-12-31 | 2021-05-25 | 遵义师范学院 | Intelligent traffic vehicle flow management method based on improved SSD |
CN113362620A (en) * | 2021-06-23 | 2021-09-07 | 智道网联科技(北京)有限公司 | Traffic light control method and device |
CN113538943A (en) * | 2021-07-19 | 2021-10-22 | 昭通亮风台信息科技有限公司 | Traffic light control method and system |
CN114639252A (en) * | 2022-02-23 | 2022-06-17 | 东南大学 | Signal lamp timing setting method for signal control pedestrian crossing |
CN114842654B (en) * | 2022-04-25 | 2023-12-22 | 中国电信股份有限公司 | Traffic signal lamp control method, device, electronic equipment and storage medium |
CN114842654A (en) * | 2022-04-25 | 2022-08-02 | 中国电信股份有限公司 | Traffic signal lamp control method and device, electronic equipment and storage medium |
CN114973718A (en) * | 2022-05-19 | 2022-08-30 | 重庆捷尔博模具科技有限公司 | Intelligent traffic light device |
CN115938141A (en) * | 2023-03-15 | 2023-04-07 | 昆明理工大学 | Sidewalk traffic signal lamp with dynamic identification and intelligent adjustment functions |
CN116721560A (en) * | 2023-08-03 | 2023-09-08 | 华睿交通科技股份有限公司 | Traffic light system based on laser radar |
CN116721560B (en) * | 2023-08-03 | 2023-11-10 | 华睿交通科技股份有限公司 | Traffic light system based on laser radar |
CN117079448A (en) * | 2023-08-23 | 2023-11-17 | 南京鑫荣汇信息科技有限公司 | Induction system and method for intelligent panel active luminous sign |
CN117079448B (en) * | 2023-08-23 | 2024-03-15 | 南京鑫荣汇信息科技有限公司 | Induction system and method for intelligent panel active luminous sign |
Also Published As
Publication number | Publication date |
---|---|
CN111899530B (en) | 2022-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111899530B (en) | Traffic light control method, system, mobile terminal and storage medium | |
KR102408743B1 (en) | Method and system for determining whether a vehicle can enter a road | |
US9848473B1 (en) | Road lamp control method | |
CN109591794B (en) | Intelligent start-stop method and system | |
US20210101622A1 (en) | Method for processing vehicle driving mode switching, vehicle and server | |
CN101833863B (en) | Method and device for detecting vehicle flow speed, as well as method and system for controlling traffic lights | |
KR20200116404A (en) | Method, device, equipment and storage medium for generating defensive driving policy | |
CN109584583B (en) | Intelligent refined control system and method for same-phase right-turn vehicles and street-crossing pedestrians | |
JP4541609B2 (en) | Stop line recognition device and vehicle driving support device using the stop line recognition device | |
CN111542463B (en) | Driving support device | |
CN103596804A (en) | Method and control appliance for switching on a main beam of a vehicle | |
CN110782681A (en) | Traffic indicator light self-adaptive control method, device, terminal and storage medium | |
CN110969879A (en) | Automatic control method and system of traffic signal lamp | |
US20220153267A1 (en) | Driving assistance apparatus | |
US11535249B2 (en) | Vehicle action determining method and vehicle action determining device | |
JP2004102827A (en) | Vehicle periphery monitoring apparatus | |
CN112738958A (en) | Real-time driving system for vehicle steering lamp | |
CN110015290B (en) | Control method for intelligent driving system | |
JP4626054B2 (en) | Vehicle travel control device | |
CN111591286A (en) | Collision avoidance method and system based on traffic light signals and vehicle | |
CN110706476A (en) | Peak-balancing self-adaptive traffic control method and device | |
CN114688506A (en) | Intelligent street lamp illumination control method and device, electronic equipment and storage medium | |
JP2004094733A (en) | Vehicular driving support device | |
CN113593259A (en) | Traffic safety system | |
EP3330128B1 (en) | Control unit, vehicle and method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |