Anti-congestion method, system and equipment for traffic intersection
By collecting and analyzing image data of traffic intersections and road intersections, adjusting the display duration or guidance route of traffic lights, the problem of difficulty in real-time monitoring and adjustment of traffic flow in the prior art is solved, and the optimization effect of traffic flow is improved.
Patent Information
- Application Number
- CN202411571535.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-14
AI Technical Summary
The existing technology is difficult to achieve dynamic real-time monitoring and precise adjustment of traffic flows at traffic intersections, making it difficult to effectively deal with traffic congestion.
By collecting image data at traffic intersections and road intersections, using image analysis technology to determine the traffic state, and adjusting the display duration or guidance route of traffic lights according to the traffic state to optimize traffic flow.
It realizes dynamic real-time monitoring and precise adjustment of traffic flow at traffic intersections, improves the effectiveness of handling traffic congestion, and improves vehicle traffic efficiency and traffic safety.
Smart Images

Figure CN119445843A_ABST
Abstract
Description
Background Art
[0002] With the rapid economic growth and the sharp increase in the number of vehicles in society, the level of urbanization and motorization has continued to improve, and the problem of urban traffic congestion has become increasingly prominent. In the urban traffic system, traffic intersections are key nodes where vehicles and pedestrians meet. The efficiency and safety of their traffic organization directly affect the smoothness of the entire urban traffic. At present, urban traffic intersections often have the following problems: due to the rapid growth in the number of vehicles, the traffic capacity of existing traffic intersections can no longer meet the growing traffic demand, resulting in frequent traffic congestion; traditional signal timing methods are difficult to adapt to real-time changes in traffic flow, resulting in low traffic efficiency at intersections.
[0003] At present, the problem of traffic congestion at traffic intersections mainly relies on on-site manual command and guidance by traffic management departments. This method is difficult to achieve dynamic real-time monitoring and precise adjustment of traffic flow at traffic intersections, and thus cannot effectively deal with sudden traffic congestion.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the embodiments of the present disclosure is to provide a traffic intersection anti-congestion method, a traffic intersection anti-congestion system, an electronic device and a computer-readable storage medium to solve the technical problem in the related art that it is difficult to achieve dynamic real-time monitoring and precise adjustment of traffic flow at traffic intersections, thereby at least to a certain extent improving the handling effect of traffic intersection congestion, thereby improving vehicle traffic efficiency and traffic safety.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to a first aspect of an embodiment of the present disclosure, a method for preventing congestion at a traffic intersection is provided, comprising: collecting an intersection image corresponding to a traffic intersection and a road image of the road intersection corresponding to the traffic intersection; determining the intersection traffic state of the traffic intersection according to the intersection image, and determining the road traffic state of each of the road intersections according to the road image; in response to the traffic state of the intersection being normal and there being a congested road intersection where the road traffic state is congested, extending the green light duration of the traffic light at the congested road intersection; in response to the traffic state of the intersection being congested and the number of vehicles in the opposite intersection of the traffic intersection being less than a preset number threshold, The red light duration of the traffic light is extended so that the traffic light is restored to its original frequency after the vehicles that have entered the traffic intersection leave; in response to the traffic status of the intersection being congested and the number of vehicles in the traffic intersection being not less than the preset number threshold, all traffic lights in the traffic intersection are displayed as red lights, a vehicle guidance route is determined based on the intersection image, and the vehicle guidance route is visualized so that the vehicle leaves the traffic intersection according to the vehicle guidance route, and when the time when all traffic lights in the traffic intersection are in the red light state exceeds the preset guidance duration, the backstage personnel remotely guide the vehicles at the intersection through the display screen of the traffic intersection.
[0008] In one embodiment of the present disclosure, based on the above scheme, determining the traffic status of the traffic intersection according to the intersection image includes: using image analysis technology to obtain the number of vehicles and intersection passing time in the intersection image; in response to the number of vehicles being less than a preset intersection vehicle threshold and the intersection passing time being less than a preset time threshold, determining that the intersection traffic status is normal.
[0009] In one embodiment of the present disclosure, based on the above scheme, determining the road traffic status of each intersection according to the road image includes: determining the number of vehicles at the intersection when the traffic light changes according to the road image; in response to the number of vehicles at the intersection being greater than a preset intersection vehicle threshold, determining that the traffic status of the corresponding intersection is congested.
[0010] In one embodiment of the present disclosure, based on the above scheme, in response to the traffic status of the intersection being normal and there being a congested road intersection where the traffic status is congested, extending the green light duration of the traffic light at the congested road intersection includes: in response to the traffic status of the intersection being normal and there being a congested road intersection where the traffic status is congested, when the congested road intersection is an approach direction, extending the green light duration of the traffic light at the congested road intersection; when the congested road intersection is an exit direction, extending the red light duration of the traffic light at the congested road intersection.
[0011] In one embodiment of the present disclosure, based on the above scheme, determining a vehicle guidance route according to the intersection image and visually displaying the vehicle guidance route includes: performing image analysis on the intersection image to determine vehicle information and lane information of the traffic intersection; prioritizing vehicles in the traffic intersection based on the vehicle information and lane information to determine a guidance order; determining a vehicle guidance route through a path planning algorithm in combination with the guidance order; and visually displaying the vehicle guidance route using a display screen corresponding to the traffic light.
[0012] In one embodiment of the present disclosure, based on the above scheme, the image analysis of the intersection image is performed to determine the vehicle information and lane information of the traffic intersection, including: performing target detection on the intersection image to obtain the vehicle image and lane information; performing license plate positioning on the vehicle image to obtain the license plate image; performing character segmentation and character recognition on the license plate image to obtain the license plate information.
[0013] In one embodiment of the present disclosure, based on the above scheme, the license plate positioning of the vehicle image to obtain the license plate image includes: performing grayscale processing on the license plate image to obtain a grayscale image; binarizing the grayscale image to obtain a binary image; and positioning the license plate of the binary image based on color features and shape features to obtain the license plate image.
[0014] In one embodiment of the present disclosure, based on the above scheme, when the time when all traffic lights in the traffic intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the vehicles at the intersection through the display screen of the traffic intersection, including: in response to the time when all traffic lights in the traffic intersection are in the red light state exceeds the preset guidance time, sending the vehicle information and lane information to the data center; based on the vehicle information and lane information received by the data center, the backstage personnel manually guide the vehicles at the intersection through the display screen; in response to the number of vehicles in the intersection image being less than the preset intersection vehicle threshold, the traffic lights are restored to the original frequency.
[0015] According to a second aspect of an embodiment of the present disclosure, a traffic intersection anti-congestion system is provided, comprising: an image acquisition module, for acquiring an intersection image corresponding to a traffic intersection and a road image of a road intersection corresponding to the traffic intersection; a traffic status analysis module, for determining the intersection traffic status of the traffic intersection according to the intersection image, and determining the road traffic status of each of the road intersections according to the road image; a normal intersection module, for extending the green light duration of the traffic light at the congested road intersection in response to the traffic status of the intersection being normal and the presence of a congested road intersection where the road traffic status is congested; a first intersection congestion module, for determining the green light duration of the traffic light at the congested road intersection in response to the traffic status of the intersection being congested and the number of vehicles in the opposite intersection of the traffic intersection being less than a preset number threshold a second intersection congestion module, for responding to the traffic state of the intersection being congested and the number of vehicles in the intersection being not less than the preset number threshold, displaying all the traffic lights in the intersection as red lights, determining a vehicle guidance route according to the intersection image, and visually displaying the vehicle guidance route so that the vehicle leaves the intersection according to the vehicle guidance route, and when the time when all the traffic lights in the intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the intersection vehicles through the display screen of the intersection.
[0016] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and the computer-readable instructions, when executed by the processor, implement the above-mentioned method for preventing congestion at traffic intersections.
[0017] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for preventing congestion at traffic intersections as described above is implemented.
[0018] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0019] The anti-congestion method for traffic intersections in the exemplary embodiment of the present disclosure determines the traffic state of the traffic intersection according to the intersection image, and determines the road traffic state of each road intersection according to the road image, so as to adjust the display state of the traffic light according to the traffic state of the intersection and the road traffic state. On the one hand, by collecting the intersection image corresponding to the traffic intersection and the road image of the road intersection corresponding to the traffic intersection, the change of traffic flow can be obtained in time, and the traffic state can be determined according to the image data, so as to realize the automatic traffic state evaluation, reduce the error caused by human judgment, and improve the accuracy and timeliness of the evaluation; on the other hand, when the traffic intersection itself is in a normal state and the road intersection corresponding to the traffic intersection is in a congested state, extending the green light duration of the traffic light at the congested road intersection can effectively avoid further congestion at the road intersection; on the other hand, when it is detected that the traffic state of the intersection is congested and the number of vehicles in the opposite intersection of the traffic intersection is less than the preset number threshold, the traffic lights in all directions are set to red lights, which can temporarily stop more vehicles from entering the congested area, so that the vehicles that have entered the traffic intersection can leave as soon as possible, thereby avoiding congestion. At the same time, when the traffic status at the intersection is congested and the number of vehicles at the intersection is not less than the preset number threshold, all traffic lights at the intersection are displayed as red lights, and the vehicle guidance route is determined and displayed based on the image information, which helps to divert traffic and enable vehicles to leave the congested area as soon as possible. In addition, the visual display of the vehicle guidance route can help drivers understand more intuitively how to avoid congested areas, improve driving efficiency, and also reduce the extra confusion caused by drivers looking for a way out. Furthermore, when all traffic lights at the intersection are in the red light state for a period of time that exceeds the preset guidance time, the backstage personnel remotely guide the vehicles at the intersection through the display screen of the intersection to improve the guidance efficiency and flexibility. Thereby, the handling effect of the congestion at the intersection is improved to a certain extent, thereby improving the vehicle traffic efficiency and traffic safety.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0022] Figure 1 A schematic diagram showing an exemplary system architecture of a traffic intersection anti-congestion method to which an embodiment of the present disclosure can be applied.
[0023] Figure 2 A flow chart of a method for preventing congestion at a traffic intersection according to some embodiments of the present disclosure is schematically shown.
[0024] Figure 3 A schematic diagram of adjusting a traffic light at a traffic intersection according to some embodiments of the present disclosure is schematically shown.
[0025] Figure 4 Another schematic diagram of adjusting traffic lights at a traffic intersection according to some embodiments of the present disclosure is schematically shown.
[0026] Figure 5 A schematic diagram of adjusting traffic lights at another traffic intersection according to some embodiments of the present disclosure is schematically shown.
[0027] Figure 6 A schematic diagram schematically shows data representation of a vehicle image in a computer according to some embodiments of the present disclosure.
[0028] Figure 7 A schematic diagram of a linear classification process according to some embodiments of the present disclosure is schematically shown.
[0029] Figure 8 A schematic diagram of weight scoring according to some embodiments of the present disclosure is schematically shown.
[0030] Fig. 9 A schematic diagram of marginalizing a vehicle image according to some embodiments of the present disclosure is schematically shown.
[0031] Fig.10 A block diagram of a traffic intersection anti-congestion system according to some embodiments of the present disclosure is schematically shown.
[0032] Fig.11 A schematic diagram of the structure of a computer system of an electronic device according to some embodiments of the present disclosure is schematically shown.
[0033] Fig.12 A schematic diagram of a computer-readable storage medium according to some embodiments of the present disclosure is schematically shown.
[0034] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0035] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0036] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0037] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0038] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete and will fully convey the concept of the example embodiments to those skilled in the art.
[0039] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.
[0040] Furthermore, the drawings are only schematic illustrations and are not necessarily drawn to scale. The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0041] With the rapid economic development and the surge in the number of vehicles in society, the level of urbanization and motorization has continued to improve, making urban traffic congestion an increasingly prominent urban problem. As a key intersection in the urban transportation network, the traffic efficiency and safety of traffic intersections play a decisive role in ensuring the smooth operation of the entire urban transportation system. At present, urban traffic intersections generally face the following challenges: the sharp increase in the number of vehicles has limited the traffic capacity of existing intersections, which cannot bear the increasing traffic pressure, thus causing frequent traffic jams; at the same time, the traditional signal timing method cannot flexibly respond to real-time changes in traffic flow, which seriously affects the traffic efficiency of traffic intersections.
[0042] In order to alleviate the congestion at traffic intersections, the current relevant technologies mainly rely on the traffic management department to alleviate it through manual on-site command and guidance. However, this traditional management model has obvious shortcomings. It is difficult to achieve real-time dynamic monitoring and precise control of traffic flow at traffic intersections, and it is difficult to effectively deal with sudden traffic congestion.
[0043] In order to solve all or part of the technical problems in the above-mentioned related technologies, in an exemplary embodiment of the present disclosure, a method for preventing congestion at a traffic intersection is firstly provided. Figure 1 A schematic diagram showing an exemplary system architecture of a traffic intersection anti-congestion method to which an embodiment of the present disclosure can be applied.
[0044] like Figure 1As shown, the system architecture 100 may include a first image acquisition device 101, one or more of the second image acquisition devices 102, a first traffic intersection 103, one or more of the second traffic intersection 104, a network 105 and a server 106, wherein the first traffic intersection 103 is provided with a first traffic light 107 and a second traffic light 108, and the second traffic intersection 104 is provided with a third traffic light 109 and a fourth traffic light 110, the first traffic light 107 corresponds to a first display screen 111, the second traffic light 108 corresponds to a second display screen 112, the third traffic light 109 corresponds to a third display screen 113, and the fourth traffic light 110 corresponds to a fourth display screen 114, wherein the display screen may be provided below the traffic light, or may be provided below or to the side of the traffic light or other suitable locations. The network 105 is used as a medium for providing a communication link between the image acquisition device and the server. The network 105 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The image acquisition device may be any device used to acquire images of intersections and roads, including but not limited to CCTV cameras, infrared cameras, panoramic cameras, and fiber optic cameras. The detection device may be set in the vicinity of a traffic node. It should be understood that Figure 1 The number of image acquisition devices, traffic intersections, networks, servers, and traffic lights in the embodiment is only illustrative. Any number of image acquisition devices, traffic intersections, networks, servers, display screens, and traffic lights may be provided as required.
[0045] The anti-congestion method for traffic intersections provided in the embodiment of the present disclosure can be executed based on the above-mentioned image acquisition device and server. For example, the first image acquisition device 101 and the second image acquisition device 102 can be used to obtain the intersection image corresponding to the first traffic intersection 103 and the second traffic intersection 104 and the road image of the road intersection corresponding to the traffic intersection, respectively, and send the intersection image and the road image to the server 106 through the network 105. After receiving the intersection image and the road image, the server 106 determines the intersection traffic state of the traffic intersection according to the intersection image, and determines the road traffic state of each road intersection according to the road image. When the intersection traffic state is normal and there is a congested road intersection where the road traffic state is congested, the server sends a control signal to the traffic light corresponding to the congested road intersection through the network 105. When the congested road intersection is in the direction of entry, the green light duration of the traffic light at the congested road intersection is extended; when the congested road intersection is in the direction of exit, the red light duration of the traffic light at the congested road intersection is extended; when the intersection traffic state is congested, the server sends a control signal to all traffic lights in the traffic intersection. When the number of vehicles in the traffic intersection is less than a preset number threshold, the red light duration of all traffic lights in the traffic intersection is extended, so that the traffic lights are restored to the original frequency after the vehicles that have entered the traffic intersection leave. When the number of vehicles at the intersection is not less than the preset number threshold, the server generates a vehicle guidance route based on the current intersection image, and sends a control signal to all traffic lights at the intersection, displaying all traffic lights at the intersection as red lights, and the display device under the traffic lights visualizes the vehicle guidance route, so that the vehicle leaves the intersection according to the vehicle guidance route, and when the time when all traffic lights at the intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the intersection vehicles through the display screen of the intersection. However, it is easy for those skilled in the art to understand that the above application scenario is only for example, and this exemplary embodiment is not limited thereto.
[0046] Figure 2 The following schematically shows a flow chart of a method for preventing congestion at a traffic intersection according to some embodiments of the present disclosure. Figure 2 As shown, the traffic intersection anti-congestion method may include the following steps:
[0047] Step S210, collecting an intersection image corresponding to the traffic intersection and a road image of a road intersection corresponding to the traffic intersection;
[0048] Step S220, determining the traffic state of the traffic intersection according to the intersection image, and determining the road traffic state of each of the road intersections according to the road image;
[0049] Step S230, in response to the traffic state of the intersection being normal and there being a congested intersection where the traffic state of the road is congested, extending the green light duration of the traffic light at the congested intersection;
[0050] Step S240, in response to the traffic state of the intersection being congested and the number of vehicles in the opposite intersection of the intersection being less than a preset number threshold, extending the red light duration of all traffic lights in the intersection so that the traffic lights are restored to their original frequency after the vehicles that have entered the intersection leave;
[0051] Step S250, in response to the traffic status of the intersection being congested and the number of vehicles in the intersection being not less than the preset number threshold, all traffic lights in the intersection are displayed as red lights, a vehicle guidance route is determined based on the intersection image, and the vehicle guidance route is visualized so that the vehicle leaves the intersection according to the vehicle guidance route, and when the time when all traffic lights in the intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the intersection vehicles through the display screen of the intersection.
[0052] In the actual operation process, cameras or other image acquisition equipment are installed at traffic intersections to ensure that the entire intersection and each road intersection can be covered, and image data of the traffic intersection and its related road intersections are collected in real time to obtain intersection images and road images. Image analysis is performed on the collected images through computer vision technology to obtain vehicle information such as the number of vehicles, vehicle speed and vehicle density at the traffic intersection and road intersection, and the traffic status of the traffic intersection and each road intersection is determined based on the results of image analysis. If the traffic status of the intersection is normal and there is a congested road intersection where the road traffic status is congested, it is necessary to adjust the display time of the traffic light to reduce the number of vehicles entering the congested road intersection or to make the vehicles at the congested road intersection leave as soon as possible, thereby preventing further congestion. When the entire traffic intersection is in a congested state, emergency measures need to be taken to set the traffic lights in all directions to red lights to prevent more vehicles from entering the intersection. At the same time, one or more effective vehicle guidance routes are determined through image analysis. These routes should help vehicles leave the congested area as soon as possible. Set up signboards or electronic display screens around intersections, or display vehicle guidance routes to drivers through mobile phone apps, so that they can follow the routes and evacuate quickly.
[0053] According to the traffic intersection anti-congestion method in the above exemplary embodiment, on the one hand, by collecting the intersection image corresponding to the traffic intersection and the road image of the road intersection corresponding to the traffic intersection, the change of traffic flow can be obtained in time, and the traffic state can be determined according to the image data, so as to realize the automatic traffic state evaluation, reduce the error caused by human judgment, and improve the accuracy and timeliness of the evaluation; on the other hand, when the traffic intersection itself is in a normal state and the road intersection corresponding to the traffic intersection is in a congested state, extending the green light duration of the traffic signal light at the congested road intersection can effectively avoid further congestion at the road intersection; on the other hand, when it is detected that the entire traffic intersection is in a congested state, the signal lights in all directions are set to red lights, which can temporarily stop more vehicles from entering the congested area. At the same time, determining and displaying the vehicle guidance route based on the image information is helpful to divert traffic and enable vehicles to leave the congested area as soon as possible. In addition, the visual display of the vehicle guidance route can help the driver to more intuitively understand how to avoid the congested area, improve driving efficiency, and also reduce the extra confusion caused by the driver's search for a way out. Thereby, the processing effect of the congestion situation at the traffic intersection is improved to a certain extent, thereby improving the vehicle traffic efficiency and traffic safety.
[0054] Next, the traffic intersection anti-congestion method in the above exemplary embodiment will be further described.
[0055] In step S210, an intersection image corresponding to the traffic intersection and a road image of a road intersection corresponding to the traffic intersection are collected.
[0056] A traffic intersection may refer to a place where two or more roads meet, including but not limited to a crossroad, a T-junction, etc. A road intersection may refer to an area on a main road that enters or leaves a traffic intersection. Figure 3 As shown, traffic intersection 21 corresponds to road intersection 22 and the other seven road intersections. The intersection image may represent a photograph or video frame taken or recorded containing a traffic intersection scene. Among them, the intersection image may include the following information: the layout of the intersection, the status of traffic lights, traffic signs at the intersection, pedestrian crossing facilities at the location, and the status of vehicles and pedestrians passing through the intersection at the current moment. The road image may represent a photograph or video frame of the road intersection scene corresponding to the traffic intersection taken or recorded. Among them, the road image may include the following information: road markings, traffic signs, vehicles traveling on the road and their flow conditions, and the environment on both sides of the road.
[0057] In step S220, the traffic state of the traffic intersection is determined according to the intersection image, and the road traffic state of each of the road intersections is determined according to the road image.
[0058] The traffic status of an intersection can represent the overall traffic conditions at an intersection within a specific time period. The traffic status of a road can represent the traffic conditions at a certain intersection within a specific time period. The traffic status can be congested or normal. Specifically, computer vision technology can be used to perform object recognition on intersection images and road images, identify vehicles in the images, and calculate indicators such as traffic flow, queue length, and average vehicle speed to evaluate the traffic status.
[0059] In some embodiments, determining the traffic status of the traffic intersection based on the intersection image includes: using image analysis technology to obtain the number of vehicles and intersection passing time in the intersection image; in response to the number of vehicles being less than a preset intersection vehicle threshold and the intersection passing time being less than a preset time threshold, determining that the intersection traffic status is normal.
[0060] Specifically, the intersection image is first preprocessed by denoising and contrast enhancement to make the image more suitable for subsequent analysis. Then, computer vision technology, such as deep learning models such as convolutional neural networks (CNN), is used to identify vehicles in the intersection image and count the number of detected vehicles. Multi-target tracking technology is used to continuously track the position changes of each vehicle in the image sequence, and the association algorithm is used to ensure that the same vehicle between the previous and next frames can be correctly matched. The time difference from each vehicle entering the field of view to completely leaving the field of view is calculated as the intersection passing time of the vehicle, and the average of the intersection passing time of all vehicles in the intersection image is taken as the corresponding passing time of the intersection image. If the number of detected vehicles is lower than the set intersection vehicle threshold and the passing time is within the allowed time threshold, the traffic state of the intersection is determined to be normal. Otherwise, the traffic state of the intersection is determined to be congested.
[0061] In some embodiments, determining the road traffic status of each intersection based on the road image includes: determining the number of vehicles at the intersection when the traffic light changes based on the road image; in response to the number of vehicles at the intersection being less than a preset intersection vehicle threshold, determining that the traffic status of the corresponding intersection is congested.
[0062] Specifically, the road image is first preprocessed, including noise removal, contrast enhancement, etc., to improve the effect of subsequent image processing. Then, computer vision technology, such as a deep learning-based target detection algorithm (such as YOLO, SSD, etc.), is used to detect the number of vehicles at the intersection when the traffic light changes. If the number of vehicles at the intersection is greater than the preset intersection vehicle threshold, the traffic state of the corresponding intersection is determined to be congested, otherwise the traffic state of the intersection is determined to be normal.
[0063] In addition, in other embodiments of the present disclosure, it is also possible to continuously track the vehicles detected in the image sequence based on a multi-target tracking algorithm (such as Kalman filtering, particle filtering, etc.) to determine their motion trajectory. The speed of the vehicle is calculated based on the moving distance and time interval of the vehicle in the image sequence. The speeds of all detected vehicles within a certain time window are averaged to obtain the average speed of the current vehicle at the intersection. If the average speed is less than the preset speed threshold, the traffic state of the corresponding intersection is determined to be congested, otherwise the traffic state of the intersection is determined to be normal.
[0064] In step S230, in response to the traffic state of the intersection being normal and there being a congested intersection where the traffic state of the road is congested, the green light duration of the traffic light at the congested intersection is extended.
[0065] Specifically, when it is detected that the traffic status at a traffic intersection is normal, but there is congestion at adjacent or related intersections, the display duration of the traffic lights at the congested intersection will be automatically adjusted. For example, the number of passing vehicles can be increased by extending the green light time, or more vehicles can be prevented from passing through the congested section by extending the red light time.
[0066] In some embodiments, in response to the traffic status of the intersection being normal and there being a congested road intersection where the traffic status is congested, the green light duration of the traffic light at the congested road intersection is extended, including: in response to the traffic status of the intersection being normal and there being a congested road intersection where the traffic status is congested, when the congested road intersection is an approach direction, the green light duration of the traffic light at the congested road intersection is extended; when the congested road intersection is an exit direction, the red light duration of the traffic light at the congested road intersection is extended.
[0067] Among them, the approaching direction indicates that the vehicle at the road intersection is traveling in the direction of entering the traffic intersection, and the leaving direction indicates that the vehicle at the road intersection is traveling in the direction of leaving the traffic intersection.
[0068] Specifically, when the traffic status of the intersection is normal, but the traffic status of the intersection in the direction of entry is congested, it means that there are many vehicles preparing to enter the intersection. If based on the original green light duration, when the traffic light changes from green to red, many vehicles will be stranded at the intersection due to slow driving, thus blocking the traffic flow in other directions and causing congestion. At this time, the green light duration of the traffic light corresponding to the current intersection can be extended to allow vehicles in the congested intersection sufficient time to pass through the intersection. Figure 3As shown in the figure, the current traffic state of the traffic intersection is normal, but there is congestion at the intersection of the north-south direction. At this time, the green light duration of the traffic lights in the north-south direction can be extended to increase the traffic volume in the north-south direction and improve the speed of traffic in this direction. At the same time, the red light duration of the traffic lights in the east-west direction is correspondingly extended to increase the waiting time of vehicles in the east-west direction and reduce the number of vehicles entering the intersection in the east-west direction. During the adjustment period, the traffic conditions in the north-south direction and the east-west direction are continuously monitored. Once the number of subsequent vehicles in the north-south direction is significantly reduced or the number of vehicles waiting to enter the intersection in the east-west direction is significantly increased (or the duration of the red light in the east-west direction exceeds the predetermined threshold), the traffic state is re-evaluated. When it is monitored that the congestion in the north-south direction is effectively alleviated, the signal lights in the north-south direction are turned from green to red, and the signal lights in the east-west direction are turned from red to green, and the traffic in the east-west direction is restored. After the north-south signal lights turn red, the signal light timing is restored to the original cycle frequency to ensure smooth traffic in all directions.
[0069] Furthermore, when the traffic status of the intersection is normal, but the traffic status of the intersection in the direction of departure is congested, it indicates that more vehicles are preparing to leave the intersection. If based on the original red light duration, when the traffic light changes from red to green, more vehicles will be stranded at the intersection due to slow driving, thus blocking the traffic flow in other directions and causing congestion. At this time, the red light duration of the traffic light corresponding to the current intersection can be extended to prevent more vehicles from entering the congested intersection, so that vehicles in the congested intersection have sufficient time to leave the intersection, reducing the number of vehicles stranded at the intersection.
[0070] In step S240, in response to the traffic status at the intersection being congested and the number of vehicles in the opposite intersection of the traffic intersection being less than a preset number threshold, the red light duration of all traffic lights in the traffic intersection is extended so that the traffic lights are restored to their original frequency after the vehicles that have entered the traffic intersection leave.
[0071] The opposite intersection may refer to an intersection area in opposite directions in a traffic intersection, where vehicles from different directions meet. Figure 4 In the opposite intersection 401, at a four-way intersection, the north-south and east-west traffic flows meet to form an opposite intersection. When the traffic state of the intersection is congested and the number of vehicles in the intersection is less than the preset number threshold, it indicates that the vehicles at the current intersection are moving slowly and need to be adjusted. Specifically, refer to Figure 4As shown, when urban traffic encounters heavy and chaotic traffic flow during rush hour or rainy and snowy weather, the vehicles in the target intersection of the traffic intersection travel at a slow speed, resulting in the vehicles in the traffic intersection being unable to complete the journey under the existing green light duration. Therefore, when the traffic state of the intersection corresponding to the detected traffic intersection is congested and the number of vehicles in the traffic intersection is less than the preset number threshold, or the traffic state of the intersection is congested and the number of vehicles in the opposite intersection of the traffic intersection is less than the preset number threshold, at this time, the red light duration in the north-south direction can be extended, and the red light duration in the east-west direction can be extended accordingly to ensure that vehicles in the north-south and east-west directions completely pass through the traffic intersection. Once it is confirmed that all vehicles in the current traffic intersection have completely passed through the intersection, the traffic lights are restored to the original frequency to maintain normal traffic order.
[0072] In step S250, in response to the traffic status of the intersection being congested and the number of vehicles in the intersection being not less than the preset number threshold, all traffic lights in the intersection are displayed as red lights, a vehicle guidance route is determined based on the intersection image, and the vehicle guidance route is visualized so that the vehicle leaves the intersection according to the vehicle guidance route, and when the time that all traffic lights in the intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the vehicles at the intersection through the display screen of the intersection.
[0073] Specifically, once it is determined that the traffic intersection is in a congested state and the number of vehicles in the traffic intersection is not less than the preset number threshold, all traffic lights are immediately displayed as red lights, and vehicles in all directions are stopped, thereby preventing more vehicles from entering the already congested traffic intersection and causing more serious congestion. Figure 5 As shown, when a traffic intersection is congested and the number of vehicles in the intersection exceeds a preset value, all traffic lights in the intersection are switched to red. Then, image analysis technology is used to identify the location, number and direction of vehicles in the intersection. According to the current vehicle distribution, one or more optimal vehicle guidance routes are planned. The planned vehicle guidance route information is conveyed to the driver through electronic display screens, mobile phone APP push, etc. As vehicles gradually leave the intersection according to the guidance route, the traffic conditions are continuously monitored, and the vehicle guidance route is dynamically adjusted according to the latest traffic conditions to ensure the most effective evacuation path. When it is detected that the number of vehicles in the intersection has been reduced to a normal level and the congestion has been alleviated, the traffic status of the intersection is re-evaluated. According to the evaluation results, the normal timing of the traffic lights is gradually restored, and vehicles are allowed to pass according to conventional traffic rules.
[0074] In some embodiments, a vehicle guidance route is determined based on the intersection image, and the vehicle guidance route is visually displayed, including: performing image analysis on the intersection image to determine vehicle information and lane information of the traffic intersection; prioritizing vehicles in the traffic intersection based on the vehicle information and lane information to determine a guidance order; determining a vehicle guidance route through a path planning algorithm in combination with the guidance order; and visually displaying the vehicle guidance route using a display screen corresponding to the traffic light.
[0075] Specifically, image analysis technology (such as target detection algorithm based on deep learning) is used to identify vehicles in the image, including information such as the location, type (such as sedan, truck), and driving direction of the vehicle. Lane lines are identified by image analysis technology, different lanes are distinguished, and the distribution of vehicles on each lane is recorded. Vehicle priority sorting rules are formulated according to traffic rules and priority rules. For example, emergency vehicles (ambulances, fire trucks, etc.) are given priority; buses are given priority; pedestrians are given priority in special cases, etc. The priority level of each vehicle is calculated based on vehicle information and lane information. For example, comprehensive evaluation is performed based on factors such as vehicle type, vehicle location, and current waiting time. According to traffic conditions and priority sorting results, an appropriate path planning algorithm, such as Dijkstra algorithm, A* algorithm, etc., is used to calculate the optimal vehicle guidance route for each vehicle. The display screen under the traffic light is used to visualize the vehicle guidance route, for example, the vehicle image and license plate number are displayed on the display screen, and the driver is informed of the next driving direction by arrow indication, text prompts, etc. As the vehicle leaves the traffic intersection according to the guidance route, the traffic conditions are continuously monitored, and the vehicle guidance route is dynamically adjusted according to the latest traffic conditions to ensure the most effective evacuation path.
[0076] In some embodiments, image analysis is performed on the intersection image to determine vehicle information and lane information of the traffic intersection, including: performing target detection on the intersection image to obtain a vehicle image and lane information; performing license plate positioning on the vehicle image to obtain a license plate image; performing character segmentation and character recognition on the license plate image to obtain license plate information.
[0077] Specifically, computer vision technology (such as YOLO or SSD, an object detection algorithm based on deep learning) is used to detect vehicles in the intersection image. Lane lines are identified by image processing technology (such as edge detection, straight line detection, etc.) to obtain lane information. The vehicle image is cropped from the detected vehicle area. The license plate detection algorithm (such as template matching, sliding window search, etc.) is used to determine the location of the license plate in the vehicle image. The area where the license plate is located is cropped from the vehicle image to obtain the license plate image. The license plate image is preprocessed, such as grayscale, binarization, etc., to facilitate character segmentation. Image processing technology (such as projection method, connected domain analysis, etc.) is used to segment the characters in the license plate image to form a single character image. The segmented character image is preprocessed, such as normalization, noise removal, etc. A character recognition algorithm (such as optical character recognition OCR technology, CNN based on deep learning, etc.) is used to recognize the single character image. The recognized single characters are combined to form a complete license plate number.
[0078] Furthermore, the image is represented in the computer in the form of an array, and the data representation of the vehicle image in the computer can be as follows: Figure 6 As shown in the figure, the vehicle image is represented in the computer in the form of a three-dimensional array, each array corresponds to the pixel of the image, and the pixel value is between 0 and 255. The vehicle image can be identified from the intersection image by the linear classification method, wherein the linear classification process is as follows Figure 7 As shown in , the score of each category can be obtained through the weight parameter and pixel array. An image is divided into multiple grids, and a weight and score are assigned to each grid. The total score is obtained by multiplying the score of each grid by its corresponding weight and then accumulating the results of all grids. Things with the highest scores have a higher probability of existing in the image. Among them, the process of weighted scoring of images is as follows Figure 8 As shown in Figure 2, vehicle images can be identified through weighted scoring.
[0079] After obtaining the vehicle image, it is necessary to perform noise reduction on the vehicle image to remove isolated small dots, burrs and other noise. For example, cv2.GaussianBlur() can be used for Gaussian denoising. Use the cv2.morphologyEx() function to perform an opening operation, and then use the cv2.addWeighted() function to fuse the operation result with the original image.
[0080] Next, the denoised vehicle image is binarized. The cv2.threshold() function can be used to binarize the vehicle image, and then the cv2.Canny() function can be used to find the edges of each area. Then, use the two functions **cv2.morphologyEx() and cv2.morphologyEx() to perform an opening operation (first corrosion operation, then expansion operation) and a closing operation (first expansion operation, then corrosion operation) respectively to remove smaller areas in the binary image, fill small holes, bridge small cracks, and connect the edges of the image as a whole, so as to highlight the license plate position. The binarized vehicle image is marginalized and connected to obtain the result as shown below. Fig. 9 shown.
[0081] Then, use the Canny edge detection algorithm or other edge detection techniques to detect the edges in the vehicle image. Use OpenCV's cv2.findContours() function to detect contours in the image. Use the cv2.minAreaRect() function to calculate the minimum enclosing rectangle for each detected contour and calculate the aspect ratio of each rectangle. According to the aspect ratio characteristics of the license plate (usually between 2 and 5.5), filter out the rectangular areas that meet the conditions as candidate areas for the license plate, and exclude other rectangular areas. Use the cv2.drawContours() function to mark the rectangular area that may be the license plate in the vehicle image. Since the rectangular area may be a tilted rectangle, it needs to be corrected so that color positioning can be used to further confirm whether it is a license plate. In addition, in the embodiments of the present disclosure, when locating the license plate, a color-based segmentation method can be used. This method mainly uses the information of the color space to achieve license plate segmentation, including color edge algorithm, color distance and similarity algorithm, etc.; a texture-based segmentation method can also be used. This method mainly uses the texture features of the license plate area in the horizontal direction for segmentation, including wavelet texture, horizontal gradient difference texture, etc.; edge detection-based segmentation methods and mathematical morphology-based segmentation methods and other methods can also be used to locate the license plate.
[0082] In order to identify the license plate in the image by color positioning, and only consider the license plates of blue, green and yellow, the following method can be used: First, exclude the rectangular areas that do not meet these three colors. The original image is converted from the BGR color space to the HSV color space by using the cv2.cvtColor() function under the cv2.COLOR_BGR2HSV parameter to facilitate color positioning. Based on the HSV color model, the value range of hue H is 0°~360°, and the degree corresponding to a specific color is known, such as 240° for blue, 120° for green, and 60° for yellow. Based on this information, a threshold can be set to detect the presence of the corresponding color in the image. Then calculate the occupancy of blue, green, and yellow in each rectangular area, and determine which rectangle is most likely to be a license plate and its color type by comparing the occupancy of these three colors. In this way, the rectangular area in the image that is most likely to be a license plate and its color type can be effectively identified.
[0083] Again, the license plate image is binarized. Specifically, the cv2.cvtColor() function with the parameter cv2.COLOR_BGR2GRAY is used to convert the RGB image of the located license plate part into a grayscale image, and then the cv2.threshold() function is used to binarize the grayscale image. It should be noted that the yellow and green license plate characters are darker than the background and are exactly opposite to the blue license plate, so the yellow and green license plates need to be reversed using the cv2.bitwise_not() function before binarization. Finally, the license plate image is segmented. Specifically, according to the set threshold and image histogram, the peaks are found and used to separate the image. Since the separator "·" in the license plate will also produce a group of peaks, the third group of peaks is removed from the eight groups of peaks found to obtain the peak position of each character. Next, the license plate image is segmented according to the width of each group of peaks to obtain a separate image for each character. In this embodiment, when performing character segmentation, direct segmentation method, recognition-based segmentation method, adaptive segmentation line clustering method, etc. can be used. Each segmented image is matched with the trained template one by one to obtain the license plate recognition result.
[0084] In some embodiments, the license plate of the vehicle image is located to obtain the license plate image, including: grayscale processing the license plate image to obtain a grayscale image; binarization processing the grayscale image to obtain a binary image; and license plate location of the binary image based on color features and shape features to obtain the license plate image.
[0085] Specifically, the license plate image is converted from a color image to a grayscale image. For example, grayscale processing can be performed by taking the average value of the three RGB channels or using the weighted average method. A fixed threshold is selected to perform binarization processing on the grayscale image. Color segmentation technology is used in the color license plate image to preliminarily locate the candidate license plate area according to the color characteristics of the license plate (such as blue, yellow, etc.), calculate the shape features of the candidate area, such as area, aspect ratio, etc., and further screen out the most likely license plate area. Combine color features and shape features to perform feature matching on the candidate areas to determine the license plate area that best meets the conditions. Crop the determined license plate area from the original image to obtain the final license plate image.
[0086] In some embodiments, when the time when all traffic lights in the traffic intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the vehicles at the intersection through the display screen of the traffic intersection, including: in response to the time when all traffic lights in the traffic intersection are in the red light state exceeds the preset guidance time, sending the vehicle information and lane information to the data center; based on the vehicle information and lane information received by the data center, the backstage personnel manually guide the vehicles at the intersection through the display screen; in response to the number of vehicles in the intersection image being less than the preset intersection vehicle threshold, the traffic lights are restored to the original frequency.
[0087] The status of traffic lights is continuously monitored. Once all lights are found to be in red state and the duration of this state exceeds the preset guidance time, the emergency response mechanism is activated. The collected vehicle information and lane information are sent to the data center. The back-end staff prepares for manual traffic guidance by accessing the real-time images and vehicle information of the data center. The back-end staff manually adjusts the status of the lights through the display screen connected to the traffic intersection, and issues guidance instructions to the driver through the display screen, instructing the vehicle how to drive to evacuate the intersection as soon as possible. The back-end staff continuously monitors the number of vehicles in the intersection image and evaluates the traffic status. When the number of vehicles in the intersection image decreases to below the preset intersection vehicle threshold, it is judged that the traffic status has returned to normal. The traffic lights are restored to the original frequency, that is, the red-green light switching time is restored to the normal state.
[0088] In the above exemplary embodiment, the anti-congestion method at the traffic intersection, on the one hand, can timely obtain the change of traffic flow by collecting the intersection image corresponding to the traffic intersection and the road image of the road intersection corresponding to the traffic intersection, and determine the traffic state according to the image data, so as to realize the automatic traffic state evaluation, reduce the error caused by human judgment, and improve the accuracy and timeliness of the evaluation; on the other hand, when the traffic intersection itself is in a normal state and the road intersection corresponding to the traffic intersection is in a congested state, extending the green light duration of the traffic signal light at the congested road intersection can effectively avoid further congestion at the road intersection; on the other hand, when it is detected that the entire traffic intersection is in a congested state, the signal lights in all directions are set to red lights, which can temporarily stop more vehicles from entering the congested area. At the same time, determining and displaying the vehicle guidance route based on the image information is helpful to divert traffic and enable vehicles to leave the congested area as soon as possible. In addition, the visual display of the vehicle guidance route can help the driver to more intuitively understand how to avoid the congested area, improve driving efficiency, and also reduce the additional confusion caused by the driver's search for a way out. Thereby, the processing effect of the congestion situation at the traffic intersection is improved to a certain extent, thereby improving the vehicle traffic efficiency and traffic safety.
[0089] In addition, different traffic light adjustment strategies are used for congested intersections in the exit and entry directions to achieve the best traffic diversion effect. Moreover, through target detection, license plate positioning and character recognition of images, detailed vehicle information is obtained to provide a basis for subsequent traffic management and guidance. The use of grayscale processing, binarization processing and other technologies can also improve the accuracy of license plate recognition. When the red light at a traffic intersection lasts too long in a congested state, the vehicle information can be sent to the data center, and the background staff will conduct manual traffic guidance to enhance the flexibility of the system. Once the traffic conditions improve, the signal light will automatically return to the original working frequency, thereby ensuring the continuity of traffic operation.
[0090] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0091] Next, in the embodiment of the present disclosure, a traffic intersection anti-congestion system is also provided, referring to Fig.10As shown in , the traffic intersection anti-congestion system 1000 can be composed of an image acquisition module 1001, a traffic state analysis module 1002, a normal intersection module 1003, a first intersection congestion module 1004 and a second congestion module 1005, wherein: the image acquisition module can be used to acquire an intersection image corresponding to the traffic intersection and a road image of the road intersection corresponding to the traffic intersection; the traffic state analysis module can be used to determine the intersection traffic state of the traffic intersection according to the intersection image, and determine the road traffic state of each of the road intersections according to the road image; the normal intersection module can be used to respond to the traffic state of the intersection being normal and there being a congested road intersection where the road traffic state is congested, and extend the green light duration of the traffic signal light at the congested road intersection; the first intersection congestion module can be used to respond to When the traffic status at the intersection is congested and the number of vehicles in the opposite intersection of the intersection is less than a preset number threshold, the red light duration of all traffic lights in the intersection is extended so that the traffic lights are restored to their original frequency after the vehicles that have entered the intersection leave; the second intersection congestion module can be used to respond to the traffic status at the intersection being congested and the number of vehicles in the intersection being not less than a preset number threshold, display all traffic lights in the intersection as red lights, determine the vehicle guidance route based on the intersection image, and visualize the vehicle guidance route so that the vehicle leaves the intersection according to the vehicle guidance route, and when the time when all traffic lights in the intersection are in the red light state exceeds the preset guidance duration, the background personnel remotely guide the vehicles at the intersection through the display screen of the intersection.
[0092] It should be noted that the specific details of each part of the above-mentioned traffic intersection anti-congestion system have been described in detail in the implementation method of the traffic intersection anti-congestion method part. The undisclosed details can be found in the implementation method part, so they will not be repeated here.
[0093] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-mentioned traffic intersection anti-congestion method is also provided.
[0094] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0095] Refer to the following Fig.11 1100 according to this embodiment of the present disclosure is described. Fig.11 The electronic device 1100 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0096] like Fig.11 As shown, the electronic device 1100 is in the form of a general computing device. The components of the electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one storage unit 1120, a bus 1130 connecting different system components (including the storage unit 1120 and the processing unit 1110), and a display unit 1140.
[0097] The storage unit stores program codes, which can be executed by the processing unit 1110, so that the processing unit 1110 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0098] The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1121 and / or a cache memory unit 1122 , and may further include a read-only memory unit (ROM) 1123 .
[0099] The storage unit 1120 may also include a program / utility 1124 having a set (at least one) of program modules 1125, such program modules 1125 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0100] Bus 1130 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0101] The electronic device 1100 may also communicate with one or more external devices 1170 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and / or communicate with any device that enables the electronic device 1100 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1150. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1160. As shown, the network adapter 1160 communicates with other modules of the electronic device 1100 via a bus 1130. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0102] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0103] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present disclosure can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of the present specification.
[0104] refer to Fig.12 As shown, a program product 1200 for implementing the above-mentioned traffic intersection anti-congestion method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0105] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0106] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0107] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, electromagnetic waves, etc., or any suitable combination of the foregoing.
[0108] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0109] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0110] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0111] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0112] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for preventing traffic congestion at a traffic intersection, characterized in that: include: Collecting an intersection image corresponding to a traffic intersection and a road image of a road intersection corresponding to the traffic intersection; Determining the traffic state of the traffic intersection according to the intersection image, and determining the road traffic state of each of the road intersections according to the road image; In response to the traffic state of the intersection being normal and there being a congested intersection where the traffic state of the road is congested, extending the green light duration of the traffic light at the congested intersection; In response to the traffic state of the intersection being congested and the number of vehicles in the opposite intersection of the intersection being less than a preset number threshold, the red light duration of all traffic lights in the intersection is extended so that the traffic lights are restored to their original frequency after the vehicles that have entered the intersection leave; In response to the traffic status of the intersection being congested and the number of vehicles in the intersection being not less than the preset number threshold, all traffic lights in the intersection are displayed as red lights, a vehicle guidance route is determined based on the intersection image, and the vehicle guidance route is visualized so that the vehicle leaves the intersection according to the vehicle guidance route, and when the time when all traffic lights in the intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the vehicles at the intersection through the display screen of the intersection.
2. The method for preventing traffic congestion at a traffic intersection according to claim 1, characterized in that: The determining the traffic state of the traffic intersection according to the intersection image comprises: Using image analysis technology to obtain the number of vehicles in the intersection image and the intersection passing time; In response to the number of vehicles being less than a preset intersection vehicle threshold and the intersection passing time being less than a preset time threshold, it is determined that the traffic state of the intersection is normal.
3. The method for preventing traffic congestion at a traffic intersection according to claim 1, characterized in that: The determining the road traffic status of each road intersection according to the road image comprises: determining, based on the road image, the number of vehicles at the road intersection when the traffic light changes; In response to the number of vehicles at the road intersection being greater than a preset road intersection vehicle threshold, it is determined that the traffic state of the corresponding road intersection is congested.
4. The method for preventing traffic congestion at a traffic intersection according to claim 1, characterized in that: In response to the traffic state of the intersection being normal and there being a congested intersection where the traffic state of the road is congested, extending the green light duration of the traffic light at the congested intersection includes: In response to the traffic status of the intersection being normal and there being a congested road intersection where the traffic status is congested, when the congested road intersection is an approach direction, the green light duration of the traffic light at the congested road intersection is extended; when the congested road intersection is an exit direction, the red light duration of the traffic light at the congested road intersection is extended.
5. The method for preventing traffic congestion at a traffic intersection according to claim 1, characterized in that: The determining of the vehicle guidance route according to the intersection image and visually displaying the vehicle guidance route includes: Performing image analysis on the intersection image to determine vehicle information and lane information of the traffic intersection; Prioritizing vehicles at the traffic intersection based on the vehicle information and lane information to determine a guidance order; In combination with the guidance sequence, a vehicle guidance route is determined by a path planning algorithm; The vehicle guidance route is visualized using the display screen corresponding to the traffic light.
6. The method for preventing traffic congestion at a traffic intersection according to claim 5, characterized in that: The performing image analysis on the intersection image to determine vehicle information and lane information of the traffic intersection includes: Performing target detection on the intersection image to obtain a vehicle image and lane information; Performing license plate location on the vehicle image to obtain a license plate image; Perform character segmentation and character recognition on the license plate image to obtain license plate information.
7. The method for preventing traffic congestion at a traffic intersection according to claim 6, characterized in that: The performing license plate positioning on the vehicle image to obtain the license plate image includes: Performing grayscale processing on the license plate image to obtain a grayscale image; Binarizing the grayscale image to obtain a binary image; Based on the color features and shape features, the license plate is located on the binary image to obtain the license plate image.
8. The method for preventing traffic congestion at a traffic intersection according to claim 1, characterized in that: When all traffic lights at the traffic intersection are in the red light state for a time period exceeding the preset guidance time, the backstage personnel remotely guide the vehicles at the intersection through the display screen of the traffic intersection, including: In response to the time when all traffic lights at the traffic intersection are in a red light state exceeding a preset guidance time, sending the vehicle information and lane information to a data center; Based on the vehicle information and lane information received by the data center, the backend personnel conduct manual traffic guidance for vehicles at the intersection through the display screen; In response to the number of vehicles in the intersection image being less than a preset intersection vehicle threshold, the traffic light is restored to an original frequency.
9. A traffic intersection anti-congestion system, characterized in that: include: An image acquisition module, used to acquire an intersection image corresponding to a traffic intersection and a road image of a road intersection corresponding to the traffic intersection; A traffic status analysis module, used to determine the traffic status of the traffic intersection according to the intersection image, and determine the road traffic status of each of the road intersections according to the road image; A normal intersection module, configured to, in response to the traffic state of the intersection being normal and there being a congested intersection where the traffic state of the road is congested, extend the green light duration of the traffic light at the congested intersection; A first intersection congestion module, configured to, in response to the traffic state of the intersection being congested and the number of vehicles in the opposite intersection of the intersection being less than a preset number threshold, extend the red light duration of all traffic lights in the intersection, so that the traffic lights are restored to their original frequency after the vehicles that have entered the intersection leave; The second intersection congestion module is used to display all traffic lights in the intersection as red lights in response to the traffic status of the intersection being congested and the number of vehicles in the intersection being not less than the preset number threshold, determine a vehicle guidance route based on the intersection image, and visualize the vehicle guidance route so that the vehicle leaves the intersection according to the vehicle guidance route, and when the time when all traffic lights in the intersection are in the red light state exceeds the preset guidance time, the backstage personnel remotely guide the intersection vehicles through the display screen of the intersection.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the traffic intersection anti-congestion method according to any one of claims 1-8 by executing the executable instructions.