CN109102706B - Method, device and system for controlling traffic light - Google Patents

Method, device and system for controlling traffic light Download PDF

Info

Publication number
CN109102706B
CN109102706B CN201710470571.5A CN201710470571A CN109102706B CN 109102706 B CN109102706 B CN 109102706B CN 201710470571 A CN201710470571 A CN 201710470571A CN 109102706 B CN109102706 B CN 109102706B
Authority
CN
China
Prior art keywords
intersection
detection
detection intersection
driving
security
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.)
Active
Application number
CN201710470571.5A
Other languages
Chinese (zh)
Other versions
CN109102706A (en
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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201710470571.5A priority Critical patent/CN109102706B/en
Publication of CN109102706A publication Critical patent/CN109102706A/en
Application granted granted Critical
Publication of CN109102706B publication Critical patent/CN109102706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles

Abstract

The embodiment of the invention discloses a method, a device and a system for controlling a traffic light, and belongs to the technical field of Internet. The method comprises the following steps: acquiring license plate numbers in images shot by image shooting devices of all detection intersections; when detecting that the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of a leading vehicle of a security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, acquiring a first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is a next intersection of the first detection intersection on the security driving route; and controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction. By adopting the invention, the consumption of a large amount of manpower can be avoided.

Description

Method, device and system for controlling traffic light
Technical Field
The invention relates to the technical field of internet, in particular to a method, a device and a system for controlling a traffic light.
Background
In daily life, in many cases, it is necessary to perform a security task on a certain route at a certain time, where the security task is to ensure that each time a certain vehicle team passes through an intersection provided with a traffic light on a predetermined route, the intersection is in a traffic state so that the vehicle team can directly pass through the intersection, for example, in order to enable the vehicle team escorting criminals to smoothly pass through the certain route, a worker can perform the security task.
At present, the method for executing security tasks generally comprises the following steps: when the front vehicles of the motorcade pass through the intersection, the working personnel at the intersection can stop commanding traffic and recover the traffic light to command traffic.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
based on the above manner of executing security tasks, there are often many intersections on the route that the fleet passes through, and in such a case, a large amount of manpower needs to be invested, thereby resulting in a large amount of manpower consumption.
Disclosure of Invention
In order to solve the problem that a large amount of manpower is consumed in the prior art, the embodiment of the invention provides a method, a device and a system for controlling a traffic light. The technical scheme is as follows:
in a first aspect, a method of controlling a traffic light is provided, the method comprising:
acquiring license plate numbers in images shot by image shooting devices of all detection intersections, wherein the detection intersections are intersections on a security driving route of a security fleet or intersections before a starting point of the security driving route;
when detecting that a license plate number in an image shot by an image shooting device of a first detection intersection is a license plate number of a leading vehicle of a security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, acquiring a first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is a next intersection of the first detection intersection on the security driving route;
and controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
Optionally, the method further includes:
and in the process of controlling the traffic lights at the second detection intersection, when the license plate number in the image shot by the image shooting device at the second detection intersection is detected to be the license plate number of the vehicle at the tail of the team of the security fleet, the control of the traffic lights at the second detection intersection is cancelled.
Therefore, after the vehicle at the tail of the team passes through the second detection intersection, the control of the traffic light at the second detection intersection can be cancelled in time.
Optionally, the method further includes:
in the process of controlling the traffic light at the second detection intersection, when the license plate number in the image shot by the image shooting device at the first detection intersection is detected to be the license plate number of the team tail vehicle of the security fleet, calculating a first driving time length of the team tail vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the team tail vehicle and the distance value between the first detection intersection and the second detection intersection, setting a second driving time length according to the first driving time length and starting timing, wherein the second driving time length is equal to or longer than the first driving time length;
and when the timing duration is equal to the second driving duration, canceling the control of the traffic light of the second detection intersection.
Therefore, under the condition that the image shooting device at the second detection intersection cannot correctly detect the license plate number of the vehicle at the tail of the team, the control on the traffic light at the second detection intersection can be timely cancelled after the vehicle at the tail of the team passes through the second detection intersection.
Optionally, the controlling the traffic light of the second detection intersection to be in a passing state in the first traveling direction includes:
when the license plate number in the image shot by the image shooting device of the first detection intersection is detected to be the license plate number of the leading vehicle, the traffic light of the second detection intersection is controlled to be in a passing state in the first running direction; alternatively, the first and second electrodes may be,
calculating a third running time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired running speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, setting a fourth running time length according to the third running time length and starting timing, wherein the fourth running time length is equal to or shorter than the third running time length;
and when the timing duration is equal to the fourth driving duration, controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
Therefore, when the distance value between the first detection intersection and the second detection intersection is larger, the control time of the traffic light of the second detection intersection is prevented from being too long, and the normal traffic order is prevented from being hindered.
Optionally, the method further includes:
if the second detection intersection is not provided with an image shooting device and the second detection intersection is not the last intersection on the security driving route, calculating a fifth driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, or calculating a sixth driving time length of the leading vehicle between the first detection intersection and the third detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, wherein the third detection intersection is a next intersection of the second detection intersection on the security driving route, setting a seventh driving time length according to the fifth driving time length and starting timing, and the seventh driving time length is equal to or shorter than the fifth driving time length, or setting an eighth running time length according to the sixth running time length and starting timing, wherein the eighth running time length is equal to or shorter than the sixth running time length;
when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
and controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction.
Optionally, the method further includes:
if the third detection intersection is not provided with the image shooting device, when detecting that the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of the team tail vehicle of the security fleet, calculating ninth running time of the team tail vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the team tail vehicle and the distance value between the first detection intersection and the third detection intersection, setting tenth running time according to the ninth running time and starting timing, wherein the tenth running time is equal to or longer than the ninth running time;
and in the process of controlling the traffic light at the third detection intersection, when the timing duration is equal to the eighth driving duration, canceling the control of the traffic light at the third detection intersection.
In a second aspect, there is provided an apparatus for controlling a traffic light, the apparatus comprising:
the receiving module is used for receiving a notice that a leading vehicle of a security fleet reaches a first detection intersection;
the acquisition module is used for judging whether the first detection intersection is any detection intersection except the last intersection on the security driving route of the security fleet and acquiring a first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is the next intersection of the first detection intersection on the security driving route;
and the sending module is used for sending a notice for controlling the traffic light of the second detection intersection to be in a passing state in the first running direction.
Optionally, the receiving module is configured to:
receiving a notice that the vehicle at the tail of the team of the security fleet reaches a second detection intersection;
the sending module is configured to:
sending a notification to cancel control of traffic lights at the second detected intersection.
Optionally, the apparatus further comprises:
the first calculation module is used for calculating a first running time of the team tail vehicle between the first detection intersection and the second detection intersection according to the acquired running speed of the team tail vehicle and the distance value between the first detection intersection and the second detection intersection when a notice that a leading vehicle of a security team arrives at the first detection intersection is received in the process of controlling the traffic light of the second detection intersection, setting a second running time according to the first running time and starting timing, wherein the second running time is equal to or longer than the first running time;
the sending module is configured to:
and when the timing duration is equal to the second driving duration, sending a notification for canceling the control of the traffic light of the second detection intersection.
Optionally, the sending module is configured to:
when receiving a notice that a leading vehicle of a security fleet reaches a first detection intersection, sending a notice that a traffic light controlling a second detection intersection is in a passing state in the first driving direction; alternatively, the first and second electrodes may be,
the device further comprises:
the second calculation module is used for calculating a third driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, setting a fourth driving time length according to the third driving time length and starting timing, wherein the fourth driving time length is equal to or shorter than the third driving time length;
the sending module is configured to:
and when the timing duration is equal to the fourth driving duration, sending a notice for controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
Optionally, the apparatus further comprises:
a third calculating module, configured to calculate a fifth driving time of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance between the first detection intersection and the second detection intersection, or calculate a sixth driving time of the leading vehicle between the first detection intersection and a third detection intersection according to the acquired driving speed of the leading vehicle and the distance between the first detection intersection and the third detection intersection, if the second detection intersection is not provided with the image capturing device, and the second detection intersection is not the last intersection on the security driving route, and the sixth driving time is set and timed according to the fifth driving time, the seventh driving time length is equal to or shorter than the fifth driving time length, or an eighth driving time length is set according to the sixth driving time length and timing is started, and the eighth driving time length is equal to or shorter than the sixth driving time length;
the obtaining module is further configured to: when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
the sending module is further configured to: and sending a notice for controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction.
Optionally, the third computing module is further configured to:
if the third detection intersection is not provided with the image shooting device, when a notification that a team tail vehicle of the security fleet reaches the first detection intersection is received, calculating ninth running time of the team tail vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the team tail vehicle and the distance value between the first detection intersection and the third detection intersection, setting tenth running time according to the ninth running time and starting timing, wherein the tenth running time is equal to or longer than the ninth running time;
the sending module is further configured to: and in the process of controlling the traffic light at the third detection intersection, when the timing duration is equal to the tenth driving duration, sending a notification for canceling the control of the traffic light at the third detection intersection.
In a third aspect, a system for controlling traffic lights is provided, the system comprising a card recognition server, a security server, and a signal control server, wherein:
the license plate recognition server acquires license plate numbers in images shot by image shooting devices of all detection intersections, wherein the detection intersections are intersections on a security driving route of a security fleet or intersections before a starting point of the security driving route;
the license plate recognition server judges whether the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of the leading vehicle of the security fleet, and sends a notification that the leading vehicle of the security fleet reaches the first detection intersection to the security server when the judgment result is yes;
the security server judges whether the first detection intersection is any detection intersection except the last intersection on the security driving route, and acquires a first driving direction of the security driving route at a second detection intersection when the judgment result is yes, wherein the second detection intersection is the next intersection of the first detection intersection on the security driving route;
the security server sends a notice for controlling the traffic light of the second detection intersection to be in a passing state in the first running direction to the signal control server;
and the signal control server controls the traffic light of the second detection intersection to be in a passing state in the first running direction.
Optionally, the license plate recognition server determines whether a license plate number in an image captured by the image capture device at the second detection intersection is a license plate number of a vehicle at the end of the fleet of the security fleet, and sends a notification that the vehicle at the end of the fleet of the security fleet reaches the second detection intersection to the security server when the determination result is yes;
the security server sends a notification for canceling the control of the traffic light of the second detection intersection to the signal control server when receiving the notification that the vehicle at the tail of the team of the security fleet reaches the second detection intersection in the process of controlling the traffic light of the second detection intersection;
and the signal control server cancels the control of the traffic light of the second detection intersection.
Optionally, if the second detection intersection is not provided with an image capturing device, and the second detection intersection is not the last intersection on the security driving route, the security server calculates a fifth driving time of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, or calculates a sixth driving time of the leading vehicle between the first detection intersection and a third detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, the third detection intersection is the next intersection of the second detection intersection on the security driving route, sets a seventh driving time according to the fifth driving time and starts timing, the seventh driving time length is equal to or shorter than the fifth driving time length, or an eighth driving time length is set according to the sixth driving time length and timing is started, and the eighth driving time length is equal to or shorter than the sixth driving time length; when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
the security server sends a notice for controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction to the signal control server;
and the signal control server controls the traffic light of the third detection intersection to be in a passing state in the second driving direction.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, a server can obtain the license plate number in the image shot by the image shooting device of each detection intersection, wherein the detection intersection can be an intersection on a security driving route of a security fleet or a previous intersection at the starting point of the security driving route, and when the server detects that the license plate number in the image shot by the image shooting device of a first detection intersection is the license plate number of a leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, the server can obtain the first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is a next intersection of the first detection intersection on the security driving route, and further can control the traffic light of the second detection intersection to be in a passing state in the first driving direction. Therefore, the server can automatically judge the intersection where the security fleet is located, and further can control the traffic light of the intersection to be in a passing state in the traveling direction of the security fleet before the security fleet passes through a certain intersection, so that a large amount of manpower is not required to be invested for executing security tasks, and further, a large amount of manpower consumption can be avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method of controlling a traffic light according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a traffic light control provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a cancellation control provided by an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for controlling a traffic light according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for controlling a traffic light according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus for controlling a traffic light according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an apparatus for controlling a traffic light according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for controlling traffic lights, and the execution subject of the method is a server. The server can be a server with a function of controlling traffic lights, and the server can be a server or a server group consisting of a signal control server, a card identification server and a security server. The server may have disposed therein a processor that may be used for controlling the associated processing of the traffic lights, a memory that may be used for storing data needed and generated during the processing described below, and a transceiver that may be used for receiving and transmitting data.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, obtaining license plate numbers in images shot by image shooting devices of all detection intersections, wherein the detection intersections are intersections on a security driving route of a security fleet or intersections before a starting point of the security driving route.
The security driving route can be a route which is driven by a security fleet and needs to execute security tasks, and the first detection intersection can be an intersection provided with an image shooting device.
In implementation, the security driving route and the license plate number of the leading vehicle of the security fleet may be obtained by the server in the driving process of the security fleet or may be pre-stored. The following description will be made in detail with reference to the prestored case. Specifically, after the security driving route of the security fleet is determined, the worker can configure the driving information of the security fleet in advance. Specifically, the worker can pre-store the intersection mark of each intersection on the security driving route and the intersection mark of the intersection before the starting point of the security driving route, which the security fleet will pass through (wherein, the detection intersection described in the embodiment of the present invention can be a road segment position provided with a traffic light, wherein, each detection intersection can also be provided with an image shooting device, or part of the detection intersections are provided with image shooting devices, part of the detection intersections are not provided with image shooting devices, and the detection intersections can be T-shaped intersections, Y-shaped intersections, crossshaped intersections, X-shaped intersections, etc.), the corresponding relation of the driving direction, the driving lane, the traffic light mark, the phase position, etc. and the license plate number of the leading vehicle, the license plate number of the fleet tail vehicle, the driving speed, etc., the intersection before the starting point of the security driving route, which can be passed by the security fleet, can be an intersection provided with a bayonet or an electronic police.
The gate or the electronic police at each intersection can continuously shoot the vehicles passing through the intersection, then the shot images can be sent to the server, and after the server receives the images, the server can perform image recognition processing to determine the license plate numbers of the vehicles in the images. Or after the image is shot by the gate or the electronic police at each intersection, the image can be identified and processed, and the license plate number of the identified vehicle is sent to the server. In the process of executing the security task, after the server determines the license plate number in the image shot by the image shooting device of each detection intersection (wherein, the image shooting device can be the image shooting device opposite to the intersection in the driving direction of the security fleet), the server can obtain the license plate number shot by the image shooting device (a bayonet or an electronic police) of each intersection, and further can detect whether the license plate number shot by the image shooting device of each detection intersection is the pre-stored license plate number of the leading vehicle of the security fleet. That is to say, in the process of executing the security task, the license plate numbers shot by the image shooting devices at the detection intersections can be continuously obtained, and the server can detect whether the license plate numbers shot by the image shooting devices at the detection intersections are the license plate numbers of the pre-stored leading vehicles of the security fleet.
In addition, in the case where the server is a server group including a signal control server, a card recognition server, and a security server, the security server may be configured with the travel information in advance, and may transmit the intersection mark of the detected intersection to the card recognition server. Therefore, after the license plate identification server identifies the license plate numbers shot by the image shooting devices at each detection intersection, the license plate numbers can be sent to the security server, and after the security server receives the license plate numbers shot by the image shooting devices at each detection intersection, whether the license plate numbers shot by the image shooting devices at each detection intersection are the license plate numbers of the pre-stored front vehicles of the security fleet can be detected. Or the security server can also send the license plate number of the leading vehicle of the security fleet to the license plate identification server. Therefore, after the license plate identification server identifies the license plate numbers shot by the image shooting devices at all the detection intersections, whether the license plate numbers shot by the image shooting devices at all the detection intersections are the license plate numbers of the pre-stored leading vehicles of the security fleet can be directly detected.
Step 102, when detecting that the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of the pre-stored leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, acquiring the first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is the next intersection of the first detection intersection on the security driving route.
The second detection intersection can be an intersection provided with a traffic light, and an image shooting device can be arranged in the second detection intersection or not.
In implementation, when the server detects that the license plate number shot by the image shooting device of the first detection intersection is the license plate number of the leading vehicle of the security fleet (that is, when the leading vehicle of the security fleet is detected to run to the first detection intersection, wherein the license plate number of the leading vehicle can be pre-stored, or the leading vehicle is sent to the server in the running process), whether the first detection intersection is any detection intersection except the last intersection on the security running route or not can be further detected, if the first detection intersection is any detection intersection except the last intersection on the security running route, the server can acquire the running direction (which can be called as the first running direction) of the security running route at the second detection intersection, that is, the server can acquire the running direction of the security fleet when the security fleet passes through the second detection intersection, wherein the second detected intersection may be the next intersection of the first detected intersection on the security driving route. For example, according to the driving sequence, the intersection on the safety driving route is sequentially the intersection 1 (i.e. the starting point of the safety driving route), the intersection 2, the intersection 3, the intersection 4 and the intersection 5, the intersection 0 is the intersection before the intersection 1, and when the first detected intersection is the intersection 0, the second detected intersection is the intersection 1.
Aiming at the condition that the license plate number shot by the image shooting device at each detection intersection is detected by the license plate recognition server to be the license plate number of the pre-stored leading vehicle of the security fleet, when the license plate identification server detects that the license plate number shot by the image shooting device at the first detection intersection is the license plate number of the security fleet, a notification that a leading vehicle of the security fleet reaches the first detection intersection may be sent to a security server, which upon receiving the notification that the leading vehicle of the security fleet reaches the first detection intersection, it is possible to detect whether the first detected intersection is any detected intersection other than the last intersection on the security driving route in the manner described above, if the first detected intersection is any detected intersection other than the last intersection on the security driving route, the security server may acquire a driving direction of the security driving route at the second detected intersection.
And 103, controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
In an implementation, after the server obtains the first traveling direction, the server may control the traffic light at the second detected intersection to be in a passing state in the first traveling direction (for example, the traffic light corresponding to the lane where the security fleet is located may be locked in the green light state in the first traveling direction), and control the traffic light at the second detected intersection to be in a forbidden state in a direction other than the first traveling direction (for example, the traffic light may be locked in the red light state in the direction other than the first traveling direction), as shown in fig. 2, where the direction other than the first traveling direction may be a direction different from the first traveling direction and conflicting with the first traveling direction, for example, the first traveling direction is a north-south direction (or a north-south direction), and the server may control the traffic light to be in a passing state in the north-south direction and the north-south-north direction, and the traffic light is in an east-west direction (east-west-east direction), The state of forbidding is from the west to the north and from the east to the south. Therefore, when the security fleet runs to the second detection intersection, the second detection intersection can be ensured to be in a passing state in the first running direction, and the directions except the first running direction are in a forbidden state, so that the security fleet can smoothly pass through the second detection intersection.
Specifically, the server may send a traffic notification to a traffic light controller at the second detection intersection, where the traffic notification may carry the first driving direction, and after receiving the traffic notification, the traffic light controller may control the traffic light to be in a traffic state in the first driving direction and to be in a no-traffic state in a direction other than the first driving direction.
Aiming at the condition that the server is a server group consisting of a signal control server, a brand recognition server and a security server, the security server can send a notice for controlling a traffic light of a second detection intersection to be in a passing state in the first running direction to the signal control server after acquiring the first running direction, the signal control server can forward the notice to a traffic light controller of the second detection intersection after receiving the notice, and the traffic light controller can control the traffic light to be in the passing state in the first running direction and be in a forbidden state in the directions except the first running direction after receiving the passing notice.
Optionally, based on different triggering conditions for controlling the traffic lights at the second detected intersection, the processing manner of step 103 may be various, and several feasible processing manners are given as follows:
in the first mode, when the license plate number in the image shot by the image shooting device of the first detection intersection is detected to be the license plate number of the leading vehicle, the traffic light of the second detection intersection is controlled to be in a passing state in the first driving direction.
In implementation, when the server detects that the license plate number in the image shot by the image shooting device at the first detection intersection is the license plate number of the leading vehicle, the traffic light at the second detection intersection can be controlled to be in a passing state in the first driving direction.
In the second mode, after the leading vehicle is detected to travel to the first detection intersection, the traffic light of the second detection intersection may be controlled after the leading vehicle travels for a certain time, and correspondingly, the processing procedure in step 103 may be as follows: calculating a third running time length of the leading vehicle between the first detection intersection and the second detection intersection according to the obtained running speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, setting a fourth running time length according to the third running time length and starting timing, wherein the fourth running time length is equal to or shorter than the third running time length; and when the timing duration is equal to the fourth driving duration, controlling a traffic light of a second detection intersection to be in a passing state in the first driving direction.
In implementation, after the server determines that the license plate number shot by the image shooting device at the first detection intersection is the license plate number of the leading vehicle, the running speed of the leading vehicle, the distance value between the first detection intersection and the second detection intersection (wherein, the running speed and the distance value can be pre-stored by the server, and the running speed can also be obtained in real time by the speed measuring device in the actual running process) can be obtained, further, the running time (which can be called as third running time) between the leading vehicle and the second detection intersection between the first detection intersection and the second detection intersection can be calculated according to the obtained distance value between the first detection intersection and the second detection intersection and the running speed (the general security fleet keeps running on the security running route), and further, the third running time can be subtracted from the pre-stored second preset time threshold, and obtaining a fourth running time length and starting timing, wherein the second preset time length threshold value can be a smaller numerical value which is greater than or equal to 0, and when the timing time length is equal to the fourth running time length, the server can control the traffic lights of the second detection intersection to be in a passing state in the first running direction and to be in a forbidden state in the directions other than the first running direction. For example, if the third traveling time period is 50 seconds, the second preset time period threshold is 20 seconds, the server may calculate a difference between the third traveling time period and the second preset time period threshold to obtain a fourth traveling time period (that is, 30 seconds) and start timing, and when the timing time period reaches 30 seconds, the server may control the traffic light of the second detected intersection to be in a passing state in the first traveling direction and to be in a non-passing state in directions other than the first traveling direction.
Optionally, the server may also cancel the control of the traffic light at the second detected intersection when appropriate, and accordingly, the processing procedure may be as follows: in the process of controlling the traffic light at the second detection intersection, when the license plate number in the image shot by the image shooting device at the second detection intersection is detected to be the license plate number of the vehicle at the tail of the team of the security fleet, the control of the traffic light at the second detection intersection is cancelled.
In implementation, after the server controls the traffic light at the second detection intersection, whether the team tail vehicle of the security fleet passes through the second detection intersection can be detected, wherein the second detection intersection is provided with an image shooting device and a traffic light, and when the team tail vehicle passes through the second detection intersection, the server can cancel the control of the traffic light at the second detection intersection. Specifically, in the process of continuously acquiring the license plate numbers shot by the image shooting devices at the detection intersections, the server can detect whether the license plate numbers shot by the image shooting devices at the detection intersections are the license plate numbers of the pre-stored queue-tail vehicles of the security fleet or not whenever the license plate numbers shot by the image shooting devices at the detection intersections are acquired, and can cancel the control of the traffic lights at the second detection intersection when the license plate numbers shot by the image shooting devices at the second detection intersection are the license plate numbers of the pre-stored queue-tail vehicles of the security fleet, at this time, the traffic lights return to the normal working mechanism, as shown in fig. 3. In addition, the server can also cancel the control of the traffic light at the second detection intersection after detecting that the license plate number shot by the image shooting device at the second detection intersection is the license plate number of the pre-stored queue-tail vehicle of the security fleet and the preset time length.
Optionally, in order to ensure that the control of the traffic light at the second detection intersection can be cancelled in time under the condition that the image capturing device at the second detection intersection fails to correctly capture the vehicle at the end of the line, the server may further perform the following processing: in the process of controlling the traffic light at the second detection intersection, when the license plate number in the image shot by the image shooting device at the first detection intersection is detected to be the license plate number of the vehicle at the end of the line of the security fleet, calculating the first running time of the vehicle at the end of the line between the first detection intersection and the second detection intersection according to the obtained running speed of the vehicle at the end of the line and the distance value between the first detection intersection and the second detection intersection, setting the second running time according to the first running time and starting timing, wherein the second running time is equal to or longer than the first running time; and when the timing duration is equal to the second driving duration, canceling the control of the traffic light of the second detection intersection.
In the implementation, in the process of controlling the traffic light at the second detection intersection, when the server determines that the vehicle at the end of the line reaches the first detection intersection (for example, when the license plate number in the image captured by the image capturing device at the first detection intersection is the license plate number of the vehicle at the end of the line), the first running time of the vehicle at the end of the line between the first detection intersection and the second detection intersection can be calculated according to the obtained running speed of the vehicle at the end of the line and the distance value between the first detection intersection and the second detection intersection, further, the first running time period may be added to a first preset time period threshold (where the first preset time period threshold may be a small value greater than or equal to 0 stored in advance), the second running time period may be obtained, and timing may be started (mainly, counting an actual time period for which the vehicle at the end of the line starts to run from the first detected intersection to the second detected intersection). In the process of controlling the traffic lights at the second detection intersection, when the timing duration is detected to be equal to the second driving duration, the control of the traffic lights at the second detection intersection can be cancelled. That is, if the server has cancelled the control of the traffic light at the second detected intersection when the timed length is equal to the second travel length, the process may no longer be performed, and if the timed length is equal to the second travel length, the control of the traffic light at the second detected intersection may be cancelled when the traffic light at the second detected intersection is still in the control state.
In addition, in the scheme, the server can adopt the two modes simultaneously to cancel the control of the traffic light of the second detection intersection.
Optionally, under the condition that the image capturing device is not arranged at the last detected intersection, the server may further determine, according to the driving time, the time for controlling the traffic light at the current detected intersection, and accordingly, the specific processing procedure may be as follows: if the second detection intersection is not provided with the image shooting device and is not the last intersection on the safety protection driving route, calculating the fifth driving time of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, or calculating the sixth driving time of the leading vehicle between the first detection intersection and the third detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, wherein the third detection intersection is the next intersection of the second detection intersection on the safety protection driving route, setting the seventh driving time according to the fifth driving time and starting timing, the seventh driving time is equal to or shorter than the fifth driving time, or setting the eighth driving time according to the sixth driving time and starting timing, the eighth running period is equal to or shorter than the sixth running period; when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at a third detection intersection; and controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction.
The third detection intersection can be an intersection provided with a traffic light, and an image shooting device can be arranged in the third detection intersection or not.
In implementation, when detecting that the license plate number captured by the image capturing device of the first detection intersection is the license plate number of the pre-stored leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, it can be further determined whether the second detection intersection is provided with the image capturing device and whether the second detection intersection is the last intersection on the security driving route, if the second detection intersection is not provided with the image capturing device and is not the last intersection on the security driving route, the server can calculate the fifth driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, and further, can subtract the third preset time length threshold from the fifth driving time length (wherein, the third preset duration threshold may be a pre-stored small value greater than or equal to 0), a seventh travel duration is derived and timing is started. In the timing process, the server can detect the relationship between the seventh running time and the timing time, and when the timing time is equal to the seventh running time, the server can acquire a second running direction of the security running route at a third detection intersection, wherein the third detection intersection is the next intersection of the second detection intersection on the security running route. That is, when it is detected that the lead vehicle is about to travel to the second detected intersection according to the timed length, the server may acquire the second travel direction of the security travel route at the third detected intersection. After the second driving direction is acquired, the server may control the traffic light of the third detected intersection to be in a passing state in the second driving direction and to be in a forbidden state in a direction other than the second driving direction, where the direction other than the second driving direction may be a direction different from and conflicting with the second driving direction.
Or, if the second detection intersection is not provided with the image shooting device and the second detection intersection is not the last intersection on the security driving route, the server can also control the traffic light of the third detection intersection by calculating the driving time of the leading vehicle reaching the third detection intersection. Specifically, the server may obtain the running speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, and further, may calculate a sixth running time of the leading vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, and further, may subtract the sixth running time from a fourth preset time threshold (where the fourth preset time threshold may be a smaller pre-stored value greater than or equal to 0), obtain an eighth running time, and start timing. In the timing process, the server can detect the size relation between the eighth running time and the timing time, and when the timing time is equal to the eighth running time, the server can acquire the second running direction of the security running route at the third detected intersection. After the second driving direction is acquired, the server can control the traffic lights of the third detection intersection to be in a passing state in the second driving direction and to be in a forbidden state in the directions other than the second driving direction.
That is to say, the server may determine the detection intersection where the leading vehicle of the security fleet is currently located according to the image capturing device of each detection intersection, or may determine the running time of the leading vehicle between each detection intersection according to the pre-stored running speed and the distance value between each detection intersection, and then estimate the time when the leading vehicle reaches each detection intersection according to the calculated running time and the determined position of the leading vehicle, thereby triggering the server to control the traffic lights of each detection intersection. Therefore, the server simultaneously adopts two methods to determine the time when the leading vehicle reaches a certain detection intersection, thereby avoiding the phenomenon that the security task cannot be executed under the condition that the certain detection intersection is not provided with an image shooting device.
Optionally, under the condition that neither the second detection intersection nor the third detection intersection is provided with an image capturing device, the server may cancel control over the traffic light at the third detection intersection according to the timing duration, and accordingly, the specific processing procedure may be as follows: if the third detection intersection is not provided with the image shooting device, when detecting that the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of the team tail vehicle of the security fleet, calculating ninth running time of the team tail vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the team tail vehicle and the distance value between the first detection intersection and the third detection intersection, setting tenth running time according to the ninth running time and starting timing, wherein the tenth running time is equal to or longer than the ninth running time; and in the process of controlling the traffic light at the third detection intersection, when the timing duration is equal to the tenth driving duration, canceling the control of the traffic light at the third detection intersection.
In implementation, if the second detection intersection and the third detection intersection are not provided with the image shooting devices, the time when the queue tail vehicle reaches the third detection intersection can be determined when the license plate number in the image shot by the image shooting device of the first detection intersection is detected to be the license plate number of the queue tail vehicle of the security fleet. Specifically, when it is detected that the vehicle at the end of the line reaches the first detection intersection, the server may calculate a ninth driving time period of the vehicle at the end of the line between the first detection intersection and the third detection intersection according to the acquired driving speed of the vehicle at the end of the line and a distance value between the first detection intersection and the third detection intersection, and further may add the ninth timing time period to a fifth preset time period threshold (where the fifth preset time period threshold may be a smaller value greater than or equal to 0), obtain a tenth driving time period, and start timing. In the timing process, the server can detect the timing duration and the tenth driving duration, and in the process of controlling the traffic light of the third detection intersection, when the timing duration is equal to the tenth driving duration, the server can cancel the control of the traffic light of the third detection intersection.
In the embodiment of the invention, a server can obtain the license plate number in the image shot by the image shooting device of each detection intersection, wherein the detection intersection can be an intersection on a security driving route of a security fleet or a previous intersection at the starting point of the security driving route, and when the server detects that the license plate number in the image shot by the image shooting device of a first detection intersection is the license plate number of a leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, the server can obtain the first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is a next intersection of the first detection intersection on the security driving route, and further can control the traffic light of the second detection intersection to be in a passing state in the first driving direction. Therefore, the server can automatically judge the intersection where the security fleet is located, and further can control the traffic light of the intersection to be in a passing state in the traveling direction of the security fleet before the security fleet passes through a certain intersection, so that a large amount of manpower is not required to be invested for executing security tasks, and further, a large amount of manpower consumption can be avoided.
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for controlling a traffic light, as shown in fig. 4, the apparatus including:
a receiving module 410, configured to receive a notification that a leading vehicle of a security fleet reaches a first detection intersection;
an obtaining module 420, configured to determine whether the first detected intersection is any detected intersection except a last intersection on a security driving route of the security fleet, and obtain a first driving direction of the security driving route at a second detected intersection, where the second detected intersection is a next intersection of the first detected intersection on the security driving route;
a sending module 430, configured to send a notification that a traffic light controlling the second detected intersection is in a passing state in the first driving direction.
Optionally, the receiving module 410 is configured to:
receiving a notice that the vehicle at the tail of the team of the security fleet reaches a second detection intersection;
the sending module 430 is configured to:
sending a notification to cancel control of traffic lights at the second detected intersection.
Optionally, as shown in fig. 5, the apparatus further includes:
a first calculating module 440, configured to, in a process of controlling a traffic light at the second detection intersection, when receiving a notification that a leading vehicle of a security fleet reaches a first detection intersection, calculate a first driving duration of the fleet tail vehicle between the first detection intersection and the second detection intersection according to an acquired driving speed of the fleet tail vehicle and a distance value between the first detection intersection and the second detection intersection, set a second driving duration according to the first driving duration and start timing, where the second driving duration is equal to or longer than the first driving duration;
the sending module 430 is configured to:
and when the timing duration is equal to the second driving duration, sending a notification for canceling the control of the traffic light of the second detection intersection.
Optionally, the sending module 430 is configured to:
when receiving a notice that a leading vehicle of a security fleet reaches a first detection intersection, sending a notice that a traffic light controlling a second detection intersection is in a passing state in the first driving direction; alternatively, the first and second electrodes may be,
as shown in fig. 6, the apparatus further includes:
a second calculating module 450, configured to calculate a third driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, set a fourth driving time length according to the third driving time length, and start timing, where the fourth driving time length is equal to or shorter than the third driving time length;
the sending module 430 is configured to:
and when the timing duration is equal to the fourth driving duration, sending a notice for controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
Optionally, as shown in fig. 7, the apparatus further includes:
a third calculating module 460, configured to calculate a fifth driving time of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, or calculate a sixth driving time of the leading vehicle between the first detection intersection and a third detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, if the second detection intersection is not provided with the image capturing device, and the second detection intersection is not the last intersection on the security driving route, and the sixth driving time is set and starts to time according to the fifth driving time, where the third detection intersection is the next intersection of the second detection intersection on the security driving route, the seventh driving time length is equal to or shorter than the fifth driving time length, or an eighth driving time length is set according to the sixth driving time length and timing is started, and the eighth driving time length is equal to or shorter than the sixth driving time length;
the obtaining module 420 is further configured to: when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
the sending module 430 is further configured to: and sending a notice for controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction.
Optionally, the third calculating module 460 is further configured to:
if the third detection intersection is not provided with the image shooting device, when a notification that a team tail vehicle of the security fleet reaches the first detection intersection is received, calculating ninth running time of the team tail vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the team tail vehicle and the distance value between the first detection intersection and the third detection intersection, setting tenth running time according to the ninth running time and starting timing, wherein the tenth running time is equal to or longer than the ninth running time;
the sending module 430 is further configured to: and in the process of controlling the traffic light at the third detection intersection, when the timing duration is equal to the tenth driving duration, sending a notification for canceling the control of the traffic light at the third detection intersection.
In the embodiment of the invention, a server can obtain the license plate number in the image shot by the image shooting device of each detection intersection, wherein the detection intersection can be an intersection on a security driving route of a security fleet or a previous intersection at the starting point of the security driving route, and when the server detects that the license plate number in the image shot by the image shooting device of a first detection intersection is the license plate number of a leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, the server can obtain the first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is a next intersection of the first detection intersection on the security driving route, and further can control the traffic light of the second detection intersection to be in a passing state in the first driving direction. Therefore, the server can automatically judge the intersection where the security fleet is located, and further can control the traffic light of the intersection to be in a passing state in the traveling direction of the security fleet before the security fleet passes through a certain intersection, so that a large amount of manpower is not required to be invested for executing security tasks, and further, a large amount of manpower consumption can be avoided.
It should be noted that: in the device for controlling a traffic light according to the above embodiment, when controlling a traffic light, only the division of the above function modules is exemplified, and in practical applications, the function distribution may be completed by different function modules according to needs, that is, the internal structure of the server is divided into different function modules to complete all or part of the functions described above. In addition, the device for controlling a traffic light and the method for controlling a traffic light provided by the above embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which is not described herein again.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Server 1900 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors include instructions for:
acquiring license plate numbers in images shot by image shooting devices of all detection intersections, wherein the detection intersections are intersections on a security driving route of a security fleet or intersections before a starting point of the security driving route;
when detecting that a license plate number in an image shot by an image shooting device of a first detection intersection is a license plate number of a leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, acquiring a first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is a next intersection of the first detection intersection on the security driving route;
and controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
Optionally, the method further includes:
and in the process of controlling the traffic lights at the second detection intersection, when the license plate number in the image shot by the image shooting device at the second detection intersection is detected to be the license plate number of the vehicle at the tail of the team of the security fleet, the control of the traffic lights at the second detection intersection is cancelled.
Optionally, the method further includes:
in the process of controlling the traffic light at the second detection intersection, when the license plate number in the image shot by the image shooting device at the first detection intersection is detected to be the license plate number of the team tail vehicle of the security fleet, calculating a first driving time length of the team tail vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the team tail vehicle and the distance value between the first detection intersection and the second detection intersection, setting a second driving time length according to the first driving time length and starting timing, wherein the second driving time length is equal to or longer than the first driving time length;
and when the timing duration is equal to the second driving duration, canceling the control of the traffic light of the second detection intersection.
Optionally, the controlling the traffic light of the second detection intersection to be in a passing state in the first traveling direction includes:
when the license plate number in the image shot by the image shooting device of the first detection intersection is detected to be the license plate number of the leading vehicle, the traffic light of the second detection intersection is controlled to be in a passing state in the first running direction; alternatively, the first and second electrodes may be,
calculating a third running time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired running speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, setting a fourth running time length according to the third running time length and starting timing, wherein the fourth running time length is equal to or shorter than the third running time length;
and when the timing duration is equal to the fourth driving duration, controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
Optionally, the method further includes:
if the second detection intersection is not provided with an image shooting device and the second detection intersection is not the last intersection on the security driving route, calculating a fifth driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, or calculating a sixth driving time length of the leading vehicle between the first detection intersection and the third detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, wherein the third detection intersection is a next intersection of the second detection intersection on the security driving route, setting a seventh driving time length according to the fifth driving time length and starting timing, and the seventh driving time length is equal to or shorter than the fifth driving time length, or setting an eighth running time length according to the sixth running time length and starting timing, wherein the eighth running time length is equal to or shorter than the sixth running time length;
when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
and controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction.
Optionally, the method further includes:
if the third detection intersection is not provided with the image shooting device, when detecting that the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of the team tail vehicle of the security fleet, calculating ninth running time of the team tail vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the team tail vehicle and the distance value between the first detection intersection and the third detection intersection, setting tenth running time according to the ninth running time and starting timing, wherein the tenth running time is equal to or longer than the ninth running time;
and in the process of controlling the traffic light at the third detection intersection, when the timing duration is equal to the tenth driving duration, canceling the control of the traffic light at the third detection intersection.
In the embodiment of the invention, the server can acquire the license plate number in the image shot by the image shooting device of each detection intersection, wherein the detection intersection can be an intersection on a security driving route of a security fleet or a previous intersection at the starting point of the security driving route, and when the server detects that the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of a leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, the server can acquire the first driving direction of the security driving route at the second detection intersection, wherein the second detection intersection is the next intersection of the first detection intersection on the security driving route, and further can control the traffic light of the second detection intersection to be in a passing state in the first driving direction. Therefore, the server can automatically judge the intersection where the security fleet is located, and further can control the traffic light of the intersection to be in a passing state in the traveling direction of the security fleet before the security fleet passes through a certain intersection, so that a large amount of manpower is not required to be invested for executing security tasks, and further, a large amount of manpower consumption can be avoided.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
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, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A method of controlling a traffic light, the method comprising:
acquiring license plate numbers in images shot by image shooting devices of all detection intersections, wherein the detection intersections are intersections on a security driving route of a security fleet or intersections before a starting point of the security driving route;
when detecting that a license plate number in an image shot by an image shooting device of a first detection intersection is a license plate number of a leading vehicle of the security fleet, and the first detection intersection is any detection intersection except the last intersection on the security driving route, acquiring a first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is a next intersection of the first detection intersection on the security driving route;
controlling a traffic light of the second detected intersection to be in a traffic state in the first travel direction;
if the second detection intersection is not provided with an image shooting device and the second detection intersection is not the last intersection on the security driving route, calculating a fifth driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, or calculating a sixth driving time length of the leading vehicle between the first detection intersection and the third detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, wherein the third detection intersection is a next intersection of the second detection intersection on the security driving route, setting a seventh driving time length according to the fifth driving time length and starting timing, and the seventh driving time length is equal to or shorter than the fifth driving time length, or setting an eighth running time length according to the sixth running time length and starting timing, wherein the eighth running time length is equal to or shorter than the sixth running time length;
when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
and controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction.
2. The method of claim 1, further comprising:
and in the process of controlling the traffic lights at the second detection intersection, when the license plate number in the image shot by the image shooting device at the second detection intersection is detected to be the license plate number of the vehicle at the tail of the team of the security fleet, the control of the traffic lights at the second detection intersection is cancelled.
3. The method of claim 1, further comprising:
in the process of controlling the traffic light at the second detection intersection, when the license plate number in the image shot by the image shooting device at the first detection intersection is detected to be the license plate number of the team tail vehicle of the security fleet, calculating a first driving time length of the team tail vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the team tail vehicle and the distance value between the first detection intersection and the second detection intersection, setting a second driving time length according to the first driving time length and starting timing, wherein the second driving time length is equal to or longer than the first driving time length;
and when the timing duration is equal to the second driving duration, canceling the control of the traffic light of the second detection intersection.
4. The method of claim 1, wherein said controlling the traffic lights of the second detected intersection to be in a traffic state in the first direction of travel comprises:
when the license plate number in the image shot by the image shooting device of the first detection intersection is detected to be the license plate number of the leading vehicle, the traffic light of the second detection intersection is controlled to be in a passing state in the first running direction; alternatively, the first and second electrodes may be,
calculating a third running time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired running speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, setting a fourth running time length according to the third running time length and starting timing, wherein the fourth running time length is equal to or shorter than the third running time length;
and when the timing duration is equal to the fourth driving duration, controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
5. The method of claim 1, further comprising:
if the third detection intersection is not provided with the image shooting device, when detecting that the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of the team tail vehicle of the security fleet, calculating ninth running time of the team tail vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the team tail vehicle and the distance value between the first detection intersection and the third detection intersection, setting tenth running time according to the ninth running time and starting timing, wherein the tenth running time is equal to or longer than the ninth running time;
and in the process of controlling the traffic light at the third detection intersection, when the timing duration is equal to the tenth driving duration, canceling the control of the traffic light at the third detection intersection.
6. An apparatus for controlling a traffic light, the apparatus comprising:
the receiving module is used for receiving a notice that a leading vehicle of a security fleet reaches a first detection intersection;
the acquisition module is used for judging whether the first detection intersection is any detection intersection except the last intersection on the security driving route of the security fleet and acquiring a first driving direction of the security driving route at a second detection intersection, wherein the second detection intersection is the next intersection of the first detection intersection on the security driving route;
a sending module, configured to send a notification that a traffic light controlling the second detected intersection is in a traffic state in the first driving direction;
a third calculating module, configured to calculate a fifth driving time of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance between the first detection intersection and the second detection intersection, or calculate a sixth driving time of the leading vehicle between the first detection intersection and a third detection intersection according to the acquired driving speed of the leading vehicle and the distance between the first detection intersection and the third detection intersection, if the second detection intersection is not provided with the image capturing device, and the second detection intersection is not the last intersection on the security driving route, and the sixth driving time is set and timed according to the fifth driving time, the seventh driving time length is equal to or shorter than the fifth driving time length, or an eighth driving time length is set according to the sixth driving time length and timing is started, and the eighth driving time length is equal to or shorter than the sixth driving time length;
the obtaining module is further configured to: when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
the sending module is further configured to: and sending a notice for controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction.
7. The apparatus of claim 6, wherein the receiving module is configured to:
receiving a notice that a vehicle at the tail of the team of the security fleet reaches the second detection intersection;
the sending module is configured to:
sending a notification to cancel control of traffic lights at the second detected intersection.
8. The apparatus of claim 6, further comprising:
the first calculation module is used for calculating a first running time of the team tail vehicle between the first detection intersection and the second detection intersection according to the acquired running speed of the team tail vehicle and the distance value between the first detection intersection and the second detection intersection when receiving a notice that the team tail vehicle of the security fleet reaches the first detection intersection in the process of controlling the traffic light of the second detection intersection, setting a second running time according to the first running time and starting timing, wherein the second running time is equal to or longer than the first running time;
the sending module is configured to:
and when the timing duration is equal to the second driving duration, sending a notification for canceling the control of the traffic light of the second detection intersection.
9. The apparatus of claim 6, wherein the sending module is configured to:
when receiving a notice that a leading vehicle of a security fleet reaches a first detection intersection, sending a notice that a traffic light controlling a second detection intersection is in a passing state in the first driving direction; alternatively, the first and second electrodes may be,
the device further comprises:
the second calculation module is used for calculating a third driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, setting a fourth driving time length according to the third driving time length and starting timing, wherein the fourth driving time length is equal to or shorter than the third driving time length;
the sending module is configured to:
and when the timing duration is equal to the fourth driving duration, sending a notice for controlling the traffic light of the second detection intersection to be in a passing state in the first driving direction.
10. The apparatus of claim 6, wherein the third computing module is further configured to:
if the third detection intersection is not provided with the image shooting device, when a notification that a team tail vehicle of the security fleet reaches the first detection intersection is received, calculating ninth running time of the team tail vehicle between the first detection intersection and the third detection intersection according to the obtained running speed of the team tail vehicle and the distance value between the first detection intersection and the third detection intersection, setting tenth running time according to the ninth running time and starting timing, wherein the tenth running time is equal to or longer than the ninth running time;
the sending module is further configured to: and in the process of controlling the traffic light at the third detection intersection, when the timing duration is equal to the tenth driving duration, sending a notification for canceling the control of the traffic light at the third detection intersection.
11. A system for controlling traffic lights, the system comprising a card recognition server, a security server, and a signal control server, wherein:
the license plate recognition server acquires license plate numbers in images shot by image shooting devices of all detection intersections, wherein the detection intersections are intersections on a security driving route of a security fleet or intersections before a starting point of the security driving route;
the license plate recognition server judges whether the license plate number in the image shot by the image shooting device of the first detection intersection is the license plate number of the leading vehicle of the security fleet, and sends a notification that the leading vehicle of the security fleet reaches the first detection intersection to the security server when the judgment result is yes;
the security server judges whether the first detection intersection is any detection intersection except the last intersection on the security driving route, and acquires a first driving direction of the security driving route at a second detection intersection when the judgment result is yes, wherein the second detection intersection is the next intersection of the first detection intersection on the security driving route;
the security server sends a notice for controlling the traffic light of the second detection intersection to be in a passing state in the first running direction to the signal control server;
the signal control server controls the traffic light of the second detection intersection to be in a passing state in the first running direction;
if the second detection intersection is not provided with the image shooting device and the second detection intersection is not the last intersection on the security driving route, the security server calculates a fifth driving time length of the leading vehicle between the first detection intersection and the second detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the second detection intersection, or calculates a sixth driving time length of the leading vehicle between the first detection intersection and a third detection intersection according to the acquired driving speed of the leading vehicle and the distance value between the first detection intersection and the third detection intersection, wherein the third detection intersection is the next intersection of the second detection intersection on the security driving route, sets a seventh driving time length according to the fifth driving time length and starts to time, the seventh driving time length is equal to or shorter than the fifth driving time length, or an eighth driving time length is set according to the sixth driving time length and timing is started, and the eighth driving time length is equal to or shorter than the sixth driving time length; when the timing duration is equal to the seventh driving duration or the eighth driving duration, acquiring a second driving direction of the security driving route at the third detection intersection;
the security server sends a notice for controlling the traffic light of the third detection intersection to be in a passing state in the second driving direction to the signal control server;
and the signal control server controls the traffic light of the third detection intersection to be in a passing state in the second driving direction.
12. The system of claim 11, wherein the license plate recognition server determines whether the license plate number in the image captured by the image capture device at the second detection intersection is the license plate number of the vehicle at the end of the fleet of the security vehicle fleet, and if so, sends a notification that the vehicle at the end of the fleet of the security vehicle fleet reaches the second detection intersection to the security server;
the security server sends a notification for canceling the control of the traffic light of the second detection intersection to the signal control server when receiving the notification that the vehicle at the tail of the team of the security fleet reaches the second detection intersection in the process of controlling the traffic light of the second detection intersection;
and the signal control server cancels the control of the traffic light of the second detection intersection.
CN201710470571.5A 2017-06-20 2017-06-20 Method, device and system for controlling traffic light Active CN109102706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710470571.5A CN109102706B (en) 2017-06-20 2017-06-20 Method, device and system for controlling traffic light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710470571.5A CN109102706B (en) 2017-06-20 2017-06-20 Method, device and system for controlling traffic light

Publications (2)

Publication Number Publication Date
CN109102706A CN109102706A (en) 2018-12-28
CN109102706B true CN109102706B (en) 2021-01-12

Family

ID=64795730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710470571.5A Active CN109102706B (en) 2017-06-20 2017-06-20 Method, device and system for controlling traffic light

Country Status (1)

Country Link
CN (1) CN109102706B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793518A (en) * 2021-09-13 2021-12-14 浙江大华技术股份有限公司 Vehicle passing processing method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103531031B (en) * 2013-02-06 2017-08-01 支录奎 It is a kind of that the current control method that blocks by nothing is realized based on the identification of urban traffic trunk line pliable-closure area video detection
US20150310737A1 (en) * 2014-04-09 2015-10-29 Haws Corporation Traffic control system and method of use
CN104064041B (en) * 2014-06-12 2016-06-29 东南大学 The traffic light regulating system preferential based on public transport fleet and method
CN104183143B (en) * 2014-08-22 2016-06-08 东南大学 The collaborative bus collision method of avoiding of One-road one-line bus-route network signalized intersections bus or train route
DE102015218942A1 (en) * 2015-09-30 2017-03-30 Siemens Aktiengesellschaft A method for controlling an indication of a remaining time
CN105788307A (en) * 2016-04-07 2016-07-20 山东鼎讯智能交通股份有限公司 Traffic signal control method for convenient emergency vehicle passing

Also Published As

Publication number Publication date
CN109102706A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
US10300894B2 (en) Auto-braking system for vehicle and method for auto-braking vehicle
CN110858295B (en) Traffic police gesture recognition method and device, vehicle control unit and storage medium
CN110991320B (en) Road condition detection method and device, electronic equipment and storage medium
CN105761316B (en) A kind of method and system preventing the lane ETC interference with vehicle
CN109597077B (en) Detection system based on unmanned aerial vehicle
CN107944329B (en) Vehicle detection method, lane controller and system for ETC lane
CN109584608A (en) A kind of parking lot automatic parking method and system
CN108765990B (en) Intelligent traffic control method, device, equipment and system
CN110544382B (en) Lane management method, device and system
JP2006331002A (en) Signal controller
CN110335473A (en) Block the personal identification method and system of license plate vehicle
CN113870550B (en) Regional anomaly detection method and system based on edge calculation
CN109255951B (en) Service control method and device
EP3181460A1 (en) Systems and methods of tracking smart luggage
CN110444019A (en) Vehicle abnormality parking origin cause of formation detection method and system based on vehicle-mounted parking warning sign
US20200189563A1 (en) Vehicle control device and vehicle control method
CN106652559A (en) Driving control method and apparatus
CN110910669A (en) Virtual isolation-based control method and device for automatic driving special lane
CN109102706B (en) Method, device and system for controlling traffic light
CN108932850A (en) A kind of record motor vehicle runs at a low speed the method and device of illegal activities
CN108181898A (en) A kind of automatic driving apparatus and method based on control of swarming
CN106781559B (en) A kind of control method and device of traffic lights
CN109697876B (en) Method, apparatus, device and storage medium for providing vehicle information
CN114360289A (en) Assistance system for a vehicle, corresponding method, vehicle and storage medium
CN109215365B (en) Road condition monitoring method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant