Road illegal parking informing method and system
By laying cameras on the road to identify vehicles in violation areas and sending notification information, the problem of lack of advance notification in the prior art is solved, real-time monitoring and handling of illegal parking behavior is realized, and the efficiency and safety of traffic management are improved.
Patent Information
- Application Number
- CN202411159931.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-10
AI Technical Summary
The lack of early notification methods for illegal parking in the prior art has led to the inability to effectively remind drivers of the consequences of illegal parking and the inability to effectively alleviate traffic pressure and congestion.
By obtaining the no-parking area on the highway, a camera is arranged to identify vehicles entering the illegal area, upload license plate number and location information to the server, send illegal parking information to the car owner, and display illegal information on the electronic sign.
Real-time monitoring and notification of illegal parking behaviors has been achieved, and car owners have been reminded of violations, which has improved the efficiency and standardization of traffic management, and reduced the adverse impact of illegal parking on traffic order and safety.
Smart Images

Figure CN119107815A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a method and system for notifying illegal parking on a highway. Background Art
[0002] Illegal parking on highways refers to parking in areas where parking is not allowed or parking in violation of traffic rules; it includes parking in places such as no parking signs, prohibited areas, intersections, sidewalks and fire lanes. The harm of illegal parking: hindering traffic flow, increasing the risk of traffic accidents, affecting traffic order, and being fined or towed. Therefore, in order to maintain traffic order and safety, traffic rules should be obeyed, parking locations should be reasonably planned, and illegal parking should be avoided. However, the existing illegal parking on highways is generally notified to the owner until the traffic police have issued a ticket, or through the WeChat notification of the traffic management bureau, which makes the message have a lag and is also in line with the humane handling method.
[0003] Prior art 1, application number: CN 200510033556.1 discloses an electronic traffic light vehicle driving monitoring management system and method, including an electronic traffic light signal transmitter, a vehicle-mounted device arranged on a vehicle and capable of inductively receiving electronic traffic light signals, a violation information receiver for receiving and storing electronic violation wireless signals, and a management center. A vehicle driving monitoring management method is also disclosed, wherein the vehicle-mounted device determines whether a violation occurs according to the received traffic light signal with a code. Since the electronic traffic light vehicle driving monitoring management system and method transmit the traffic light information with a code and use wireless alarm information to report the violation information, they are suitable for various weather conditions, ensure the accuracy of monitoring, and reduce the cost of traffic monitoring; although different coding methods can be used as needed to solve the problems of one-way vehicle driving management, bus lane allocation management, right turn management at red lights without right turn auxiliary roads, illegal parking, speed limit management of different lanes on highways, parking fees, etc. However, only the judgment problem of illegal parking is realized, and the function is relatively single, and it is impossible to provide early reminders for illegal parking, which is not conducive to alleviating traffic congestion and illegal parking problems.
[0004] Prior art 2, application number: CN 201911404212.5 discloses a method and system for judging the parking state of a vehicle on a highway, including: obtaining the target vehicle trajectory point in real time to judge the current state of the target vehicle; if the current state of the target vehicle is a parking state, then determining the location of the target vehicle at the start of the parking state, the highway where it is located, and the start time of the parking state; according to the location at the start of the parking state, the highway where it is located, and the start time of the parking state, determining the trajectory data of the calculated vehicle around the target vehicle; according to the trajectory data of the calculated vehicle, determining the parking comparison speed; if the parking comparison speed is lower than the judgment threshold, the target vehicle is judged to be in the first parking state. Although the parking state of the vehicle can be judged with high accuracy, the parking area information collected in real time is used for replacement, the misjudgment rate and missed judgment rate are reduced, and vehicles illegally parked on the highway are alarmed, the risk of accidents is reduced, and the traffic safety of the highway is guaranteed.
[0005] Prior art three, application number: CN 201610027241.4 discloses a method for detecting illegal parking on a highway based on kernel density estimation, firstly, a non-parametric kernel density model is used to extract the background to obtain a background image; then the background image is updated by a gradual update method to obtain an updated background image; the background image is subtracted from the current captured image to obtain a moving foreground; then the center of mass position of the moving target vehicle is calibrated; then the target vehicle is tracked and the distance between the centers of mass is measured; when the distance between the centers of mass decreases continuously, it indicates that a deceleration process has been entered; after the target vehicle enters the deceleration process, its running state is judged; when the running state is a stationary state, the illegal parking time is calculated; finally, whether it is an illegal parking is determined according to the illegal parking time. Although the monitoring scene can be monitored in real time, an alarm is issued in time when an illegal parking vehicle is found; the processing speed is fast, the accuracy of the alarm is improved, and it has the characteristics of good real-time performance, strong robustness, and high accuracy. However, no reminder is provided to the vehicle user, and advance notification of illegal parking cannot be achieved, resulting in low efficiency in processing illegal parking notifications.
[0006] At present, the existing technologies 1, 2 and 3 lack technical means for early notification of illegal parking, and cannot effectively remind drivers of the consequences of illegal parking, resulting in the inability to effectively alleviate traffic pressure and congestion. Therefore, the present invention provides a method and system for notifying illegal parking on a highway, which automatically identifies illegal areas and parked vehicles, sends a notification text message to the owner, and displays the corresponding illegal information on the electronic billboard, thereby realizing the notification function of illegal parking. Summary of the invention
[0007] The main purpose of the present invention is to provide a method and system for notifying illegal parking on highways, so as to solve the problem that the prior art lacks technical means for notifying illegal parking in advance, and cannot effectively remind drivers of the consequences of illegal parking, resulting in the inability to effectively alleviate traffic pressure and congestion.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] A method for notifying illegal parking on a highway, the method comprising:
[0010] Obtain the prohibited parking areas on the highway and mark each prohibited parking area; deploy cameras in prohibited parking areas to identify vehicles that enter the prohibited parking areas;
[0011] When a vehicle is detected in a prohibited parking area, the camera identifies the vehicle's license plate number and uploads the location information of the prohibited parking area and the license plate number to the server. The server queries the contact information of the owner of the corresponding license plate number and sends the information of illegal parking to the owner.
[0012] When the car owner exceeds the time threshold set by the server and does not move the vehicle, an instruction is issued to display the illegal parking information on an electronic signboard; at the same time, the traffic management platform records and processes the illegal parking information.
[0013] As a further improvement of the present invention, the process of deploying cameras in a no-parking area includes:
[0014] Divide a section of highway to determine the illegal parking area on the current highway, and mark the boundaries and range of the illegal parking prohibited area on the map of the current highway, using lines to distinguish the markings;
[0015] The marked map data is imported into the server, and the server confirms the illegal parking prohibited area corresponding to the camera according to the camera's resolution;
[0016] In the server, a mapping table is established with the corresponding prohibited parking areas. When a vehicle appears in the prohibited parking area, the camera starts the vehicle recognition command and transmits it to the server through the Internet of Things.
[0017] As a further improvement of the present invention, the process of marking the boundary and range of the illegal parking prohibited area on the map of the current highway includes:
[0018] Collect the current highway map data including road lines, intersections and buildings through the database; load the map data, generate map metadata, and obtain the map layer through the electronic map metadata;
[0019] Determine the topological relationship between the construction elements of the middle layer of the map layer, wherein the construction elements include road lines, intersections and buildings, render the electronic map metadata acquisition layer, generate a rendering style file, and obtain a new layer for marking the boundary and range of the illegal parking area; select the endpoint of a boundary line segment of the illegal parking area on the map to determine the starting point of drawing the parking ban area;
[0020] According to the shape of the illegal parking prohibited area, starting from the starting point, select different points on the map to draw the boundary of the prohibited parking area; according to the size and shape of the illegal parking prohibited area, after drawing all the boundary segments, select the last point on the map to end the drawing.
[0021] As a further improvement of the present invention, the process of establishing a mapping table corresponding to the illegal parking prohibited area includes:
[0022] Create a hierarchical database model that includes three core elements: camera information, prohibited parking areas, and vehicle status; each camera entity should include unique identification, installation location, and monitoring range attributes; use many-to-many relationships to connect cameras to multiple prohibited parking areas, and establish relationship tables to achieve association;
[0023] Real-time input and update of camera status and monitoring area information, regular or real-time monitoring of changes in camera monitoring areas, and dynamic update of the database;
[0024] Vehicle recognition is used in the server to analyze the images captured by the camera and determine the status of vehicles in the prohibited parking area; when a vehicle enters the prohibited parking area, the server automatically determines the prohibited parking area to which the vehicle belongs and records the time and vehicle information.
[0025] As a further improvement of the present invention, the process of determining the no-parking area corresponding to the camera includes:
[0026] Using the library function, the camera's field of view and the boundary of the illegal parking area are taken as input, and the corresponding library function is called to perform the intersection analysis operation. The library function returns the intersection result, that is, the part where the camera's field of view intersects with the boundary of the illegal parking area;
[0027] The expression of the library function is:
[0028] Input Parameters
[0029] P=(x c1 ,y c1 ),(x c2 ,y c2 ),…,(x cn ,y cn), the camera field of view, defined as a set of vertex coordinates; i index, indicating the point number, ranging from 1 to n, where n is the number of vertices in the camera field of view;
[0030] A=(x p1 ,y p1 ),(x p2 ,y p2 ),…,(x pm ,y pm ), the boundary of the no-parking area is defined as the coordinate set of another series of vertices, i index, indicating the number of the point, ranging from 1 to m, where m is the number of vertices of the boundary of the no-parking area;
[0031] Equation expression, defining the polygon:
[0032] Define a polygon using point sets P and A:
[0033] Camera P olygon=Polygon(P)
[0034] No P arking P olygon=Polygon(A)
[0035] Compute the intersection area:
[0036] Compute the intersection of the two:
[0037] Intersection=Camera P olygon∩No P arking P olygon
[0038] Result judgment:
[0039] If Intersection is the empty set:
[0040] Return None
[0041] Otherwise, return the geometry of the Intersection;
[0042] Select the spatial analysis method for line intersection, input the geometric information of the two lines, including the coordinates of the starting and ending points of the lines; use the line segment intersection judgment algorithm to determine whether the two lines intersect, if the two lines intersect, calculate the coordinates of the intersection point; if the two lines intersect, calculate the intersection point set of the intersecting lines or calculate the intersection part of the intersecting lines, and return the result of the intersection point or intersection area;
[0043] Determine the intersecting area or boundary, where the area or boundary is the illegal parking prohibited area corresponding to the camera.
[0044] As a further improvement of the present invention, the process of sending the information of illegal parking to the vehicle owner includes:
[0045] When the camera detects a vehicle in a prohibited parking area, the vehicle's license plate is extracted and recognized by a character recognition method to obtain the license plate number information; through the IoT network connection, the camera uploads the location information of the prohibited parking area and the vehicle's license plate number to the server;
[0046] After receiving the location information of the prohibited parking area and the license plate number uploaded by the camera through the vehicle management database, the server queries the contact information of the owner of the corresponding license plate number;
[0047] The server sends information about illegal parking, including the location of the prohibited parking area and the license plate number, to the car owner via text messages, phone calls and mobile app notifications.
[0048] As a further improvement of the present invention, the process of connecting the camera to the server through the Internet of Things network includes the following steps:
[0049] Obtaining the server IoT network information, parsing the IoT network information, obtaining at least one IoT network address information of the server, calculating the IoT network address information, and obtaining the target IoT network identifier;
[0050] Among them, the obtained server IoT network address information is server_address and the camera IoT network address information is camera_address; select a 256-bit secret key; use HMAC to create an input sequence, combine the security key key and server_address for hashing, and generate an HMAC value:
[0051] HMAC server =HMAC(key,server a ddress,SHA256)
[0052] Calculating HMAC
[0053] hmac_server=hmac.new(key.encode(),server_address.encode(),hashlib.sha256).hexdigest()
[0054] Handle the camera address:
[0055] HMAC camera =HMAC(key,camera a ddress,SHA256)
[0056] Calculating HMAC
[0057] hmac_camera = hmac.new(key.encode(), camera_address.encode(), hashlib.sha256).hexdigest() Get the target IoT network ID, generate the target IoT network ID, use one of the HMAC values as the target IoT network ID, and select an HMAC value as the target IoT network ID;
[0058] Get the target IoT network ID generated by HMAC calculation;
[0059] Generate an IoT network address of the IoT according to any one of the target IoT network identifier and the IoT network address information;
[0060] Obtain the IoT network address information of the camera, and simultaneously obtain the preset IoT network address range associated set data, where the preset IoT network address range associated set data is the relationship data between the backend maintained permissions and the IoT network address range; match the IoT network address information of the camera with the preset IoT network address range to obtain a first matching result; traverse the first matching result in the target IoT network identifier to obtain a second matching result;
[0061] Among them, the first matching result refers to the preset IoT network address range that matches the IoT network address information of the camera, and this result can be one or more preset IoT network address ranges; the second matching result refers to the target IoT network identifier in the target IoT network identifier that matches the first matching result; this result can be one or more target IoT network identifiers, which match the preset IoT network address range in the first matching result.
[0062] As a further improvement of the present invention, the process of extracting and recognizing the characters of the vehicle license plate by a character recognition method includes:
[0063] Preprocess the image, filter the noise, regularize it to a uniform size, and then perform RGB image smoothing filtering to extract the three color channels of R, G, and B for filtering;
[0064] The license plate area is segmented by color differentiation method, and the segmented color license plate is subjected to grayscale conversion, binarization, mean filtering, corrosion expansion and character segmentation to separate the single character image that constitutes the license plate number from the license plate image, and the segmented characters are binarized and normalized;
[0065] Establish an automatic recognition code table, take the characters to be recognized and match them with the template in turn, subtract them from the template characters, the smaller the value, the greater the similarity, find the smallest one that is the best match, and output the corresponding value of this template.
[0066] As a further improvement of the present invention, the process of setting the time threshold includes:
[0067] Traffic monitoring cameras are used to monitor traffic flow data in no-parking areas in real time, and to collect and analyze traffic flow data in no-parking areas, including peak traffic flow and average vehicle speed indicators in different time periods;
[0068] According to the results of real-time monitoring and traffic flow data analysis, a dynamic time threshold strategy is formulated, a threshold range is set, and the upper and lower limits of the time threshold are dynamically adjusted according to the traffic flow peak and average speed indicators of the traffic situation; the lower limit of the time threshold is set to the minimum reasonable time to ensure that the owner has enough time to move the vehicle; the upper limit of the time threshold is set to the maximum reasonable time to avoid illegal parking for too long and affect traffic flow;
[0069] The time threshold is adjusted in real time according to the results of monitoring and analysis; if any of the indicators such as the peak traffic flow and the average speed increases, the time threshold is set to be reduced; otherwise, the time threshold is set to be increased.
[0070] To achieve the above object, the present invention provides the following technical solutions:
[0071] A highway illegal parking notification system is applied to the highway illegal parking notification method, and the highway illegal parking notification system comprises:
[0072] The equipment deployment module is used to obtain the prohibited parking areas on the highway and mark each prohibited parking area according to the signs; cameras are deployed in the prohibited parking areas to identify vehicles entering the prohibited parking areas;
[0073] The information sending module is used to detect the presence of a vehicle in a prohibited parking area. The camera recognizes the license plate number of the vehicle and uploads the location information of the prohibited parking area and the license plate number to the server. The server queries the contact information of the owner of the corresponding license plate number and sends the information of illegal parking to the owner.
[0074] The threshold judgment module is used to issue an instruction to display illegal parking information on an electronic signboard when the vehicle owner exceeds the time threshold set by the server and does not move the vehicle; at the same time, the traffic management platform records and processes the illegal parking information.
[0075] The present invention realizes the monitoring and identification of the prohibited parking areas by acquiring the prohibited parking areas of the highway, marking these areas and deploying cameras, effectively monitoring whether there are vehicles parked in the prohibited parking areas, and providing basic data for the subsequent illegal parking processing. When a vehicle is detected to be parked in the prohibited parking area, the camera identifies the license plate number of the vehicle and uploads the relevant information to the server; the server sends the illegal parking information to the owner by querying the contact information of the owner of the corresponding license plate number, thereby realizing real-time monitoring and notification of illegal parking behavior, and effectively reminding the owner of the illegal behavior. When the owner does not move the vehicle for more than the time threshold set by the server, the system issues an instruction to display the illegal parking information on the electronic notice board, and the traffic management platform records and processes the illegal parking information, and informs the public through the electronic notice board, thereby improving the warning effect of illegal parking, and recording and processing illegal parking behavior, maintaining road traffic order and safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 A schematic diagram of a step flow chart of an embodiment of a method for notifying a highway parking violation of the present invention;
[0077] Figure 2 A schematic flow chart of the steps of deploying cameras in a prohibited parking area in one embodiment of a method for notifying illegal parking on a highway according to the present invention;
[0078] Figure 3 A schematic flow chart of the steps of sending information about illegal parking to a vehicle owner in an embodiment of a method for notifying illegal parking on a highway according to the present invention;
[0079] Figure 4 A schematic flow chart of the steps for setting a time threshold in one embodiment of a method for notifying a highway parking violation of the present invention;
[0080] Figure 5 A schematic diagram of functional modules of an embodiment of a highway illegal parking notification system of the present invention;
[0081] Figure 6 It is a structural schematic diagram of an embodiment of an electronic device of the present invention;
[0082] Figure 7 It is a schematic structural diagram of an embodiment of the storage medium of the present invention. DETAILED DESCRIPTION
[0083] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0084] The terms "first", "second" and "third" in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0085] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0086] like Figure 1 As shown, this embodiment provides an embodiment of a method for notifying a highway illegal parking. In this embodiment, the method for notifying a highway illegal parking specifically includes the following steps:
[0087] Step S1: Obtain the prohibited parking areas of the highway and mark each prohibited parking area; deploy cameras in the prohibited parking areas to identify vehicles entering the prohibited parking areas;
[0088] Step S2: When a vehicle is detected in a prohibited parking area, the camera identifies the vehicle's license plate number, uploads the location information of the prohibited parking area and the license plate number to the server, and the server queries the contact information of the owner of the corresponding license plate number and sends the information of illegal parking to the owner;
[0089] Step S3: When the vehicle owner exceeds the time threshold set by the server and does not move the vehicle, an instruction is issued to display the illegal parking information on the electronic signboard; at the same time, the traffic management platform records and processes the illegal parking information.
[0090] Preferably, step S1 of this embodiment realizes the monitoring and identification of the prohibited parking areas by acquiring the prohibited parking areas of the highway, marking these areas and deploying cameras, effectively monitoring whether there are vehicles parked in the prohibited parking areas, and providing basic data for the subsequent illegal parking processing. Step S2: When a vehicle is detected to be parked in the prohibited parking area, the camera identifies the license plate number of the vehicle and uploads the relevant information to the server; the server sends the illegal parking information to the owner by querying the contact information of the owner of the corresponding license plate number, realizing real-time monitoring and notification of illegal parking behavior, and effectively reminding the owner of the illegal behavior. Step S3: When the owner does not move the vehicle for more than the time threshold set by the server, the system issues an instruction to display the illegal parking information on the electronic notice board, and the traffic management platform records and processes the illegal parking information, and informs the public through the electronic notice board, thereby improving the warning effect of illegal parking, and recording and processing illegal parking behavior, maintaining road traffic order and safety.
[0091] To sum up, this embodiment combines technical means such as camera recognition, server query and electronic sign display to achieve full monitoring, notification and processing of illegal parking behaviors; improve the efficiency and standardization of road traffic management, reduce the adverse effects of illegal parking behaviors on traffic order and safety, and ensure smooth and safe road traffic.
[0092] Furthermore, if Figure 2 As shown, the process of deploying cameras in the no-parking area in step S1 specifically includes the following steps:
[0093] Step S11: Divide a certain section of highway to determine the illegal parking area of the current highway, and mark the boundary and range of the illegal parking prohibited area on the map of the current highway, using lines to distinguish the markings;
[0094] Step S12: Importing the marked map data into the server, and the server confirms the illegal parking prohibited area corresponding to the camera according to the resolution of the camera;
[0095] Step S13: In the server, a mapping table corresponding to the illegal parking prohibited area is established. When a vehicle appears in the illegal parking prohibited area, the camera starts the vehicle recognition instruction and transmits it to the server through the Internet of Things.
[0096] Preferably, step S11 of this embodiment marks the boundary of the illegal parking zone on the map and uses lines to distinguish it, which helps to accurately locate and visualize the prohibited parking zone, making the subsequent camera deployment and monitoring work more accurate and reliable. Step S12 associates the map data with the camera information in the server to ensure that each camera corresponds to the correct prohibited parking zone, which can ensure that the camera only monitors the prohibited parking zone it is responsible for, thereby improving the efficiency and accuracy of monitoring. Step S13 enables the server to obtain and process the information of vehicles in the prohibited parking zone in a timely manner according to the recognition instructions of the camera; at the same time, through the transmission of the Internet of Things, real-time data interaction between the camera and the server is realized.
[0097] In summary, this embodiment accurately locates and visualizes the prohibited parking area, making the boundaries and scope of the illegal parking area clearer and more specific; ensures that each camera corresponds to the correct prohibited parking area, improving the efficiency and accuracy of monitoring; and realizes real-time data interaction between the camera and the server, ensuring the timely acquisition and processing of vehicle information in the prohibited parking area. This embodiment improves the efficiency of monitoring and processing of illegal parking, reduces the impact of illegal behavior on traffic order and safety; strengthens the warning and crackdown on illegal parking behavior, and improves the effect and level of traffic management; realizes automatic monitoring and notification of illegal parking through technical means, reducing the burden of manual patrol and processing.
[0098] Furthermore, the process of marking the boundary and range of the illegal parking prohibited area on the map of the current highway in step S11 specifically includes the following steps:
[0099] Step S111: collecting map data of the current highway including road lines, intersections and buildings through a database; loading the map data, generating map metadata, and obtaining a map layer through the electronic map metadata;
[0100] Step S112: determining the topological relationship between the construction elements of the middle layer of the map layer, wherein the construction elements include road lines, intersections and buildings, etc., rendering the electronic map metadata acquisition layer, generating a rendering style file, and obtaining a new layer for marking the boundary and range of the illegal parking area; selecting the endpoint of a boundary line segment of the illegal parking area on the map, and determining the starting point of drawing the prohibited parking area;
[0101] Step S113: starting from the starting point, different points on the map are selected to draw the boundary of the prohibited parking area according to the shape of the prohibited parking area; after all boundary line segments are drawn according to the size and shape of the prohibited parking area, the last point on the map is selected to end the drawing.
[0102] Preferably, step S111 of this embodiment collects map data and generates map metadata, collects data of the current highway through the database, including road lines, intersections, buildings, etc., to ensure that the data used is sufficient and accurate; loads the collected map data and generates electronic map metadata, so that subsequent processing can be conveniently carried out; obtains relevant map layers through electronic map metadata to provide basic data for subsequent annotation. Significance achieved: Provides reliable basic data, lays a solid foundation for subsequent annotation and drawing work, and ensures the validity and credibility of the drawing results; this step makes the process more systematic, lays a good technical foundation for subsequent layer construction and rendering, and improves work efficiency. Step S112 constructs topological relationships and rendering layers, determines the topological relationships between construction elements such as road lines, intersections and buildings in the map layer, helps to understand the spatial relationship and ensure the accuracy of annotation; renders the obtained electronic map layer, generates a style file, and creates a new layer, which is specifically used to mark the boundaries and ranges of illegal parking areas. Significance achieved: By rendering the generated new layer, the visualization effect of the map can be improved, and the marking of the illegal and prohibited parking areas can be made clear and concise; clarifying the relationship between the construction elements helps to correctly draw the boundaries of the prohibited parking areas, ensure the accuracy of the data, and have a significant impact on subsequent operations. Step S113 draws the boundaries of the prohibited parking areas, selects the starting point of the boundary segment of the prohibited parking area on the map, starts the drawing process, and ensures that the marking starts from a specific position; according to the shape of the illegal and prohibited parking area, starting from the starting point, selects different map points to gradually draw the boundary segments until the marking of the entire area is completed. Significance achieved: After completion, the boundary marking makes the illegal and prohibited parking areas very obvious on the map, which is convenient for users to refer to and comply with relevant regulations; by accurately marking the prohibited parking areas, it strengthens support for traffic management, avoids illegal parking, and promotes road traffic safety and smoothness.
[0103] In summary, this embodiment organizes and systematizes the marking process of illegal and prohibited parking areas through the above steps, ensuring the accuracy and visualization of the marking results. Overall, this process is of great significance for building a safer and more orderly traffic environment. It not only helps law enforcement agencies to conduct effective traffic management, but also provides clear instructions for drivers, thereby reducing traffic violations and improving traffic safety. It reflects the important role of technology in urban management and optimization of traffic facilities, and provides important data support for relevant departments.
[0104] Furthermore, the process of establishing a mapping table corresponding to the illegal parking prohibited area in step S13 specifically includes the following steps:
[0105] Step S131: Create a database model with a hierarchical structure, which includes three core elements: camera information, illegal parking zones, and vehicle status; each camera entity should include attributes such as unique identification, installation location, and monitoring range; use a many-to-many relationship to connect the camera with multiple prohibited parking zones, and establish a relationship table to achieve association;
[0106] Step S132: Record and update the camera status and monitoring area information in real time, monitor the changes of the camera monitoring area regularly or in real time, and dynamically update the database;
[0107] Step S133: Vehicle identification is used in the server to analyze the images captured by the camera and determine the status of the vehicle in the prohibited parking area; when the vehicle enters the prohibited parking area, the server automatically determines the prohibited parking area to which the vehicle belongs, and records the time and vehicle information, etc.
[0108] Preferably, step S131 of this embodiment creates a hierarchical database model, and establishes a database model with a hierarchical structure, so that the relationship between camera information, illegal parking areas and vehicle status is clearer; the camera is connected to multiple parking areas through a relationship table, allowing the system to flexibly manage and query related information. The significance achieved: ensure that all relevant data (cameras, parking areas and vehicle status) are stored centrally to promote structured management of data; allow new cameras and parking areas to be added without affecting the existing data structure, enhance the flexibility of the system and the possibility of future expansion; by establishing a clear many-to-many relationship, improve query performance, and be able to retrieve information related to specific cameras or parking areas more quickly. Step S132 enters and updates information in real time, and designs a real-time entry module so that any camera status changes or parking area adjustments can update the database immediately; regularly or automatically monitor the monitoring status and area changes of the camera to determine the latest status. Significance achieved: Real-time updates ensure that the information in the database is always up to date, reducing management errors caused by information lags; can quickly respond to changes in urban traffic management, such as adding a no-parking zone or canceling an existing zone, making the system more adaptable; through dynamic data, managers can obtain real-time traffic monitoring data, providing a scientific basis to support traffic management decisions. Step S133 Vehicle identification and status analysis, the system integrates a vehicle identification algorithm in the server, which can automatically analyze the images captured by the camera to determine whether the vehicle has entered a no-parking zone; when a vehicle is identified as entering a no-parking zone, the system can automatically record the entry and exit time, vehicle information, etc. Significance achieved: Through the automated vehicle identification mechanism, the vehicle status can be quickly and accurately identified and recorded, significantly improving the efficiency and accuracy of violation monitoring; the automatic recording and identification function reduces manual intervention, improves resource utilization, and enables law enforcement to focus more on handling violations; real-time recording and alarms can provide real-time data support for relevant management departments, quickly respond to violations, and thus improve the timeliness and strength of law enforcement.
[0109] In summary, the entire process of this embodiment demonstrates a complete and efficient management mechanism, covering data model construction, dynamic information update, and intelligent identification and recording methods, forming an intelligent traffic monitoring system. Through these technical effects, efficient management of illegal parking areas is finally achieved, which not only makes traffic management more scientific and transparent, but also can respond to and solve illegal problems in a timely manner, thereby improving the city's traffic order and public safety.
[0110] Furthermore, the process of determining the no-parking area corresponding to the camera in step S132 specifically includes the following steps:
[0111] Step S1321: using a library function, taking the camera's field of view and the boundary of the illegal parking area as input, calling the corresponding library function to perform an intersection analysis operation, and the library function returns the intersection result, that is, the part where the camera's field of view intersects with the boundary of the illegal parking area;
[0112] The expression of the library function is:
[0113] Input Parameters
[0114] P=(x c1 ,y c1 ),(x c2 ,y c2 ),…,(x cn ,y cn ), the camera field of view, defined as a set of vertex coordinates; i index, indicating the point number, ranging from 1 to n, where n is the number of vertices in the camera field of view;
[0115] A=(x p1 ,y p1 ),(x p2 ,y p2 ),…,(x pm ,y pm ), the boundary of the no-parking area is defined as the coordinate set of another series of vertices, i index, indicating the number of the point, ranging from 1 to m, where m is the number of vertices of the boundary of the no-parking area;
[0116] Equation expression, defining the polygon:
[0117] Define a polygon using point sets P and A:
[0118] Camera P olygon=Polygon(P)
[0119] No P arking P olygon=Polygon(A)
[0120] Compute the intersection area:
[0121] Compute the intersection of the two:
[0122] Intersection=Camera P olygon∩No P arking P olygon
[0123] Result judgment:
[0124] If Intersection is the empty set (no intersection):
[0125] Return None
[0126] Otherwise, return the geometry of the Intersection;
[0127] Step S1322: Select a spatial analysis method for line intersection, input the geometric information of two lines, including the coordinates of the starting point and the end point of the lines; use a line segment intersection judgment algorithm to determine whether the two lines intersect, and if the two lines intersect, calculate the coordinates of the intersection point; if the two lines intersect, calculate the intersection point set of the intersecting lines or the intersection part of the intersecting lines, and return the result of the intersection point or the intersection area;
[0128] Step S1323: Determine the intersecting area or boundary, where the area or boundary is the illegal parking prohibited area corresponding to the camera.
[0129] Preferably, step S1321 of this embodiment performs intersection analysis by calling a library function to obtain the part where the camera's field of view intersects with the boundary of the prohibited parking area; determines the prohibited parking area covered by the camera, provides an accurate data basis for subsequent monitoring and processing, and ensures that the camera can cover the relevant prohibited parking area, so as to monitor and process illegal parking. Step S1322 uses the spatial analysis method of line-to-line intersection according to the input line information to determine whether the two lines intersect, and calculates the coordinates of the intersection point or the intersection point set or intersection part of the intersection line; determines the specific intersection of the camera's field of view and the boundary of the prohibited parking area, and obtains the position of the intersection point or the intersection area for further processing and analysis. Step S1323 determines the prohibited parking area corresponding to the camera according to the result of the intersection analysis, that is, the part where the camera's field of view intersects with the boundary of the prohibited parking area; ensures that the camera can cover the relevant prohibited parking area, and provides an accurate data basis for subsequent monitoring and processing; by determining the prohibited parking area, illegal parking can be monitored and processed, improving the effect of traffic management and the protection of public safety.
[0130] To sum up, through the implementation of the above steps, this embodiment can determine the no-parking area corresponding to the camera according to the camera's field of view and the boundary of the illegal no-parking area; it can ensure that the camera can cover the relevant no-parking area, provide an accurate data basis for subsequent monitoring and processing, and improve the effectiveness of traffic management and the protection of public safety.
[0131] Furthermore, if Figure 3 As shown, the process of sending the illegal parking information to the car owner in step S2 specifically includes the following steps:
[0132] Step S21: When the camera detects a vehicle in a prohibited parking area, the vehicle's license plate is extracted and recognized by a character recognition method to obtain the license plate number information; the camera uploads the location information of the prohibited parking area and the vehicle's license plate number to the server through the Internet of Things network connection;
[0133] Step S22: After receiving the illegal parking prohibited area location information and the license plate number uploaded by the camera through the vehicle management database, the server queries the contact information of the owner of the corresponding license plate number;
[0134] Step S23: The server sends the information of illegal parking, including the location of the prohibited parking area and the license plate number, to the car owner via SMS, phone call, mobile application notification, etc.
[0135] Preferably, in step S21 of this embodiment, the vehicle license plate is extracted and recognized by character recognition technology to accurately obtain the license plate number information; data transmission between the camera and the server is realized through the Internet of Things network connection; the vehicle license plate number information is accurately obtained to provide an accurate data basis for the subsequent contact with the owner and the sending of illegal parking information; the Internet of Things network connection is realized to achieve instant data transmission to ensure the real-time and accuracy of the information. Step S22 queries the owner's contact information, such as mobile phone number, email address, etc., according to the license plate number through the vehicle management database or other related information systems; obtains the owner's contact information to provide a contact channel for the subsequent sending of illegal parking information; through the query of the vehicle management database, the owner information of the corresponding license plate number can be accurately found to ensure the accuracy and reliability of the information. Step S23 sends the illegal parking information to the owner through SMS, phone calls and mobile application notifications; promptly informs the owner of the illegal parking situation, prompting him to move the vehicle as soon as possible, improves the effect of traffic management and the protection of public safety; through different notification methods, according to the owner's preferences and convenience, choose a suitable method to send information to ensure that the owner receives the notification of illegal parking in time.
[0136] When the camera detects a vehicle in a prohibited parking area, a loss function is used to improve the clarity of the vehicle. The loss function E′(I t ,I 0 ,G,N) is:
[0137]
[0138] In the formula, E′(I t ,I 0 ,G,N) represents the complex loss function defined, which represents the difference between the reconstructed vehicle image and the target vehicle image, and introduces additional constraints, I t Represents the blurred vehicle image at the current time step, including noise and interference information, I0 represents an ideal clear reference vehicle image for comparing the generated effect, G represents the generated vehicle image, and represents the result reconstructed by the algorithm. t represents the generated vehicle image obtained at the current time step, which reflects the progress of vehicle image reconstruction in real time. A represents the transformation matrix, which can be used to generate the vehicle image G θ Perform linear transformation to adjust the features of generated vehicle images, W t Represents the correlation weight matrix with noise, which is responsible for dynamically adjusting different modes of blurry vehicle images. t Represents the variable matrix that affects the generation process and enhances the flexibility of the generation model. t Represents the noise vector of the current time step, which contains the random noise term that affects the generated vehicle image, I b represents the blurred fundus vehicle image, which is used as the reference background vehicle image in the training process. N represents the scalar of the noise level, which controls the noise component in the vehicle image. D represents the constraint matrix, which is specifically designed to analyze the characteristics of the current blurred vehicle image and helps to reduce the blur effect. B represents the transformation matrix, which adjusts the generated vehicle image G t The performance awareness in the reconstruction process makes it more consistent with the target characteristics. λ represents a hyperparameter that controls the balance between the main loss term and the constraint term and adjusts the sensitivity of the model to different losses. Represents the Frobenius norm, which represents the square root of the sum of squares of matrix elements and is used to measure the error between matrices. Represents the 2-norm (Euclidean norm), which is used to measure the distance between vectors.
[0139] In summary, through the implementation of the above steps, this embodiment can send the information of illegal parking to the car owner; the car owner can be informed of the illegal parking in time, prompting him to move the vehicle as soon as possible, thereby improving the effect of traffic management and the protection of public safety. Through the above steps, the camera can identify the illegally parked vehicles in the prohibited parking area in real time and upload the relevant information to the server. The server queries the contact information of the car owner according to the license plate number, and then sends the information of illegal parking to the car owner through an appropriate notification method; the car owner can be informed of the illegal parking in time, prompting him to move the vehicle as soon as possible, thereby improving the effect of traffic management and the protection of public safety.
[0140] The loss function of this embodiment can effectively push the generated vehicle image to the direction of the clear reference image, reducing the information loss caused by blur; by constructing a weight matrix related to noise and adjusting the transformation matrix, it can effectively reduce the interference of noise on the final generated image and improve the image quality; it realizes the linear adjustment of the generated image features, so that the model can adapt to different types of images more flexibly, ensuring that the generated image has more consistent features; the loss function has dynamic response capabilities, and can adjust the generation and reconstruction process according to real-time conditions in different scenarios and conditions, thereby improving robustness; by using a complex loss function, combined with multiple loss terms and constraints, it is possible to deeply explore image features during the training process, improve the optimization effect of the model, and combat blur and noise. Significance: For traffic management systems, accurate and clear vehicle images are the basis for improving the accuracy of monitoring and law enforcement. Improving image clarity can significantly improve the ability to identify and manage illegal vehicles; through automated image processing, the need for manual intervention is reduced, management efficiency is improved, and traffic management is made smarter and more efficient; because the reconstruction process has flexible adjustment capabilities, the design of the loss function makes it adaptable to a wider range of application scenarios, and it has important application prospects from urban traffic monitoring to image processing in autonomous driving technology; reducing image quality issues and information loss helps to improve the reliability and effectiveness of the system in different environments and conditions, thereby enhancing user trust; this loss function provides a new method to deal with image enhancement problems, which can provide an empirical basis for subsequent research and improve the design of deep learning models.
[0141] In summary, the design of the loss function of this embodiment has important technical effects in improving vehicle clarity, reducing noise interference, optimizing feature adjustment, and enhancing dynamic processing capabilities, and has far-reaching practical significance in the field of traffic monitoring and management. Through effective image processing and analysis, the traffic management system will be more efficient and accurate, and can better serve the intelligent management of urban traffic.
[0142] Furthermore, in step S21, the process of connecting the camera to the server via the Internet of Things network specifically includes the following steps:
[0143] Step S211: Obtain the server IoT network information, parse the IoT network information, obtain at least one IoT network address information of the server, calculate the IoT network address information, and obtain the target IoT network identifier;
[0144] Among them, the obtained server IoT network address information is server_address and the camera IoT network address information is camera_address; select a 256-bit secret key; use HMAC to create an input sequence, combine the security key key and server_address for hashing, and generate an HMAC value:
[0145] HMAC server =HMAC(key,server a ddress,SHA256)
[0146] Calculating HMAC
[0147] hmac_server=hmac.new(key.encode(),server_address.encode(),hashlib.sha256).hexdigest()
[0148] Handle the camera address:
[0149] HMAC camera =HMAC(key,camera a ddress,SHA256)
[0150] Calculating HMAC
[0151] hmac_camera = hmac.new(key.encode(), camera_address.encode(), hashlib.sha256).hexdigest() Get the target IoT network ID, generate the target IoT network ID, use one of the HMAC values as the target IoT network ID, and select an HMAC value as the target IoT network ID;
[0152] Get the target IoT network ID generated by HMAC calculation;
[0153] Step S212: Generate an IoT network address of the IoT according to any one of the target IoT network identifier and the IoT network address information;
[0154] Step S213: obtaining the IoT network address information of the camera, and obtaining preset IoT network address range associated set data at the same time, wherein the preset IoT network address range associated set data is the relationship data between the backend maintained authority and the IoT network address range; matching the IoT network address information of the camera with the preset IoT network address range to obtain a first matching result; traversing the first matching result in the target IoT network identifier to obtain a second matching result;
[0155] Among them, the first matching result refers to the preset IoT network address range that matches the IoT network address information of the camera, and this result can be one or more preset IoT network address ranges; the second matching result refers to the target IoT network identifier in the target IoT network identifier that matches the first matching result; this result can be one or more target IoT network identifiers, which match the preset IoT network address range in the first matching result.
[0156] Preferably, step S211 of this embodiment obtains the Internet of Things network information from the server, and uses a one-way hash algorithm to calculate the Internet of Things network address information to obtain a target Internet of Things network identifier to ensure the security and uniqueness of the server's Internet of Things network address; the generation of the target Internet of Things network identifier can be used to uniquely identify the server in the Internet of Things network, so that the camera can accurately connect to the server and ensure the security and reliability of communication. Step S212 generates an Internet of Things network address based on the target Internet of Things network identifier and the Internet of Things network address information, and this address will be used for Internet of Things communication between the camera and the server; the Internet of Things network address is generated to ensure that the camera can accurately identify and connect to the server; the generation of the Internet of Things network address can be based on specific rules and algorithms, so that the camera and the server can effectively communicate in the Internet of Things. Step S213 obtains the IoT network address information of the camera, and matches it with the preset IoT network address range to obtain a first matching result; then, the first matching result is traversed in the target IoT network identifier to obtain a second matching result; by matching the IoT network address information of the camera with the preset IoT network address range, it can be determined whether the camera has the authority to connect to the server; the first matching result is the result of matching the preset IoT network address range with the network address information of the camera, and the second matching result is the target IoT network identifier that matches the first matching result; it can ensure that only cameras with authority can connect to the server, thereby enhancing the security and controllability of the network.
[0157] In summary, the purpose of these steps in this embodiment is to ensure that the camera can be connected to a specific server through the Internet of Things network and to ensure the security, reliability and controllability of communication. Through the above process, the camera can be connected to the server through the Internet of Things and upload the information of illegal parking to the server; data transmission and interaction can be achieved, providing a basis for the subsequent sending of illegal parking information. At the same time, the use of Internet of Things connection can realize the instant transmission of data and ensure the real-time and accuracy of information.
[0158] Furthermore, the process of extracting and recognizing the vehicle license plate by the character recognition method in step S21 specifically includes the following steps:
[0159] Preprocess the image, filter the noise, regularize it to a uniform size, and then perform RGB image smoothing filtering to extract the three color channels of R, G, and B for filtering;
[0160] The license plate area is segmented by color differentiation method, and the segmented color license plate is subjected to grayscale conversion, binarization, mean filtering, corrosion expansion and character segmentation to separate the single character image that constitutes the license plate number from the license plate image, and the segmented characters are binarized and normalized;
[0161] Establish an automatic recognition code table, take the characters to be recognized and match them with the template in turn, subtract them from the template characters, the smaller the value, the greater the similarity, find the smallest one is the best match, and output the corresponding value of this template; preferably, the image preprocessing in this embodiment removes the noise that may be introduced in the image acquisition process, and adjusts images of different sizes to a uniform size through image scaling technology to ensure the consistency of image size in subsequent processing steps; use the color difference between the license plate and the surrounding environment to segment the license plate area from the image, convert the color license plate image into a grayscale image, and convert the grayscale image into a binary image, that is, It only contains two colors, black and white, which is convenient for subsequent edge detection and character segmentation; mean filtering is used to smooth the image, corrosion operation can remove small noise points, and dilation operation can fill the holes inside the characters; the characters in the license plate image are segmented into separate character images, and binarized and resized to match them with the template characters; according to the character set of the license plate number, the corresponding character template is generated and stored in the code table, and the characters to be recognized are matched with the template characters in turn. By calculating the difference between the two, the template character with the smallest difference is found as the matching result, and the recognition result is output.
[0162] In summary, the image preprocessing in this embodiment improves the signal-to-noise ratio of the image, ensures the consistency and comparability of subsequent processing steps, and avoids errors introduced by different image sizes; license plate area segmentation and character extraction accurately extract the license plate area, reduce the complexity and calculation amount of subsequent processing, simplify image information, improve processing speed and efficiency, optimize character shape, improve the accuracy of character recognition, and provide standardized and normalized input data for character recognition; according to the character set of the license plate number, the corresponding character template is generated and stored in the code table to provide a benchmark for character recognition, and the characters to be recognized are matched with the template characters in turn. By calculating the difference between the two, the template character with the smallest difference is found as the matching result, thereby realizing automatic recognition of license plate numbers, improving recognition accuracy and efficiency, reducing manual intervention, reducing the possibility of human errors, and providing reliable data support for vehicle monitoring.
[0163] Furthermore, the process of querying the contact information of the owner of the corresponding license plate number in step S22 specifically includes the following steps:
[0164] Step S221: The server sets up a vehicle management database, which contains the license plate number and the corresponding owner information, such as the owner's name, mobile phone number and address;
[0165] Step S222: The vehicle owner usually needs to register the vehicle and provide the vehicle owner's contact information;
[0166] Step S223: After the server receives the location information of the prohibited parking area and the license plate number uploaded by the camera, the server obtains the vehicle registration information through the agency and matches the corresponding vehicle owner's contact information according to the license plate number.
[0167] Preferably, step S221 of this embodiment establishes a vehicle management database on the server, and stores the license plate number and the corresponding owner information in the database, so that the corresponding owner contact information can be easily queried by the license plate number; the establishment and maintenance of the vehicle management database can help the server quickly and accurately obtain the owner's contact information; by storing the owner's information, the server can quickly query the owner's contact information according to the license plate number, which is convenient for subsequent illegal parking information notifications. Step S222 relies on the vehicle owner to register the vehicle and provide the owner's contact information, which requires the relevant agency to provide registration services and ensure that the owner's contact information can be associated with the license plate number; the vehicle registration requirement can ensure that the owner's contact information is effectively recorded; by requiring the vehicle owner to register and provide contact information, the license plate number can be associated with the owner's contact information, providing basic data for subsequent inquiries. Step S223 obtains vehicle registration information by exchanging data with relevant institutions, and matches the corresponding owner's contact information according to the license plate number; it involves technical processing such as data query, matching and integration; by obtaining vehicle registration information and matching the owner's contact information, the server can accurately obtain the owner's contact information corresponding to the license plate number; it helps to notify the owner of illegal parking information in a timely manner, prompting the owner to deal with the illegal behavior and improve the effect of illegal management.
[0168] In summary, this embodiment obtains the contact information of the owner of the corresponding license plate number so as to send the information of illegal parking to the owner; it can promote the owner's understanding and handling of illegal behavior and improve the effect of traffic management. At the same time, establishing a vehicle management database and requiring vehicle registration also helps to manage and supervise vehicles and provide a basis for subsequent data query and analysis.
[0169] Furthermore, the process of sending the notification to the car owner via SMS, phone call, mobile application notification, etc. in step S23 specifically includes the following steps:
[0170] Step S231: setting the priorities of SMS, phone calls and mobile application notifications, wherein the priorities of SMS, phone calls and mobile application inputs are set to a level according to user settings, and the set priorities are adjusted considering user feedback;
[0171] Step S232: Packing the location of the prohibited parking area and the license plate number into a JSON object, the JSON object consists of a key-value pair, where the key represents the attribute name and the value represents the attribute value, to form a file package containing information about illegal parking;
[0172] Step S233: When the server receives the file package of the illegal parking information, it parses it and triggers the SMS, phone call and mobile application programs in sequence according to the set priorities, and decides whether to proceed to the next method according to the feedback of the previous priority;
[0173] SMS notification: The server obtains the mobile phone number of the car owner, which can be obtained through the vehicle management database or other relevant data sources; the server uses the API interface of the SMS service provider to send the information of illegal parking to the car owner in the form of SMS; the SMS contains the location information of the illegal parking area and the license plate number to remind the car owner to pay attention to the illegal behavior;
[0174] Telephone notification: the server obtains the phone number of the car owner, which can be obtained through the vehicle management database or other relevant data sources; the server uses the telephone communication system to directly convey the information of illegal parking to the car owner through automatic dialing; in the telephone notification, the location information and license plate number of the illegal parking area are provided, and the corresponding illegal situation and handling method are explained to the car owner;
[0175] Mobile application notification: the server determines whether the car owner uses the relevant mobile application. If the car owner uses the mobile application, the server sends a notification of illegal parking to the car owner through the push notification function of the application. The notification displays the violation information, including the location of the prohibited parking area and the license plate number, so that the car owner can be informed of the violation in a timely manner.
[0176] Preferably, step S231 of this embodiment sets the priority of the notification according to the needs and preferences of the user, so that the notification can be triggered and sent according to the priority when sending the notification; by setting the priority, the notification resources can be reasonably allocated according to the importance and urgency of the notification, ensuring that important and urgent notifications can be conveyed to the car owner in a timely manner, thereby improving the effect and response rate of the notification. Step S232 packages the location and license plate number of the prohibited parking area in a structured manner for easy transmission and storage; by packaging, the location and license plate number of the prohibited parking area are uniformly managed and transmitted to ensure the integrity and accuracy of the data, and provide preparation for the subsequent notification sending. Step S233 triggers different notification methods according to the priority setting in a predetermined order to achieve a flexible combination of multiple notification methods; by combining multiple notification methods, the notification needs of the car owner can be more comprehensively covered, and the reliability and accessibility of the notification can be improved. At the same time, according to the feedback of the previous notification method, it can be decided whether to continue to send the next notification method according to the actual situation to avoid repeated notifications or disturbing the car owner.
[0177] In summary, these steps of this embodiment are for providing an efficient, accurate and reliable illegal parking notification service to remind car owners to pay attention to illegal behaviors and take corresponding measures to maintain traffic order and safety.
[0178] Furthermore, if Figure 4 As shown, the process of setting the time threshold in step S3 specifically includes the following steps:
[0179] Step S31: Using traffic monitoring cameras, real-time monitoring of traffic flow data in the prohibited parking area, collecting and analyzing traffic flow data in the prohibited parking area, including indicators such as peak traffic flow and average vehicle speed in different time periods;
[0180] Step S32: According to the results of real-time monitoring and traffic flow data analysis, a dynamic time threshold strategy is formulated, a threshold range is set, and the upper and lower limits of the time threshold are dynamically adjusted according to the size of indicators such as the traffic flow peak and average speed of the traffic situation; the lower limit of the time threshold is set to the minimum reasonable time to ensure that the owner has enough time to move the vehicle; the upper limit of the time threshold is set to the maximum reasonable time to avoid illegal parking for too long and affect traffic flow;
[0181] Step S33: According to the monitoring and analysis results, the time threshold is adjusted in real time; if any one of the indicators such as the peak value of traffic flow and the average speed increases, the time threshold is set to be reduced; otherwise, the time threshold is set to be increased.
[0182] Assume that the following data are obtained based on the monitoring and analysis results:
[0183] Peak traffic volume: 100 vehicles / hour;
[0184] Average speed: 30 km / h;
[0185] Based on these data, the time threshold can be adjusted in real time;
[0186] Assume that the time threshold is set in a range of 10 minutes to 60 minutes.
[0187] According to the peak traffic volume and average speed, the following adjustments can be made:
[0188] If both the peak traffic volume and the average speed are small, it means that the traffic situation is relatively light. In this case, the time threshold can be set to be larger to give the car owner more time to move the car. For example, the time threshold can be set to 60 minutes.
[0189] If the peak or average speed of traffic volume increases, it means that the traffic situation is congested or fast. In this case, the time threshold can be set to be reduced so that illegal parking behavior can be handled more quickly. For example, the time threshold can be set to 20 minutes.
[0190] Preferably, step S31 of this embodiment obtains traffic flow data of the prohibited parking area in real time through equipment such as traffic monitoring cameras, including indicators such as traffic flow peak and average speed; understands the traffic conditions in the prohibited parking area, including the level of traffic flow and the speed of vehicles, and provides basic data for the subsequent time threshold setting. Step S32 determines the upper and lower limits of the time threshold based on the analysis results of indicators such as traffic flow peak and average speed, and sets a reasonable threshold range; dynamically sets the time threshold according to the traffic conditions in the prohibited parking area, so as to more accurately handle illegal parking behaviors, improve the effect of traffic management and reduce traffic congestion. Step S33 timely adjusts the time threshold according to the results of real-time monitoring and analysis; dynamically adjusts the time threshold according to changes in traffic conditions to adapt to the actual needs under different traffic conditions, improve the accuracy and efficiency of illegal parking processing, and reduce traffic congestion and safety hazards.
[0191] In summary, through these steps, this embodiment can dynamically set the time threshold according to the traffic conditions in the prohibited parking area, so as to better cope with different traffic conditions and changes in traffic flow, improve the efficiency and accuracy of handling illegal parking behaviors, and maintain road traffic order and safety. By dynamically setting the time threshold, it is possible to more flexibly cope with different traffic conditions and changes in traffic flow, so as to improve the efficiency and accuracy of handling illegal parking behaviors. At the same time, it can also reduce traffic congestion and safety hazards, and improve the smoothness and safety of road traffic.
[0192] like Figure 5 As shown, this embodiment also provides an embodiment of a highway illegal parking notification system. In this embodiment, the highway illegal parking notification system is applied to the highway illegal parking notification method in the above embodiment. The highway illegal parking notification system includes an equipment layout module 1, an information sending module 2, and a threshold judgment module 3 which are electrically connected in sequence;
[0193] Among them, the equipment deployment module 1 is used to obtain the no-parking areas of the highway and mark each no-parking area according to the signs; cameras are deployed in the no-parking areas to identify vehicles entering the illegal no-parking areas; the information sending module 2 is used to detect the presence of a vehicle in the no-parking area, the camera identifies the license plate number of the vehicle, and uploads the location information of the no-parking area and the license plate number to the server. The server queries the contact information of the owner of the corresponding license plate number and sends the information of illegal parking to the owner; the threshold judgment module 3 is used to issue an instruction to display the illegal parking information on the electronic billboard when the owner exceeds the time threshold set by the server and does not move the vehicle; at the same time, the traffic management platform records and processes the information of illegal parking.
[0194] Preferably, the equipment deployment module 1 of this embodiment can accurately determine the prohibited parking area through equipment deployment, and use the camera to identify the vehicles entering the prohibited parking area, providing an accurate data basis for the subsequent illegal parking processing. The information sending module 2 can send the illegal parking information to the owner in time through license plate recognition and information upload, reminding the owner to move the vehicle in time, and improving the efficiency and accuracy of illegal parking processing. The threshold judgment module 3 judges whether the owner has moved the vehicle in time according to the time threshold. When the specified time is exceeded, the illegal parking information is displayed to the public through an electronic billboard, warning other owners to comply with traffic rules, and reminding the owner to deal with illegal parking behavior in time.
[0195] In summary, this embodiment can monitor, identify and handle illegal parking behaviors through the synergistic effect of these modules, which helps optimize traffic management, improve traffic order and safety, and reduce traffic congestion and accident risks. At the same time, illegal parking information is sent to car owners in a timely manner to remind them to handle it in time, so as to encourage them to abide by traffic rules and maintain the smooth and safe public roads.
[0196] Furthermore, the equipment deployment module 1 specifically includes:
[0197] The area marking submodule is used to divide a certain section of highway, determine the illegal parking area of the current highway, and mark the boundaries and range of the illegal parking area on the map of the current highway, using lines to distinguish the markings;
[0198] The data import submodule is used to import the annotated map data into the server. The server confirms the illegal parking area corresponding to the camera according to the resolution of the camera.
[0199] The corresponding relationship submodule is used to establish a mapping table corresponding to the illegal parking prohibited areas in the server. When a vehicle appears in the illegal parking prohibited area, the camera starts the vehicle recognition command and transmits it to the server through the Internet of Things.
[0200] Preferably, the area marking submodule of this embodiment can accurately determine the illegal parking area of the current highway through area marking, and provide accurate location information for subsequent illegal parking monitoring and processing. The data import submodule stores the marked map data in the server through data import, and provides a data basis for the subsequent establishment of the corresponding relationship between the camera and the illegal parking prohibited area, ensuring the accuracy and reliability of illegal parking monitoring. The corresponding relationship submodule establishes a mapping table corresponding to the illegal parking prohibited area in the server, so that the camera can start the vehicle identification instruction according to the appearance of the illegal parking prohibited area, and transmit it to the server through the Internet of Things.
[0201] In summary, this embodiment can monitor the vehicle situation in the illegal parking area in real time by establishing a corresponding relationship between the camera and the illegal parking area, start the vehicle identification command, and transmit the identification result to the server, providing accurate data support for the subsequent illegal parking information transmission and processing. Through the synergy of the various submodules of the equipment deployment module 1, the illegal parking area can be accurately determined, the corresponding relationship between the camera and the area can be established, and the relevant data can be imported into the server, providing accurate location information and data basis for subsequent illegal parking monitoring and processing; it helps to improve the monitoring accuracy and processing efficiency of illegal parking, optimize traffic management, and reduce traffic congestion and accident risks.
[0202] Furthermore, the information sending module 2 specifically includes:
[0203] The connection establishment submodule is used to extract and recognize the license plate of the vehicle through a character recognition method to obtain the license plate number information when the camera detects a vehicle in the prohibited parking area; through the Internet of Things network connection, the camera uploads the location information of the prohibited parking area and the license plate number of the vehicle to the server;
[0204] The corresponding query submodule is used to query the contact information of the owner of the corresponding license plate number through the vehicle management database after the server receives the location information of the illegal parking area and the license plate number uploaded by the camera;
[0205] The notification sending submodule is used for the server to send the information of illegal parking, including the location of the prohibited parking area and the license plate number, to the car owner through SMS, phone call and mobile application notification.
[0206] Preferably, the connection establishment submodule of this embodiment can obtain the license plate number and location information of the vehicle in the illegal parking prohibited area in real time through character recognition and Internet of Things connection, and upload this information to the server, providing an accurate data basis for the subsequent illegal parking information transmission and processing. The corresponding query submodule can obtain the owner's contact information corresponding to the license plate number by querying the vehicle management database, and provide the owner's contact information for the subsequent illegal parking information transmission, so as to promptly notify the owner of the illegal parking situation. The notification sending submodule can send the illegal parking information to the owner in a timely manner through notification sending, reminding the owner to deal with the illegal parking behavior in a timely manner, urging the owner to abide by traffic rules, and maintain the smooth and safe public roads.
[0207] In summary, this embodiment can obtain the license plate number and location information of the vehicle in the illegal parking area in real time through the synergistic effect of each submodule of the information sending module 2, obtain the contact information of the owner by querying the vehicle management database, and finally send the illegal parking information to the owner; it is helpful to notify the owner of the illegal parking in time, prompt the owner to abide by traffic rules, reduce illegal parking behavior, and improve the efficiency and accuracy of traffic management. At the same time, through the notification of illegal parking information, it is also possible to strengthen the education and guidance of the owner and improve traffic order and safety.
[0208] Furthermore, the threshold determination module 3 specifically includes:
[0209] The data collection submodule is used to monitor the traffic flow data of the no-parking area in real time through traffic monitoring cameras, collect and analyze the traffic flow data of the no-parking area, including indicators such as the peak traffic flow and average speed in different time periods;
[0210] The data analysis submodule is used to formulate a dynamic time threshold strategy based on the results of real-time monitoring and traffic flow data analysis, set a threshold range, and dynamically adjust the upper and lower limits of the time threshold according to the size of indicators such as traffic flow peak and average speed; the lower limit of the time threshold is set to the minimum reasonable time to ensure that the owner has enough time to move the vehicle; the upper limit of the time threshold is set to the maximum reasonable time to avoid illegal parking for too long and affect traffic flow;
[0211] The threshold adjustment submodule is used to adjust the time threshold in real time according to the results of monitoring and analysis; if any of the indicators such as the peak value of traffic flow and the average speed increases, the time threshold is set to be reduced; otherwise, the time threshold is set to be increased.
[0212] Preferably, the data collection submodule of this embodiment can understand the traffic conditions in the no-parking area in real time through data collection, including indicators such as the peak value of traffic flow and average speed, and provide a data basis for the dynamic adjustment of the subsequent time threshold to adapt to the needs of illegal parking processing under different traffic flow conditions. The data analysis submodule can formulate a reasonable time threshold strategy based on the traffic flow conditions in the no-parking area through data analysis to adapt to the needs of illegal parking processing under different traffic conditions; dynamic adjustment of the time threshold can ensure that the owner has enough time to move the vehicle and avoid illegal parking for too long and affecting traffic flow. The threshold adjustment submodule can adjust the time threshold in real time according to the traffic conditions in the no-parking area through threshold adjustment to adapt to changes in traffic flow and ensure the timeliness and accuracy of illegal parking processing; according to changes in indicators such as the peak value of traffic flow and average speed, the time threshold is dynamically set to better manage illegal parking behavior and maintain road traffic order and safety.
[0213] In summary, this embodiment can collect and analyze the traffic flow data of the prohibited parking area in real time through the synergistic effect of each submodule of the threshold judgment module 3, and dynamically adjust the time threshold according to the traffic conditions to adapt to the illegal parking processing needs under different traffic flow conditions; it is helpful to improve the efficiency and accuracy of illegal parking processing, optimize traffic management, and reduce traffic congestion and accident risks. At the same time, by dynamically adjusting the time threshold, it can better adapt to changes in traffic flow and realize a flexible illegal parking processing strategy.
[0214] like Figure 6 As shown, this embodiment provides an embodiment of an electronic device. In this embodiment, the electronic device 4 includes a processor 41 and a memory 42 coupled to the processor 41.
[0215] The memory 42 stores program instructions for implementing the highway illegal parking notification method of any of the above embodiments.
[0216] The processor 41 is used to execute the program instructions stored in the memory 42 to perform highway illegal parking notification.
[0217] The processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having signal processing capabilities. The processor 41 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0218] Further, Figure 7 The schematic diagram of the structure of the storage medium of an embodiment of the present application is that the storage medium 5 of the embodiment of the present application stores program instructions 51 that can implement all the above methods, wherein the program instructions 51 can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0219] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0220] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units. The above is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present invention.
[0221] The specific implementation methods of the invention are described in detail above, but they are only examples, and the invention is not limited to the specific implementation methods described above. For those skilled in the art, any equivalent modification or substitution of the invention is also within the scope of the invention, therefore, the equalization, modification, improvement, etc. made without departing from the spirit and principle of the invention should be included in the scope of the invention.
Claims
1. A method for notifying illegal parking on a highway, characterized in that: The highway illegal parking notification method comprises: Obtain the prohibited parking areas on the highway and mark each prohibited parking area; deploy cameras in prohibited parking areas to identify vehicles that enter the prohibited parking areas; When a vehicle is detected in a prohibited parking area, the camera identifies the vehicle's license plate number and uploads the location information of the prohibited parking area and the license plate number to the server. The server queries the contact information of the owner of the corresponding license plate number and sends the information of illegal parking to the owner. When the car owner exceeds the time threshold set by the server and does not move the vehicle, an instruction is issued to display the illegal parking information on an electronic signboard; at the same time, the traffic management platform records and processes the illegal parking information.
2. The method for notifying illegal parking on a highway according to claim 1, characterized in that: The process of deploying cameras in no-parking areas includes: Divide a section of highway to determine the illegal parking area on the current highway, and mark the boundaries and range of the illegal parking prohibited area on the map of the current highway, using lines to distinguish the boundaries; Import the marked map data into the server, and the server confirms the illegal parking area corresponding to the camera according to the camera's resolution; In the server, a mapping table is established with the corresponding illegal parking areas. When a vehicle appears in the illegal parking area, the camera starts the vehicle recognition command and transmits it to the server through the Internet of Things.
3. The method for notifying illegal parking on a highway according to claim 2, characterized in that: The process of marking the boundaries and extent of the illegal parking area on the current highway map includes: Collect the current highway map data including road lines, intersections and buildings through the database; load the map data, generate map metadata, and obtain the map layer through the electronic map metadata; Determine the topological relationship between the construction elements of the middle layer of the map layer, wherein the construction elements include road lines, intersections and buildings, render the electronic map metadata acquisition layer, generate a rendering style file, and obtain a new layer for marking the boundary and range of the illegal parking area; select the endpoint of a boundary line segment of the illegal parking area on the map to determine the starting point of drawing the parking ban area; According to the shape of the illegal parking prohibited area, starting from the starting point, select different points on the map to draw the boundary of the prohibited parking area; according to the size and shape of the illegal parking prohibited area, after drawing all the boundary segments, select the last point on the map to end the drawing.
4. The highway illegal parking notification method according to claim 2, characterized in that: The process of establishing a mapping table corresponding to the prohibited parking areas includes: Create a hierarchical database model that includes three core elements: camera information, prohibited parking areas, and vehicle status; each camera entity should include unique identification, installation location, and monitoring range attributes; use many-to-many relationships to connect cameras to multiple prohibited parking areas, and establish relationship tables to achieve association; Real-time input and update of camera status and monitoring area information, regular or real-time monitoring of changes in camera monitoring areas, and dynamic update of the database; Vehicle recognition is used in the server to analyze the images captured by the camera and determine the status of vehicles in the prohibited parking area; when a vehicle enters the prohibited parking area, the server automatically determines the prohibited parking area to which the vehicle belongs and records the time and vehicle information.
5. The highway illegal parking notification method according to claim 4, characterized in that: The process of determining the no-parking area corresponding to the camera includes: Using the library function, the camera's field of view and the boundary of the illegal parking area are taken as input, and the corresponding library function is called to perform the intersection analysis operation. The library function returns the intersection result, that is, the part where the camera's field of view intersects with the boundary of the illegal parking area; The expression of the library function is: Input Parameters P=(x c1 ,y c1 ),(x c2 ,y c2 ),…,(x cn ,y cn ), the camera field of view, defined as a set of vertex coordinates; i index, indicating the point number, ranging from 1 to n, where n is the number of vertices in the camera field of view; A=(x p1 ,y p1 ),(x p2 ,y p2 ),…,(x pm ,y pm ), the boundary of the no-parking area is defined as the coordinate set of another series of vertices, i index, indicating the number of the point, ranging from 1 to m, where m is the number of vertices of the boundary of the no-parking area; Equation expression, defining the polygon: Define a polygon using point sets P and A: Camera P view=Polygon(P) No P arking P view=Polygon(A) Compute the intersection area: Compute the intersection of the two: Intersection=Camera P views∩No P arking P sights Result judgment: If Intersection is the empty set: Return None Otherwise, return the geometry of the Intersection; Select the spatial analysis method for line intersection, input the geometric information of the two lines, including the coordinates of the starting and ending points of the lines; use the line segment intersection judgment algorithm to determine whether the two lines intersect, if the two lines intersect, calculate the coordinates of the intersection point; if the two lines intersect, calculate the intersection point set of the intersecting lines or calculate the intersection part of the intersecting lines, and return the result of the intersection point or intersection area; Determine the intersecting area or boundary, where the area or boundary is the illegal parking prohibited area corresponding to the camera.
6. The highway illegal parking notification method according to claim 1, characterized in that: The process of sending parking violation information to the vehicle owner includes: When the camera detects a vehicle in a prohibited parking area, the vehicle's license plate is extracted and recognized by a character recognition method to obtain the license plate number information; through the IoT network connection, the camera uploads the location information of the prohibited parking area and the vehicle's license plate number to the server; After receiving the location information of the prohibited parking area and the license plate number uploaded by the camera through the vehicle management database, the server queries the contact information of the owner of the corresponding license plate number; The server sends the information of illegal parking, including the location of the prohibited parking area and the license plate number, to the car owner via SMS, phone call and mobile application notification.
7. The highway illegal parking notification method according to claim 6, characterized in that: The process of connecting the camera to the server through the IoT network includes the following steps: Obtaining the server's Internet of Things network information, parsing the Internet of Things network information, obtaining at least one Internet of Things network address information of the server, calculating the Internet of Things network address information, and obtaining a target Internet of Things network identifier; Among them, the obtained server IoT network address information is server_address and the camera IoT network address information is camera_address; select a 256-bit secret key; use HMAC to create an input sequence, combine the security key key and server_address for hashing, and generate an HMAC value: HMAC server =HMAC(key,server a ddress,SHA256) Calculating HMAC hmac_server = hmac.new(key.encode(), server_address.encode(), hashlib.sha256).hexdigest() to process the camera address: HMAC camera =HMAC(key,camera a ddress,SHA256) Calculating HMAC hmac_camera = hmac.new(key.encode(), camera_address.encode(), hashlib.sha256).hexdigest() Get the target IoT network ID, generate the target IoT network ID, use one of the HMAC values as the target IoT network ID, and select an HMAC value as the target IoT network ID; Get the target IoT network ID generated by HMAC calculation; Generate an IoT network address of the IoT according to any one of the target IoT network identifier and the IoT network address information; Obtain the IoT network address information of the camera, and simultaneously obtain the preset IoT network address range associated set data, where the preset IoT network address range associated set data is the relationship data between the backend maintained permissions and the IoT network address range; match the IoT network address information of the camera with the preset IoT network address range to obtain a first matching result; traverse the first matching result in the target IoT network identifier to obtain a second matching result; Among them, the first matching result refers to the preset IoT network address range that matches the IoT network address information of the camera, and the result is one or more preset IoT network address ranges; the second matching result refers to the target IoT network identifier in the target IoT network identifier that matches the first matching result; the result is one or more target IoT network identifiers, which match the preset IoT network address range in the first matching result.
8. The highway illegal parking notification method according to claim 6, characterized in that: The process of extracting and recognizing the vehicle license plate by character recognition method includes: Preprocess the image, filter the noise, regularize it to a uniform size, and then perform RGB image smoothing filtering to extract the three color channels of R, G, and B for filtering; The license plate area is segmented by color differentiation method, and the segmented color license plate is subjected to grayscale conversion, binarization, mean filtering, corrosion expansion and character segmentation to separate the single character image that constitutes the license plate number from the license plate image, and the segmented characters are binarized and normalized; Establish an automatic recognition code table, take the characters to be recognized and match them with the template in turn, subtract them from the template characters, the smaller the value, the greater the similarity, find the smallest one that is the best match, and output the corresponding value of this template.
9. The highway illegal parking notification method according to claim 1, characterized in that: The process of setting the time threshold includes: Traffic monitoring cameras are used to monitor traffic flow data in no-parking areas in real time, and to collect and analyze traffic flow data in no-parking areas, including peak traffic flow and average vehicle speed indicators in different time periods; According to the results of real-time monitoring and traffic flow data analysis, a dynamic time threshold strategy is formulated, a threshold range is set, and the upper and lower limits of the time threshold are dynamically adjusted according to the traffic flow peak and average speed indicators of the traffic situation; the lower limit of the time threshold is set to the minimum reasonable time to ensure that the owner has time to move the vehicle; the upper limit of the time threshold is set to the maximum reasonable time; The time threshold is adjusted in real time according to the results of monitoring and analysis; if any one of the traffic flow peak and average speed indicators increases, the time threshold is set to be reduced; otherwise, the time threshold is set to be increased.
10. A highway illegal parking notification system, which is applied to the highway illegal parking notification method according to any one of claims 1 to 9, characterized in that: The highway illegal parking notification system comprises: The equipment deployment module is used to obtain the prohibited parking areas on the highway and mark each prohibited parking area according to the signs; cameras are deployed in the prohibited parking areas to identify vehicles entering the prohibited parking areas; The information sending module is used to detect the presence of a vehicle in a prohibited parking area. The camera recognizes the license plate number of the vehicle and uploads the location information of the prohibited parking area and the license plate number to the server. The server queries the contact information of the owner of the corresponding license plate number and sends the information of illegal parking to the owner. The threshold judgment module is used to issue an instruction to display illegal parking information on an electronic signboard when the vehicle owner exceeds the time threshold set by the server and does not move the vehicle; at the same time, the traffic management platform records and processes the illegal parking information.
