Intelligent traffic light control system and method
Through the intelligent traffic light control system, cameras and algorithms are used to analyze real-time traffic conditions and dynamically adjust the traffic light signal duration, solving the problems of low efficiency and safety hazards of the existing system and achieving more efficient and safer traffic management.
Patent Information
- Application Number
- CN202410887842.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-17
AI Technical Summary
Existing traffic light control systems fail to intelligently adjust signal duration based on real-time traffic conditions, resulting in inefficiency and safety hazards.
Design an intelligent traffic light control system that uses cameras to obtain real-time video images of road conditions, analyzes information about incoming vehicles and pedestrians through algorithms, and dynamically adjusts the traffic light signal duration, including a traffic light control module, vehicle identification module, pedestrian identification module, and alarm module , determine the best traffic instructions based on preset rules.
Significantly improve traffic efficiency, reduce congestion, enhance traffic safety, reduce energy consumption and emissions, improve the traffic experience of car owners and pedestrians, and bring significant beneficial effects to urban traffic management.
Smart Images

Figure CN118658315A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic lights, and in particular to an intelligent traffic light control system and method. Background Art
[0002] The existing traffic light control system mainly follows a fixed timing to allow vehicles and pedestrians to pass in turns. In this way, regardless of whether there are people or cars in that direction, they all follow the principle of taking turns to pass, and fail to consider the changes in real-time traffic conditions. Therefore, the current traffic light control system is not smart enough. Summary of the invention
[0003] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and to provide an intelligent traffic light control system and method for intelligently controlling the duration of traffic light signals according to the conditions of vehicles and pedestrians coming from all directions at the intersection, so as to improve the convenience of urban road management.
[0004] The present invention provides the following technical solutions:
[0005] In a first aspect, the present invention provides an intelligent traffic light control system, the system comprising: an electrical box, a plurality of traffic lights, a pole and a plurality of cameras;
[0006] Each group of traffic lights is installed in multiple directions of the pole, the multiple directions of the pole correspond to multiple directions of the intersection, and at least one camera is installed in each direction of the pole, the electrical box is installed on the outer surface of the pole, and each group of traffic lights and each camera are connected to the electrical box for communication;
[0007] Each of the cameras is used to obtain a video image of the road condition in a corresponding direction in real time;
[0008] The electric box is used to perform algorithm analysis on the road condition video image to obtain information about oncoming vehicles and pedestrians; based on preset rules, determine whether there are people or vehicles in each direction according to the oncoming vehicle information and pedestrian information; and determine the best traffic instructions according to whether there are people or vehicles in each direction;
[0009] Each group of traffic lights is used to adjust the duration of traffic lights according to the optimal traffic instructions.
[0010] In one embodiment, the electrical box includes a traffic light control module;
[0011] The traffic light control module is used to determine that the best traffic indication is that the red light stays on continuously if there are no people and no cars in all directions of the intersection; if there is a car in only one direction of the intersection and there are no people and no cars in other directions of the intersection, the best traffic indication is that the green light in the direction with the car stays on continuously for a first preset time, and the red light in the direction without people and no cars stays on continuously for a second preset time; if there are cars in at least two directions of the intersection, the best traffic indication is that the green light in the direction of the main road stays on continuously for the first preset time, the red light in the direction of the branch road stays on continuously for the first preset time, then the green light in the direction of the branch road stays on continuously for a third preset time, and the red light in the direction of the main road stays on continuously for the third preset time.
[0012] In one embodiment, the electrical box includes a vehicle identification module and a pedestrian identification module;
[0013] The vehicle identification module is used to perform vehicle identification on the road condition video image to obtain the oncoming vehicle information;
[0014] The pedestrian recognition module is used to perform pedestrian recognition on the road condition video image to obtain the pedestrian situation information.
[0015] In one embodiment, the incoming vehicle situation includes vehicle position information, and the pedestrian situation includes pedestrian position information;
[0016] The vehicle identification module is further used to identify the vehicle position information according to the road condition video image based on a target detection algorithm;
[0017] The pedestrian recognition module is further used to determine the pedestrian position information according to the road condition video image based on the target detection algorithm;
[0018] The traffic light control module is further used to determine whether there is a vehicle in the corresponding direction according to the vehicle position information; and to determine whether there is a person in the corresponding direction according to the pedestrian position information.
[0019] In one embodiment, the electric box further includes an alarm module, the incoming vehicle situation further includes vehicle accident information, and the pedestrian situation further includes pedestrian fall information;
[0020] The vehicle identification module is further used to extract the vehicle area texture according to the vehicle position information, and identify the vehicle accident information according to the vehicle area texture;
[0021] The pedestrian recognition module is further used to classify the local area of the pedestrian based on the classification algorithm according to the pedestrian position information to obtain a classification result; and to identify the pedestrian fall information according to the classification result;
[0022] The alarm module is used to determine an abnormal situation picture according to the pedestrian fall information and the vehicle accident information, and to issue an alarm by uploading the abnormal situation picture.
[0023] In one embodiment, the electrical box includes a road surface recognition module;
[0024] The road surface recognition module is used to determine the road surface area according to the road condition video image based on the segmentation algorithm; analyze the road surface image texture according to the road condition video image to determine the road surface defect area; based on the background modeling method, model the road surface area to obtain a clean background image; based on the target detection algorithm, locate the road surface foreign body area according to the clean background image;
[0025] The alarm module is further used to determine the abnormal situation picture according to the road surface defect area and the road surface foreign matter area.
[0026] In a second aspect, the present invention provides an intelligent traffic light control method, which is applied to the intelligent traffic light control system described in the first aspect, and the method comprises:
[0027] Obtain real-time video images of traffic conditions in all directions of the intersection;
[0028] Performing algorithm analysis on each of the road condition video images to obtain oncoming vehicle condition information and pedestrian condition information;
[0029] Based on preset rules, determine whether there are people or vehicles in each direction according to the oncoming vehicle information and the pedestrian information; determine the best traffic instructions according to whether there are people or vehicles in each direction;
[0030] The duration of the traffic light is adjusted according to the optimal traffic indication.
[0031] In one embodiment, determining the best traffic instructions according to whether there are people or cars in each direction includes:
[0032] If there are no people and no cars in all directions of the intersection, the best traffic indication is determined as a continuously lit red light; if there is a car in only one direction of the intersection and no people and no cars in other directions, the best traffic indication is determined as a green light continuously lit for a first preset time in the direction with cars, and a red light continuously lit for a second preset time in the direction without people and no cars; if there are cars in at least two directions of the intersection, the best traffic indication is determined as a green light continuously lit for the first preset time in the direction of the main road, a red light continuously lit for the first preset time in the direction of the branch road, and then a third preset time in the direction of the branch road, and a red light continuously lit for the third preset time in the direction of the main road.
[0033] In one embodiment, the incoming vehicle situation information includes vehicle position information, and the pedestrian situation information includes pedestrian position information;
[0034] Based on the target detection algorithm, identifying the vehicle position information according to the road condition video image;
[0035] Based on the target detection algorithm, determine the pedestrian position information according to the road condition video image;
[0036] Determine that there is a vehicle in the corresponding direction based on the vehicle position information; and determine that there is a person in the corresponding direction based on the pedestrian position information.
[0037] In one embodiment, the oncoming vehicle situation further includes vehicle accident information, and the pedestrian situation further includes pedestrian fall information;
[0038] Extracting a vehicle area texture according to the vehicle position, and identifying the vehicle accident information according to the vehicle area texture;
[0039] Based on the classification algorithm, classify the local area of the pedestrian according to the position of the pedestrian to obtain a classification result; and identify the pedestrian fall information according to the classification result;
[0040] An abnormal situation picture is determined based on the pedestrian fall information and the vehicle accident information, and an alarm is issued by uploading the abnormal situation picture.
[0041] The present invention discloses an intelligent traffic light control system and method, the system comprising: an electrical box, multiple groups of traffic lights, a pole and multiple cameras; each group of traffic lights is respectively installed in multiple directions of the pole, the multiple directions of the pole correspond to multiple directions of the intersection, and at least one camera is respectively installed in each direction of the pole, the electrical box is installed on the outer surface of the pole, and each group of traffic lights and each camera are communicatively connected to the electrical box; each camera is used to obtain a road condition video image of the corresponding direction in real time; the electrical box is used to perform algorithmic analysis on the road condition video image to obtain oncoming vehicle condition information and pedestrian condition information; based on preset rules, determine whether there are people or cars in each direction according to the oncoming vehicle condition information and the pedestrian condition information; determine the best traffic indication according to whether there are people or cars in each direction; each group of traffic lights is used to adjust the traffic light duration according to the best traffic indication. In this way, by acquiring and analyzing road condition video images in real time and dynamically adjusting the duration of traffic lights, we can significantly improve traffic efficiency, reduce traffic congestion, enhance traffic safety, reduce energy consumption and emissions, and improve the travel experience of car owners and pedestrians, bringing significant beneficial effects to urban traffic management. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.
[0043] Figure 1 A schematic diagram of the structure of the intelligent traffic light control system proposed in this embodiment is shown;
[0044] Figure 2 A schematic diagram of the structure of the electric box proposed in this embodiment is shown;
[0045] Figure 3 A schematic diagram showing a process of the method for obtaining road condition information proposed in this embodiment is shown;
[0046] Figure 4 A schematic diagram of a flow chart of the intelligent traffic light control method proposed in this embodiment is shown.
[0047] Figure identification: 100 - electric box; 200 - pole; 300 - traffic light; 400 - camera; 500 - fixed base; 600 - solar panel; 700 - solar lithium battery box; 800 - speed bump; 900 - power cord; 101 - traffic light control module; 102 - vehicle identification module; 103 - pedestrian identification module; 104 - road surface identification module; 105 - alarm module. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0049] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0050] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0051] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0052] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.
[0053] Example 1
[0054] The disclosed embodiment provides an intelligent traffic light control system for intelligently controlling the duration of traffic light signals according to the conditions of vehicles and pedestrians coming from all directions at an intersection, so as to improve the convenience of urban road management.
[0055] See also Figure 1 The intelligent traffic light control system includes an electrical box 100, a pole 200, a plurality of groups of traffic lights 300 and a plurality of cameras 400; each group of traffic lights 300 is respectively installed in multiple directions of the pole 200, the multiple directions of the pole 200 correspond to multiple directions of the intersection, and at least one camera 400 is respectively installed in each direction of the pole 200, the electrical box 100 is installed on the outer surface of the pole 200, and each group of traffic lights 300 and each camera 400 are communicatively connected with the electrical box 100; each camera 400 is used to obtain a road condition video image of a corresponding direction in real time; the electrical box 100 is used to perform algorithm analysis on the road condition video image to obtain information about oncoming vehicles and pedestrians; based on preset rules, determine whether there are people or vehicles in each direction according to the oncoming vehicle information and the pedestrian information; determine the best traffic indication according to whether there are people or vehicles in each direction; each group of traffic lights 300 is used to adjust the traffic light duration according to the best traffic indication.
[0056] In this embodiment, the pole 200 is located at the intersection, and a group of traffic lights 300 and at least one camera 400 are installed in each direction of the intersection corresponding to the pole 200. In addition, the pole 200 is installed on a fixed base 500, which has the functions of weighing and fixing, and can be carried and moved, so that the intelligent traffic light control system can be quickly laid. In addition, the intelligent traffic light control system is powered by solar panels 600, and does not require pulling wires and burying wire pipes, which is convenient for construction. At the same time, the solar lithium battery box 700 is used to store the electric energy generated by the solar panel 600, and to power the electrical box 100, each group of traffic lights 300, each camera 400 and other electrical equipment; the power line 900 is used to connect the solar lithium battery box 700 and the electrical box 100 to realize the power supply of the lithium battery to the entire system; the speed bump 800 can protect the routing of the power line 900 from being damaged by vehicles.
[0057] Taking the intersection as an example, the road condition video images of the corresponding direction are obtained through each camera 400, including single-frame images and continuous multi-frame images; the road condition video images of the four directions are analyzed by the electric box 100, and the vehicle and pedestrian information of the four directions are obtained respectively; based on the preset rules, it is determined whether there are people or vehicles in each direction according to the vehicle and pedestrian information in each direction; the best traffic instructions for the corresponding direction are determined according to whether there are people or vehicles in each direction; each group of traffic lights 300 adjusts the traffic light duration according to the corresponding best traffic instructions. In this way, by detecting the vehicle and pedestrian conditions in each direction of the intersection, and controlling the traffic light signal duration according to the vehicle and pedestrian conditions in each direction, the convenience of urban road management is improved.
[0058] See also Figure 2 In a specific embodiment, the electrical box 100 includes a traffic light control module 101; the traffic light control module is used to determine that the best traffic indication is that the red light is continuously on if there are no people and no cars in all directions of the intersection; if there is a car in only one direction of the intersection and there are no people and no cars in other directions of the intersection, the best traffic indication is determined to be that the green light in the direction of the car is continuously on for a first preset time, and the red light in the direction of no people and no cars is continuously on for a second preset time; if there are cars in at least two directions of the intersection, the best traffic indication is determined to be that the green light in the direction of the main road is continuously on for the first preset time, the red light in the direction of the branch road is continuously on for the first preset time, and then the green light in the direction of the branch road is continuously on for a third preset time, and the red light in the direction of the main road is continuously on for the third preset time.
[0059] In this embodiment, when the system detects that there are no people and no cars in each direction of the intersection, it determines that the best traffic indication is that the red light is continuously on. Considering power consumption, only the red light in one direction may be turned on.
[0060] When the system detects that there is a vehicle in only one direction, the green light in that direction will be on, allowing the vehicle to pass through the intersection, and the green light will last for the first preset duration; for other directions without vehicles or pedestrians, the system will turn on the red light, which will last for the second preset duration to prohibit vehicles or pedestrians in these directions from passing through the intersection. Among them, the first preset duration can be 25 seconds, and the second preset duration can be 29 seconds. After the green light in the direction of the vehicle is on for 25 seconds, the yellow light in that direction will flash for 4 seconds. It can be seen that the duration of the red light (29 seconds) is calculated based on the total time of the green light and the yellow light (25 seconds + 4 seconds) to ensure that the time of the entire traffic signal cycle is consistent.
[0061] When the system detects vehicles in at least two directions, the green light will be turned on in the direction of the main road first, and the green light will remain on; while the green light in the direction of the main road is on, the red light in the direction of the branch road will be turned on, and the light will remain on for the same length of time as the green light on the main road (i.e., the first preset length of time). This is to ensure that vehicles on the main road can pass through the intersection first, reducing conflicts and delays that may be caused by vehicles entering the branch road. When the green light in the direction of the main road ends, the system will switch to the direction of the branch road, turn on the green light in the direction of the branch road, and keep the light on for the third preset length of time. This length of time should be set according to the traffic flow of the branch road and the design of the intersection to ensure that vehicles on the branch road also have the opportunity to pass through the intersection. While the green light in the direction of the branch road is on, the red light in the direction of the main road will be turned on, and the light will remain on for the same length of time as the green light on the branch road (i.e., the third preset length of time). This is to ensure that vehicles on the branch road can pass through the intersection safely, while avoiding conflicts with vehicles on the main road. Among them, the third preset time length can be 21 seconds. After the green light is on for 21 seconds, the yellow light in that direction will flash for 4 seconds and then switch to red light.
[0062] See also Figure 2 In a specific embodiment, the electrical box 100 includes a vehicle identification module 102 and a pedestrian identification module 103; the vehicle identification module 102 is used to perform vehicle identification on the road condition video image to obtain the oncoming vehicle condition information; the pedestrian identification module 103 is used to perform pedestrian identification on the road condition video image to obtain the pedestrian condition information.
[0063] In this embodiment, the vehicle recognition module 102 in the electrical box 100 recognizes vehicles on the road condition video images in each direction to obtain the information of the oncoming vehicles; the pedestrian recognition module 103 in the electrical box 100 recognizes pedestrians on each road condition video image to obtain the information of the pedestrians.
[0064] In a specific embodiment, the oncoming vehicle situation includes vehicle position information, and the pedestrian situation includes pedestrian position information; the vehicle identification module 102 is also used to identify the vehicle position information according to the road condition video image based on a target detection algorithm; the pedestrian identification module 103 is also used to determine the pedestrian position information according to the road condition video image based on the target detection algorithm; the traffic light control module is also used to determine whether there is a vehicle in the corresponding direction according to the vehicle position information; and determine whether there is a person in the corresponding direction according to the pedestrian position information.
[0065] In this embodiment, the vehicle recognition module 102 uses a target detection method to obtain the vehicle position information of the vehicle in the road condition video image; the pedestrian recognition module 103 uses a target detection method to obtain the pedestrian position information of the pedestrian in the road condition video image. Among them, the target detection method includes but is not limited to a moving target detection method and a neural network-based target detection method.
[0066] Please see again Figure 2 In a specific embodiment, the electrical box also includes an alarm module 105, the incoming vehicle situation also includes vehicle accident information, and the pedestrian situation also includes pedestrian fall information; the vehicle identification module 102 is also used to extract the vehicle area texture according to the vehicle position, and identify the vehicle accident information according to the vehicle area texture; the pedestrian identification module 103 is also used to classify the local area of pedestrians according to the pedestrian position based on the classification algorithm to obtain a classification result; and identify the pedestrian fall information according to the classification result; the alarm module 105 is used to determine the abnormal situation picture according to the pedestrian fall information and the vehicle accident information, and to alarm by uploading the abnormal situation picture.
[0067] In this embodiment, the vehicle identification module 102 extracts the vehicle area texture according to the vehicle position information, and identifies the vehicle accident information according to the vehicle area texture; the pedestrian identification module 103 classifies the pedestrian local area according to the pedestrian position information based on the classification algorithm, obtains the classification result, and identifies the pedestrian fall information according to the classification result; the alarm module 105 determines the abnormal situation picture based on the pedestrian fall information and the vehicle accident information, and issues an alarm by uploading the abnormal situation picture. Among them, the classification method includes but is not limited to the texture analysis method, the pedestrian skeleton analysis method and the convolution network classification method.
[0068] It should be noted that the vehicle identification module 102 can also classify the local area of the vehicle position to obtain vehicle attribute information, and identify vehicle accident information by combining the vehicle attribute information and the vehicle area texture. The vehicle attribute information includes but is not limited to motor vehicles, non-motor vehicles, electric vehicles, etc.
[0069] Please see again Figure 2In a specific embodiment, the electrical box 100 includes a road surface recognition module 104; the road surface recognition module 104 is used to determine the road surface area according to the road condition video image based on a segmentation algorithm; analyze the road surface image texture according to the road condition video image to determine the road surface defect area; based on the background modeling method, model the road surface area to obtain a clean background image; based on the target detection algorithm, locate the road surface foreign body area according to the clean background image; the alarm module 105 is also used to determine the abnormal situation picture according to the road surface defect area and the road surface foreign body area.
[0070] In this embodiment, the road surface recognition module 104 in the electrical box 100 can obtain road surface condition information by analyzing road condition video images in various directions.
[0071] For example, see Figure 3 , the method for obtaining road condition information includes: step S301, based on the segmentation algorithm, determining the road area according to the road condition video image; step S302, analyzing the road image texture according to the road condition video image to determine the road defect area; step S303, based on the background modeling method, modeling according to the road area to obtain a clean background image; step S304, based on the target detection algorithm, locating the road foreign body area according to the clean background image. Among them, the segmentation algorithm includes but is not limited to the Mask Region-based Convolutional Neural Network (Mask Rcnn), the segmentation model (Segment Anything Model) and other methods; the road defects include but are not limited to road depressions and missing manhole covers, and the road foreign bodies include but are not limited to trees and fallen rocks; the background modeling method includes but is not limited to the frame difference method and the Gaussian mixture model method.
[0072] Furthermore, an abnormal situation picture is determined based on the road surface defect area and the road surface foreign body area, and an early warning is reported.
[0073] In this way, through in-depth analysis of the road surface image texture, the system can more accurately identify road surface defects, improving the accuracy and efficiency of detection; the clean background image provides a better basis for subsequent target detection, which helps to improve the accuracy of foreign object detection; at the same time, through the target detection algorithm, the system can locate foreign objects on the road surface in real time, and combine road surface defects to issue an alarm, providing important information support for road safety and traffic management.
[0074] The intelligent traffic light control system proposed in this embodiment includes: an electrical box, multiple groups of traffic lights, poles and multiple cameras; each group of traffic lights is installed in multiple directions of the poles, the multiple directions of the poles correspond to multiple directions of the intersection, and at least one camera is installed in each direction of the poles, the electrical box is installed on the outer surface of the poles, and each group of traffic lights and each camera are communicatively connected with the electrical box; each camera is used to obtain a road condition video image of the corresponding direction in real time; the electrical box is used to perform algorithmic analysis on the road condition video image to obtain oncoming vehicle condition information and pedestrian condition information; based on preset rules, determine whether there are people or cars in each direction according to the oncoming vehicle condition information and the pedestrian condition information; determine the best traffic indication according to whether there are people or cars in each direction; each group of traffic lights is used to adjust the traffic light duration according to the best traffic indication. In this way, by acquiring and analyzing road condition video images in real time and dynamically adjusting the duration of traffic lights, we can significantly improve traffic efficiency, reduce traffic congestion, enhance traffic safety, reduce energy consumption and emissions, and improve the travel experience of car owners and pedestrians, bringing significant beneficial effects to urban traffic management.
[0075] Example 2
[0076] In addition, the present disclosure provides an intelligent traffic light control method. Figure 4 , the intelligent traffic light control method includes steps S401 to S404.
[0077] Step S401, obtaining video images of road conditions in all directions of the intersection in real time.
[0078] Step S402: performing algorithm analysis on each of the road condition video images to obtain oncoming vehicle condition information and pedestrian condition information.
[0079] Step S403, based on preset rules, determine whether there are people or vehicles in each direction according to the oncoming vehicle information and the pedestrian information; and determine the best traffic instructions according to whether there are people or vehicles in each direction.
[0080] Step S404: adjusting the duration of the traffic light according to the optimal traffic indication.
[0081] In a specific embodiment, the optimal traffic indication is determined according to whether there are people or cars in each direction, including: if there are no people and no cars in each direction of the intersection, then the optimal traffic indication is determined as a continuously lit red light; if there is a car in only one direction of the intersection and there are no people and no cars in other directions of the intersection, then the optimal traffic indication is determined as a green light continuously lit for a first preset time in the direction of the car, and a red light continuously lit for a second preset time in the direction of no people and no cars; if there are cars in at least two directions of the intersection, then the optimal traffic indication is determined as a green light continuously lit for the first preset time in the direction of the main road, a red light continuously lit for the first preset time in the direction of the branch road, and then a green light continuously lit for a third preset time in the direction of the branch road, and a red light continuously lit for the third preset time in the direction of the main road.
[0082] In a specific embodiment, the algorithm analysis of each of the road condition video images to obtain oncoming vehicle condition information and pedestrian condition information includes: performing vehicle identification on the road condition video images to obtain the oncoming vehicle condition information; performing pedestrian identification on the road condition video images to obtain the pedestrian condition information.
[0083] In a specific embodiment, the oncoming vehicle information includes vehicle position information, and the pedestrian situation information includes pedestrian position information; based on a target detection algorithm, the vehicle position information is identified according to the road condition video image; based on the target detection algorithm, the pedestrian position information is determined according to the road condition video image; based on the vehicle position information, it is determined that there is a vehicle in the corresponding direction; based on the pedestrian position information, it is determined that there is a person in the corresponding direction.
[0084] In a specific embodiment, the oncoming vehicle situation also includes vehicle accident information, and the pedestrian situation also includes pedestrian fall information; the vehicle area texture is extracted according to the vehicle position, and the vehicle accident information is identified according to the vehicle area texture; based on the classification algorithm, the pedestrian local area is classified according to the pedestrian position to obtain a classification result; and the pedestrian fall information is identified according to the classification result; an abnormal situation picture is determined based on the pedestrian fall information and the vehicle accident information, and an alarm is issued by uploading the abnormal situation picture.
[0085] In a specific embodiment, based on a segmentation algorithm, a road surface area is determined according to the road condition video image; the road surface image texture is analyzed according to the road condition video image to determine a road surface defect area; based on a background modeling method, modeling is performed according to the road surface area to obtain a clean background image; based on the target detection algorithm, a road surface foreign object area is located according to the clean background image; and the abnormal situation picture is determined according to the road surface defect area and the road surface foreign object area.
[0086] The method provided in the embodiment of the present disclosure can be applied to the intelligent traffic light control system provided in Example 1, and will not be described again to avoid repetition.
[0087] The intelligent traffic light control method proposed in this embodiment obtains the road condition video images in all directions of the intersection in real time; performs algorithm analysis on each of the road condition video images to obtain the information of the vehicle and pedestrian conditions; determines whether there are people or vehicles in each direction based on the vehicle and pedestrian conditions information based on preset rules; determines the best traffic instructions based on whether there are people or vehicles in each direction; and adjusts the duration of the traffic light based on the best traffic instructions. In this way, by acquiring and analyzing the road condition video images in real time and dynamically adjusting the duration of the traffic light, it is possible to significantly improve traffic efficiency, reduce traffic congestion, enhance traffic safety, reduce energy consumption and emissions, and enhance the travel experience of car owners and pedestrians, bringing significant beneficial effects to urban traffic management.
[0088] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.
[0089] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0090] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. An intelligent traffic light control system, characterized in that: The system includes: an electrical box, multiple sets of traffic lights, poles and multiple cameras; Each group of traffic lights is installed in multiple directions of the pole, the multiple directions of the pole correspond to multiple directions of the intersection, and at least one camera is installed in each direction of the pole, the electrical box is installed on the outer surface of the pole, and each group of traffic lights and each camera are connected to the electrical box for communication; Each of the cameras is used to obtain a video image of the road condition in a corresponding direction in real time; The electric box is used to perform algorithm analysis on the road condition video image to obtain information about oncoming vehicles and pedestrians; based on preset rules, determine whether there are people or vehicles in each direction according to the oncoming vehicle information and pedestrian information; and determine the best traffic instructions according to whether there are people or vehicles in each direction; Each group of traffic lights is used to adjust the duration of traffic lights according to the optimal traffic instructions.
2. The intelligent traffic light control system according to claim 1, characterized in that: The electrical box includes a traffic light control module; The traffic light control module is used to determine that the optimal traffic indication is that the red light is continuously on if there are no people and no cars in all directions of the intersection; if there is a car in only one direction of the intersection and no people and no cars in other directions of the intersection, the optimal traffic indication is that the green light in the direction with the car is continuously on for a first preset time, and the red light in the direction without people and no cars is continuously on for a second preset time; If there are cars in at least two directions of the intersection, the optimal traffic indication is determined as the green light in the direction of the main road continues to be on for the first preset time, the red light in the direction of the branch road continues to be on for the first preset time, the green light in the direction of the branch road continues to be on for the third preset time, and the red light in the direction of the main road continues to be on for the third preset time.
3. The intelligent traffic light control system according to claim 2 is characterized in that: The electrical box includes a vehicle identification module and a pedestrian identification module; The vehicle identification module is used to perform vehicle identification on the road condition video image to obtain the oncoming vehicle information; The pedestrian recognition module is used to perform pedestrian recognition on the road condition video image to obtain the pedestrian situation information.
4. The intelligent traffic light control system according to claim 3 is characterized in that: The oncoming vehicle situation includes vehicle position information, and the pedestrian situation includes pedestrian position information; The vehicle identification module is further used to identify the vehicle position information according to the road condition video image based on a target detection algorithm; The pedestrian recognition module is further used to determine the pedestrian position information according to the road condition video image based on the target detection algorithm; The traffic light control module is further used to determine whether there is a vehicle in the corresponding direction according to the vehicle position information; and to determine whether there is a person in the corresponding direction according to the pedestrian position information.
5. The intelligent traffic light control system according to claim 4, characterized in that: The electric box also includes an alarm module, the incoming vehicle situation also includes vehicle accident information, and the pedestrian situation also includes pedestrian fall information; The vehicle identification module is further used to extract the vehicle area texture according to the vehicle position information, and identify the vehicle accident information according to the vehicle area texture; The pedestrian recognition module is further used to classify the local area of the pedestrian based on the classification algorithm according to the pedestrian position information to obtain a classification result; and to identify the pedestrian fall information according to the classification result; The alarm module is used to determine an abnormal situation picture according to the pedestrian fall information and the vehicle accident information, and to issue an alarm by uploading the abnormal situation picture.
6. The intelligent traffic light control system according to claim 5, characterized in that: The electrical box includes a road surface recognition module; The road surface recognition module is used to determine the road surface area according to the road condition video image based on a segmentation algorithm; Analyze the road surface image texture according to the road condition video image to determine the road surface defect area; Based on the background modeling method, modeling is performed according to the road surface area to obtain a clean background image; based on the target detection algorithm, the road surface foreign body area is located according to the clean background image; The alarm module is further used to determine the abnormal situation picture according to the road surface defect area and the road surface foreign matter area.
7. An intelligent traffic light control method, characterized in that: Applied to the intelligent traffic light control system of claim 1, the method comprises: Obtain real-time video images of traffic conditions in all directions of the intersection; Performing algorithm analysis on each of the road condition video images to obtain oncoming vehicle condition information and pedestrian condition information; Based on preset rules, determine whether there are people or vehicles in each direction according to the oncoming vehicle information and the pedestrian information; determine the best traffic instructions according to whether there are people or vehicles in each direction; The duration of the traffic light is adjusted according to the optimal traffic indication.
8. The intelligent traffic light control method according to claim 7, characterized in that: The best traffic instructions are determined according to whether there are people or cars in each direction, including: If there are no people and no cars in all directions of the intersection, the best traffic indication is determined as a continuously lit red light; if there is a car in only one direction of the intersection and no people and no cars in other directions, the best traffic indication is determined as a green light continuously lit for a first preset time in the direction with cars, and a red light continuously lit for a second preset time in the direction without people and no cars; if there are cars in at least two directions of the intersection, the best traffic indication is determined as a green light continuously lit for the first preset time in the direction of the main road, a red light continuously lit for the first preset time in the direction of the branch road, and then a third preset time in the direction of the branch road, and a red light continuously lit for the third preset time in the direction of the main road.
9. The intelligent traffic light control method according to claim 7, characterized in that: The incoming vehicle situation information includes vehicle position information, and the pedestrian situation information includes pedestrian position information; Based on the target detection algorithm, identifying the vehicle position information according to the road condition video image; Based on the target detection algorithm, determine the pedestrian position information according to the road condition video image; Determine that there is a vehicle in the corresponding direction based on the vehicle position information; and determine that there is a person in the corresponding direction based on the pedestrian position information.
10. The intelligent traffic light control method according to claim 9, characterized in that: The vehicle situation also includes vehicle accident information, and the pedestrian situation also includes pedestrian fall information; Extracting a vehicle region texture according to the vehicle position information, and identifying the vehicle accident information according to the vehicle region texture; Based on the classification algorithm, classify the local area of the pedestrian according to the pedestrian position information to obtain a classification result; and identifying the pedestrian fall information according to the classification result; An abnormal situation picture is determined based on the pedestrian fall information and the vehicle accident information, and an alarm is issued by uploading the abnormal situation picture.
