Smart community safety early warning system, method, computer equipment and storage medium
By designing a smart community safety warning system, using cameras and license plate recognition technology to monitor vehicles in the garage in real time, the problem of delay and slow identification of traditional manual monitoring methods on parking space occupation and illegal parking is solved, and efficient parking space management is achieved and maintain traffic order.
Patent Information
- Application Number
- CN202411516739.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-29
AI Technical Summary
The traditional manual monitoring method has problems of delay and slow identification in the problem that parking spaces are occupied or important passages are blocked by other vehicles. It is impossible to detect illegal parking vehicles in time, and it is impossible to ensure that each car is parked in its own parking space.
A smart community safety warning system was designed, including parking space occupation warning module, parking illegal warning module, parking space management module and parking space allocation module. The camera captures images in the garage in real time, analyzes the vehicle characteristics and license plate numbers, determines whether the vehicle has the right to use, and issues warning reminders when the vehicle is parked illegally.
Real-time monitoring and early warning of parking space occupation and illegal parking behaviors has been achieved, the efficiency and accuracy of parking space management has been improved, the demand for manpower supervision has been reduced, and the maintenance of community traffic order and parking space utilization has been improved.
Smart Images

Figure CN119049256B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of smart early warning, and in particular to a smart community safety early warning system, method, computer equipment and storage medium. Background Art
[0002] Smart community security early warning is a system based on intelligent technology, which aims to provide comprehensive security monitoring and timely alarm functions to ensure the safety of community residents. It can monitor and warn various security risks in the community by integrating multiple sensing devices, data analysis and communication technologies.
[0003] The smart community safety warning system plays an important role in the problem of parking spaces being occupied or important passages being blocked by other vehicles. It performs the functions of monitoring, alarming, reminding and rapid response, thus improving the safety and management efficiency of the community.
[0004] Traditional manual monitoring methods have problems with delays and slow recognition speeds, and are unable to detect illegally parked vehicles in a timely manner. In addition, as for vehicle occupancy in the garage, it is impossible to guarantee that every vehicle is parked in its own parking space. Parking spaces are often occupied or important passages are blocked by other vehicles. On the one hand, this affects vehicle safety, and on the other hand, this manual monitoring method will greatly reduce the efficiency of handling emergency incidents. Summary of the invention
[0005] The purpose of the present invention is to provide a smart community safety early warning system, aiming to solve the technical problems existing in the prior art identified in the background technology.
[0006] The present invention is implemented in this way: a smart community safety early warning system, the system comprising:
[0007] The parking space occupancy warning module is used to collect real-time images in the garage and analyze all vehicle features in the image to determine whether the vehicle entering the parking space has the right to use the parking space or is authorized to use the space;
[0008] The illegal parking warning module is used to divide the roads in the garage into through roads and auxiliary roads, and determine whether the vehicle that is not in the parking space is continuously moving. If it is not in the moving state, it determines whether the vehicle is in the through road position. If it is in the through position, it will issue a warning reminder;
[0009] The parking space management module is used to determine whether each parking space has been applied for registration on the same day, and obtain the registration information of the parking spaces that have been applied for registration, and the parking space registration information includes: parking space number, available time and price;
[0010] The parking space allocation module is used to establish a parking space sorting platform, which includes all parking space registration information. After the user selects the usage time, the platform recommends qualified parking spaces to the user based on the available time of each parking space. At the same time, the platform sends a bill to the user based on the corresponding pricing and usage time of the parking space, and provides the user's vehicle with authorization to use the parking space after the payment is completed.
[0011] As a further solution of the present invention, the parking space occupancy warning module includes:
[0012] An image acquisition unit is used to capture images in the garage in real time through a camera, extract vehicle features in the image, and recognize the license plate number information of each vehicle;
[0013] The authority verification unit is used to match the recognized license plate number with the vehicle information entered into the garage. If the vehicle entering the garage belongs to a vehicle in the garage, it is determined whether the vehicle has the right to use or the authorization to use the corresponding parking space after the vehicle is parked;
[0014] The real-time feedback unit is used to issue an early warning reminder and send a text message reminder to the parking space owner when the vehicle is in a parking space that it does not have the right to use or the authorization to use.
[0015] As a further solution of the present invention, the illegal parking warning module includes:
[0016] A road division module, used to divide the roads in the garage into through roads and auxiliary roads, wherein the through roads are non-occupiable roads and the auxiliary roads are occupiable roads;
[0017] A vehicle state determination unit, used to determine whether the vehicle is currently in a driving state from the continuous images captured by the camera, and if the vehicle is not in a driving state, to determine whether the current position of the vehicle is on a passable road;
[0018] The violation warning unit is used to identify the vehicle's license plate number when the vehicle is not in motion and is parked on a traffic road, and to issue an early warning reminder in the garage and stop after the vehicle is moved away.
[0019] As a further solution of the present invention, the parking space allocation module includes:
[0020] The user setting unit is used to build a parking space sorting platform and collect all the parking space information in the current garage and the owner information of each parking space, and obtain the parking space registration information set by each parking space owner on the day;
[0021] The parking space recommendation unit is used to obtain the parking space usage time applied by the user, and compare the applied parking space usage time with the available time in the parking space registration information of the day recorded in the current parking space sorting platform, to obtain all parking spaces that meet the user's usage time requirements, and when there are no parking spaces that meet the usage time requirements, to obtain the parking space that best fits the user's usage time, and to provide feedback to the user;
[0022] The information authorization unit is used to calculate the fee to be paid according to the pricing of the parking space and the user's usage time after the user selects the required parking space, and send the fee bill to the user. After the user completes the payment, the user's license plate number is temporarily bound to the parking space, so that the vehicle with the license plate number obtains the authorization to use the parking space, and the parking space information is synchronized to the user.
[0023] Another object of the present invention is to provide a smart community safety early warning method, the method comprising:
[0024] Collect real-time images in the garage and analyze all vehicle features in the image to determine whether the vehicle entering the parking space has the right to use the parking space or is authorized to use the space;
[0025] Divide the roads in the garage into through roads and auxiliary roads, determine whether the vehicle that is not in the parking space is continuously moving, and if it is not in the moving state, determine whether the vehicle is in the through road position, and if it is in the through position, issue an early warning reminder;
[0026] Determine whether each parking space has been applied for registration on that day, and obtain the registration information of the parking spaces that have been applied for registration, wherein the parking space registration information includes: parking space number, available time and pricing;
[0027] A parking space sorting platform is established, which includes all parking space registration information. After the user selects the usage time, the platform recommends qualified parking spaces to the user based on the available time of each parking space. At the same time, a bill is sent to the user based on the corresponding pricing and usage time of the parking space, and after the payment is completed, the user's vehicle is provided with authorization to use the parking space.
[0028] As a further solution of the present invention, the determining whether the vehicle entering the parking space has the right to use or the authorization to use the parking space specifically includes:
[0029] The camera captures images in the garage in real time, extracts vehicle features from the images, and identifies the license plate number information of each vehicle;
[0030] The identified license plate number is matched with the vehicle information entered into the garage. If the vehicle entering the garage is a vehicle in the garage, it is determined whether the vehicle has the right to use or authorization to use the corresponding parking space after the vehicle is parked;
[0031] When a vehicle is in a parking space that it does not have the right to use or authorization to use, an early warning reminder is issued and a text message reminder is sent to the parking space owner.
[0032] As a further solution of the present invention, the roads in the garage are divided into through roads and auxiliary roads, and the determination of whether the vehicle not in the parking space is continuously moving specifically includes:
[0033] Divide the roads in the garage into access roads and auxiliary roads, wherein the access roads are non-occupiable roads and the auxiliary roads are occupiable roads;
[0034] Determine whether the vehicle is currently in a driving state from the continuous images captured by the camera, and if the vehicle is not in a driving state, determine whether the current position of the vehicle is on a passable road;
[0035] When the vehicle is not in motion and is parked on a traffic road, the vehicle's license plate number is identified, an early warning reminder is given in the garage, and the vehicle stops after the vehicle moves away.
[0036] As a further solution of the present invention, after the user selects the usage time, a parking space that meets the conditions is recommended to the user according to the available time of each parking space, and a bill is sent to the user according to the corresponding pricing and usage time of the parking space, and after the payment is completed, the user's vehicle is provided with the use authorization of the parking space, which specifically includes:
[0037] Build a parking space sorting platform and collect all parking space information in the current garage and the owner information of each parking space, and obtain the parking space registration information set by each parking space owner on the day;
[0038] Obtain the parking space usage time applied by the user, and compare the applied parking space usage time with the available time in the parking space registration information of the day recorded in the current parking space sorting platform, obtain all parking spaces that meet the user's usage time requirements, and when there are no parking spaces that meet the usage time requirements, obtain the parking space that best fits the user's usage time and feedback it to the user;
[0039] After the user selects the required parking space, the fee to be paid is calculated based on the pricing of the parking space and the user's usage time, and the fee bill is sent to the user. After the user completes the payment, the user's license plate number is temporarily bound to the parking space, so that the vehicle with the license plate number obtains authorization to use the parking space, and the parking space information is synchronized to the user.
[0040] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the smart community safety warning method.
[0041] Another object of the present invention is to provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the steps of the smart community safety warning method.
[0042] The beneficial effects of the present invention are:
[0043] By utilizing a high-precision image acquisition unit and advanced vehicle status judgment algorithms, the system is able to identify and analyze in real time the moment a vehicle stops and illegally parks on a road. Combined with precise license plate recognition technology, the system can quickly lock onto illegally parked vehicles and automatically issue warnings, which are not limited to sound or light signals, but also include direct notifications to the owner. When the illegally parked vehicle leaves, the system can also terminate the warning immediately to avoid unnecessary interference. This automated instant feedback mechanism not only reduces the need for manual monitoring, but also greatly improves the efficiency of handling illegal parking incidents, thereby effectively promoting the maintenance of community traffic order and ensuring the smooth and safe flow of roads.
[0044] At the same time, a parking space sharing system is added to improve the utilization rate of parking spaces and reduce parking space occupancy. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A structural block diagram of a smart community safety early warning system provided by an embodiment of the present invention;
[0046] Figure 2 A structural block diagram of a parking space occupancy warning module provided in an embodiment of the present invention;
[0047] Figure 3 A structural block diagram of a parking violation warning module provided by an embodiment of the present invention;
[0048] Figure 4 A structural block diagram of a parking space allocation module provided in an embodiment of the present invention;
[0049] Figure 5 A flowchart of a smart community safety early warning method provided by an embodiment of the present invention;
[0050] Figure 6 A flowchart for determining whether a vehicle entering a parking space has the right to use or authorization to use the parking space provided by an embodiment of the present invention;
[0051] Figure 7 A flowchart of dividing the roads in a garage into through roads and auxiliary roads and determining whether a vehicle not in a parking space continues to travel, provided in an embodiment of the present invention;
[0052] Figure 8A flow chart of providing the user's vehicle with the use authorization of the parking space provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0054] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.
[0055] Figure 1 The structure diagram of the smart community safety early warning system provided by the embodiment of the present invention is as follows: Figure 1 As shown, a smart community safety early warning system, the system includes:
[0056] The parking space occupancy warning module 100 is used to collect real-time images in the garage and analyze all vehicle features in the image to determine whether the vehicle entering the parking space has the right to use the parking space or the authorization to use the parking space;
[0057] The garage is equipped with high-resolution cameras, which are distributed in key locations of the garage to cover all parking spaces and collect image data in real time. The cameras are also equipped with night vision function to adapt to low-light conditions and ensure clear image capture at night. In advanced applications, the cameras also have motion detection capabilities and can automatically start recording when a vehicle enters the monitoring area.
[0058] When a vehicle enters the monitoring range, the license plate number is extracted from the image accurately and quickly. The license plate information is compared and verified with the database in the garage management system to determine whether the vehicle is authorized to use a specific parking space. The information in the database includes the license plate number of the parking space owner and their authorized users. This unit is highly intelligent and can handle a variety of license plate types and can even identify dirty, damaged or non-standard license plates.
[0059] When a vehicle is parked in an unauthorized space, the unit will respond quickly and issue an early warning in a variety of ways, such as on-site alarms, instant notifications from the garage management system, or notifications to the parking space owner and vehicle driver via SMS, APP push, etc. This instant feedback is essential to correct errors in a timely manner and avoid conflicts.
[0060] Through automated real-time monitoring, the system not only greatly improves the efficiency of parking space management, eliminates the loopholes of traditional manual inspection, but also ensures that parking space resources are used optimally. The real-time monitoring and early warning mechanism of parking spaces reduces disputes and conflicts in parking lots, improves parking space utilization, and enhances the sense of control of parking space owners over their personal property and the overall safety of the community.
[0061] The parking violation warning module 200 is used to divide the roads in the garage into through roads and auxiliary roads, determine whether the vehicle that is not in the parking space is continuously moving, and if it is not in the moving state, determine whether the vehicle is in the through road position, and if it is in the through position, issue a warning reminder;
[0062] This module will accurately divide the roads in the garage into access roads and auxiliary roads, ensuring that vehicles can clearly identify and follow the correct driving path. Access roads are the main traffic arteries of the garage and must be kept open at all times, so this module strictly defines and monitors access roads. Auxiliary roads are set as possible short-term parking or waiting areas, and their use is more flexible.
[0063] By analyzing the continuous image sequence captured by the camera, it is determined whether the vehicle is in a driving state or a parked state. If a vehicle is not in a driving state on the road, it may be a potential illegal parking behavior, which may affect the passage of other vehicles.
[0064] When a vehicle is detected to be illegally parked on a road, the violation warning unit will start the warning procedure. First, it will identify the vehicle's license plate number for subsequent tracking and management. Then, the system will issue a warning through sound and light signals in the garage, prompting the owner to move the vehicle quickly to avoid causing more serious traffic jams and potential safety risks. Once the vehicle leaves the road, the warning is automatically cancelled.
[0065] Through the precise division of the internal roads of the garage and continuous monitoring, the system can automatically detect and respond to illegal parking behaviors in a timely manner, greatly reducing the need for human supervision and related costs. Using advanced license plate recognition technology, the illegal parking warning module quickly identifies and warns illegal vehicles, while providing data support for garage management to facilitate the subsequent tracking and handling of violations. The real-time warning response mechanism not only improves the timeliness of illegal parking processing, but also optimizes the user experience, ensures the traffic order of the garage, and significantly reduces traffic congestion and potential safety risks caused by illegal parking. This comprehensive technical application improves the living environment of the entire community and brings residents a more convenient and safe parking experience.
[0066] The parking space management module 300 is used to determine whether each parking space has been applied for registration on that day, and obtain the registration information of the parking spaces that have been applied for registration, and the parking space registration information includes: parking space number, available time and price;
[0067] The parking space allocation module 400 is used to establish a parking space sorting platform, which includes all parking space registration information. After the user selects the usage time, the parking space that meets the conditions is recommended to the user according to the available time of each parking space. At the same time, a bill is sent to the user according to the corresponding pricing and usage time of the parking space, and after the payment is completed, the user's vehicle is provided with authorization to use the parking space.
[0068] This module collects and organizes information about all parking spaces in the garage, including the location of each parking space, owner information, and parking space usage time and pricing information set by the owner. Users can use this unit to set their own parking space registration information, including the available time period and price of the parking space, so that other users can choose and use it.
[0069] When a user applies for a parking space, the unit will match the parking space registration information recorded in the parking space sorting platform according to the user's usage time requirements to find all available parking spaces. If there is no parking space that fully meets the requirements, the system will try to recommend a parking space that is closest to the user's needs. The unit uses advanced matching algorithms to ensure the efficiency and accuracy of the recommendation process. When the user selects a suitable parking space, the system will automatically calculate the fee and send the bill to the user. After the user completes the payment, the system will temporarily bind the parking space to the user's license plate number and authorize the user to use the parking space. At the same time, it ensures that the parking space information is synchronized to the user in real time, so that the user can find the parking space accurately.
[0070] Figure 2 The structural block diagram of the parking space occupancy warning module provided by the embodiment of the present invention is as follows: Figure 2 As shown, the parking space occupancy warning module includes:
[0071] The image acquisition unit 110 is used to capture images in the garage in real time through a camera, extract vehicle features in the image, and recognize the license plate information of each vehicle;
[0072] The authority verification unit 120 is used to match the identified license plate number with the vehicle information entered into the garage. If the vehicle entering the garage belongs to a vehicle in the garage, it is determined whether the vehicle has the right to use or the authorization to use the corresponding parking space after the vehicle is parked;
[0073] The real-time feedback unit 130 is used to issue an early warning reminder and send a text message reminder to the parking space owner when the vehicle is in a parking space that the vehicle does not have the right to use or the authorization to use.
[0074] Figure 3The structural block diagram of the illegal parking warning module provided by the embodiment of the present invention is as follows: Figure 3 As shown, the illegal parking warning module includes:
[0075] A road division module 210 is used to divide the roads in the garage into through roads and auxiliary roads, wherein the through roads are non-occupiable roads and the auxiliary roads are occupiable roads;
[0076] The vehicle state determination unit 220 is used to determine whether the vehicle is currently in a driving state from the continuous images captured by the camera, and if the vehicle is not in a driving state, determine whether the current position of the vehicle is on a passable road;
[0077] The violation warning unit 230 is used to identify the vehicle's license plate number when the vehicle is not in motion and is parked on a traffic road, and to issue an early warning reminder in the garage and stop after the vehicle is moved away.
[0078] Figure 4 The structural block diagram of the parking space allocation module provided in the embodiment of the present invention is as follows: Figure 4 As shown, the parking space allocation module includes:
[0079] The user setting unit 410 is used to build a parking space sorting platform and collect all parking space information in the current garage and the owner information of each parking space, and obtain the parking space registration information set by each parking space owner on the day;
[0080] The parking space recommendation unit 420 is used to obtain the parking space usage time applied by the user, and compare the applied parking space usage time with the available time in the parking space registration information of the day recorded in the current parking space sorting platform, to obtain all parking spaces that meet the user's usage time requirements, and when there are no parking spaces that meet the usage time requirements, to obtain the parking space that best fits the user's usage time, and to provide feedback to the user;
[0081] The information authorization unit 430 is used to calculate the fee to be paid according to the pricing of the parking space and the user's usage time after the user selects the required parking space, and send the fee bill to the user. After the user completes the payment, the user's license plate number is temporarily bound to the parking space, so that the vehicle with the license plate number obtains the authorization to use the parking space, and the parking space information is synchronized to the user.
[0082] Figure 5 A flowchart of a smart community safety early warning method provided by an embodiment of the present invention, such as Figure 5 As shown, a smart community safety early warning method comprises:
[0083] S100, collecting real-time images in the garage, analyzing all vehicle features in the images, and determining whether the vehicle entering the parking space has the right to use the parking space or is authorized to use the parking space;
[0084] The garage is equipped with high-resolution cameras, which are distributed in key locations of the garage to cover all parking spaces and collect image data in real time. The cameras are also equipped with night vision function to adapt to low-light conditions and ensure clear image capture at night. In advanced applications, the cameras also have motion detection capabilities and can automatically start recording when a vehicle enters the monitoring area.
[0085] When a vehicle enters the monitoring range, the license plate number is extracted from the image accurately and quickly. The license plate information is compared and verified with the database in the garage management system to determine whether the vehicle is authorized to use a specific parking space. The information in the database includes the license plate number of the parking space owner and their authorized users. This unit is highly intelligent and can handle a variety of license plate types and can even identify dirty, damaged or non-standard license plates.
[0086] When a vehicle is parked in an unauthorized space, the unit will respond quickly and issue an early warning in a variety of ways, such as on-site alarms, instant notifications from the garage management system, or notifications to the parking space owner and vehicle driver via SMS, APP push, etc. This instant feedback is essential to correct errors in a timely manner and avoid conflicts.
[0087] Through automated real-time monitoring, the system not only greatly improves the efficiency of parking space management, eliminates the loopholes of traditional manual inspection, but also ensures that parking space resources are used optimally. The real-time monitoring and early warning mechanism of parking spaces reduces disputes and conflicts in parking lots, improves parking space utilization, and enhances the sense of control of parking space owners over their personal property and the overall safety of the community.
[0088] S200, dividing the roads in the garage into through roads and auxiliary roads, determining whether the vehicle not in the parking space is continuously moving, and if not in a moving state, determining whether the vehicle is in a through road position, and if in a through position, issuing an early warning reminder;
[0089] This step will accurately divide the roads in the garage into access roads and auxiliary roads, ensuring that vehicles can clearly identify and follow the correct driving path. Access roads are the main traffic arteries of the garage and must be kept open at all times, so this step strictly defines and monitors access roads. Auxiliary roads are set as possible short-term parking or waiting areas, and their use is more flexible.
[0090] By analyzing the continuous image sequence captured by the camera, it is determined whether the vehicle is in a driving state or a parked state. If a vehicle is not in a driving state on the road, it may be a potential illegal parking behavior, which may affect the passage of other vehicles.
[0091] When a vehicle is detected to be illegally parked on a road, the violation warning unit will start the warning procedure. First, it will identify the vehicle's license plate number for subsequent tracking and management. Then, the system will issue a warning through sound and light signals in the garage, prompting the owner to move the vehicle quickly to avoid causing more serious traffic jams and potential safety risks. Once the vehicle leaves the road, the warning is automatically cancelled.
[0092] In this step, through the precise division of the internal roads of the garage and continuous monitoring, the system can automatically detect and respond to illegal parking behaviors in a timely manner, greatly reducing the need for human supervision and related costs. Using advanced license plate recognition technology, illegal vehicles can be quickly identified and alerted, while providing data support for garage management to facilitate the subsequent tracking and handling of violations. The real-time early warning response mechanism not only improves the timeliness of illegal parking processing, but also optimizes the user experience, ensures the traffic order of the garage, and significantly reduces traffic jams and potential safety risks caused by illegal parking. This comprehensive technical application improves the living environment of the entire community and brings residents a more convenient and safe parking experience.
[0093] S300, determining whether each parking space has been applied for registration on the day, and obtaining registration information of the parking spaces that have been applied for registration, wherein the parking space registration information includes: parking space number, available time and price;
[0094] S400, establish a parking space sorting platform, which includes all parking space registration information, and after the user selects the usage time, recommends qualified parking spaces to the user based on the available time of each parking space, and sends a bill to the user based on the corresponding pricing and usage time of the parking space, and provides the user's vehicle with authorization to use the parking space after the payment is completed.
[0095] This step will collect and organize the information of all parking spaces in the garage, including the location of each parking space, owner information, and parking space usage time and pricing information set by the owner. Users can use this unit to set their own parking space registration information, including the available time period and price of the parking space, so as to provide it to other users for selection and use.
[0096] When a user applies for a parking space, the unit will match the parking space registration information recorded in the parking space sorting platform according to the user's usage time requirements to find all available parking spaces. If there is no parking space that fully meets the requirements, the system will try to recommend a parking space that is closest to the user's needs. The unit uses advanced matching algorithms to ensure the efficiency and accuracy of the recommendation process. When the user selects a suitable parking space, the system will automatically calculate the fee and send the bill to the user. After the user completes the payment, the system will temporarily bind the parking space to the user's license plate number and authorize the user to use the parking space. At the same time, it ensures that the parking space information is synchronized to the user in real time, so that the user can find the parking space accurately.
[0097] Figure 6 A flowchart for determining whether a vehicle entering a parking space has the right to use or authorization to use the parking space is provided in an embodiment of the present invention, such as Figure 6 As shown, the determination of whether the vehicle entering the parking space has the right to use or the authorization to use the parking space specifically includes:
[0098] S110 uses a camera to capture images in the garage in real time, extract vehicle features from the images, and recognize the license plate information of each vehicle;
[0099] S120, matching the recognized license plate number with the vehicle information entered into the garage, and if the vehicle entering the garage is a vehicle in the garage, determining whether the vehicle has the right to use or the authorization to use the corresponding parking space after the vehicle is parked;
[0100] S130, when the vehicle is in a parking space for which the vehicle does not have the right to use or the authorization to use, an early warning reminder is issued, and a text message reminder is sent to the parking space owner.
[0101] Furthermore, the camera captures the image in the garage in real time, extracts the vehicle features in the image, and identifies the license plate information of each vehicle, including:
[0102] Build a YOLO pre-trained model for vehicle detection and a LPRNet pre-trained model for license plate recognition;
[0103] Acquire a real-time video frame from the garage environment through a camera, and read a frame of image from the real-time video frame as an input image;
[0104] The input image is resized and normalized to obtain a preprocessed inspection image;
[0105] The preprocessed inspection image is input into the YOLO pre-trained model, and multiple detection frames containing position and category information are obtained through forward propagation calculation, and the detection frame in which the category is a vehicle is obtained as the detection result;
[0106] According to the detection results, the vehicle area image is cropped from the input image;
[0107] Convert the vehicle area image into a grayscale image, perform edge detection on the grayscale image, extract the edge information of the vehicle, and obtain an edge image;
[0108] Obtain edge points in the edge image, and use the K-Means clustering algorithm to perform cluster analysis on the coordinates of the edge points to obtain the characteristic information of the vehicle;
[0109] The vehicle area image is adjusted to a fixed size and normalized to obtain a preprocessed vehicle image;
[0110] The preprocessed vehicle image is input into the LPRNet model for license plate recognition to obtain the license plate number string, and the characteristic information of the vehicle is associated with the corresponding license plate number string.
[0111] Furthermore, edge points in the edge image are obtained, and the coordinates of the edge points are clustered and analyzed using the K-Means clustering algorithm to obtain the characteristic information of the vehicle, including:
[0112] Step 2.1, randomly select k data points as the initial cluster centers and set the initial data point weights for each edge point;
[0113] Step 2.2, use the kernel function to map the data points to a high-dimensional space to capture the nonlinear relationship of the data and obtain a high-dimensional feature representation;
[0114] Step 2.3, according to the number of edge points in the neighborhood, calculate the density of each edge, and combine the weight density and distance of the initial data point to calculate the dynamic weight. The corresponding process has the following relationship:
[0115] ;
[0116] in, Indicates i Dynamic weights, Indicates i The data point in t The weight of the data point at the iteration, Indicates i The edge point density of data points, Indicates i data points, Indicates i The data point in t The center of the cluster to which it belongs at the iteration, Represents the square of the distance from the data point to the cluster center;
[0117] Step 2.4, assign each data point to the adjacent cluster center. The corresponding process has the following relationship:
[0118] ;
[0119] in, Indicates i The cluster number to which the data point belongs. Indicates j The cluster center is in t The coordinates at the iteration;
[0120] Step 2.5, update the cluster center according to the dynamic weight, and introduce the momentum term during the update to balance the relationship between the current update and historical information. The corresponding process has the following relationship:
[0121] ;
[0122] in, Indicates j The cluster center is in t +1 iteration coordinates, represents the momentum term weight, Represents data points in high-dimensional space and cluster centers The inner product of represents the indicator function, when The value is 1 when it is, otherwise it is 0; Indicates the number of data points;
[0123] Step 2.6, adjust the weight of the data point according to the change in the distance from the data point to the cluster center. The corresponding process has the following relationship:
[0124] ;
[0125] in, Indicates i The data point in t +The weight of the data point at 1 iteration, represents the hyperparameter that controls the magnitude of the full-time adjustment;
[0126] Step 2.7, repeat steps 2.1 to 2.6 in an iterative manner. After the iteration is completed, the cluster to which each data point belongs and the final cluster center are obtained.
[0127] The traditional K-Means clustering algorithm can only be divided in Euclidean space, and may not be effective for complex data (such as data with nonlinear boundaries). In the process of clustering analysis, the present invention maps the data to a high-dimensional space through a kernel function, which can capture the nonlinear structure of the data and better separate the data, thereby improving the accuracy of clustering. In the subsequent period, a momentum term is introduced to make the update of the cluster center smoother, thereby accelerating convergence and reducing the possibility of falling into a local optimal solution. In addition, the present invention introduces edge point density based on the characteristics of edge points. By incorporating density information into weight calculations, the clustering results can be made more representative and practical, and can more accurately reflect the distribution of data points in local areas. Furthermore, when a vehicle is in a parking space that it does not have the right to use or authorization to use, an early warning reminder is issued, and a text message reminder is sent to the parking space owner, specifically including:
[0128] Compare whether the recognized license plate number exists in the registered vehicle information;
[0129] If it exists, extract the authorized parking space list corresponding to the license plate number and compare whether the parking space where the current vehicle is parked is in the authorized parking space list;
[0130] According to the comparison result, the vehicles are divided into authorized vehicles and unauthorized vehicles;
[0131] Based on the detection results of adjacent image frames of unauthorized vehicles in the camera video sequence, it is determined whether the vehicle is currently in driving or parked state, and the parking location and time information are recorded. An early warning reminder is generated based on the current state of the vehicle, and a text message reminder is sent to the parking space owner.
[0132] A behavior prediction model is constructed using a random forest model, and the behavior prediction model is trained using historical parking data to obtain a trained behavior prediction model;
[0133] The trained behavior prediction model is used to predict the probability of each unauthorized vehicle parking in the current or future time period, so as to generate early warning information in advance to remind the owner to pay attention to the use of parking spaces, and send a text message reminder to the parking space owner after determining that the current state of the vehicle is parked.
[0134] Figure 7 A flowchart of dividing the roads in the garage into through roads and auxiliary roads and determining whether the vehicle not in the parking space is continuously moving is provided in an embodiment of the present invention, such as Figure 7 As shown, the roads in the garage are divided into through roads and auxiliary roads, and the determination of whether the vehicle not in the parking space is continuously moving specifically includes:
[0135] S210, dividing the roads in the garage into through roads and auxiliary roads, wherein the through roads are non-occupiable roads and the auxiliary roads are occupiable roads;
[0136] S220, determining whether the vehicle is currently in a driving state from the continuous images captured by the camera, and if the vehicle is not in a driving state, determining whether the current position of the vehicle is on a passable road;
[0137] S230, when the vehicle is not in motion and is parked on a road, the license plate number of the vehicle is identified, and an early warning reminder is issued in the garage, and the early warning is stopped after the vehicle is moved away.
[0138] Figure 8 The flowchart of providing the user's vehicle with the parking space use authorization provided by the embodiment of the present invention is as follows: Figure 8 As shown, after the user selects the usage time, the system recommends qualified parking spaces to the user according to the available time of each parking space, sends a bill to the user according to the corresponding pricing and usage time of the parking space, and provides the user's vehicle with the use authorization of the parking space after the payment is completed, specifically including:
[0139] S410, building a parking space sorting platform, and collecting all parking space information in the current garage and information about the owner of each parking space, and obtaining parking space registration information set by each parking space owner on the day;
[0140] S420, obtaining the parking space usage time applied by the user, and comparing the applied parking space usage time with the available time in the parking space registration information of the day recorded in the current parking space sorting platform, obtaining all parking spaces that meet the user's usage time requirements, and when there are no parking spaces that meet the usage time requirements, obtaining the parking space that best fits the user's usage time, and feeding back to the user;
[0141] S430, after the user selects the required parking space, the fee to be paid is calculated based on the pricing of the parking space and the user's usage time, and the fee bill is sent to the user. After the user completes the payment, the user's license plate number is temporarily bound to the parking space, so that the vehicle with the license plate number obtains the authorization to use the parking space, and the parking space information is synchronized to the user.
[0142] Furthermore, after the user selects the required parking space, the fee to be paid is calculated according to the pricing of the parking space and the user's usage time, and the fee bill is sent to the user, specifically including:
[0143] Read the parking start time and end time provided by the user, and convert them into a standard time format to obtain the application time period;
[0144] According to the application time period, the available time periods of each parking space are traversed to check whether each time period meets the needs of the user;
[0145] Compare the user's application time period with the available time period of the parking space to ensure that the entire time period applied for by the user is within the available time range of the parking space;
[0146] Adjust parking charges based on the location of the parking space, historical trends, and the current time period;
[0147] The parking spaces that meet the conditions and the adjusted charges are recorded and returned for recommendation to the user for selection.
[0148] The embodiment of the present invention also includes: a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the smart community safety warning method.
[0149] The embodiment of the present invention also includes: a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the steps of the smart community safety warning method.
[0150] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0152] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0153] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0154] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A smart community safety early warning method, characterized in that: The method comprises the following steps: Collect real-time images in the garage and analyze all vehicle features in the image to determine whether the vehicle entering the parking space has the right to use the parking space or is authorized to use the space; Divide the roads in the garage into through roads and auxiliary roads, determine whether the vehicle that is not in the parking space is continuously moving, and if it is not in the moving state, determine whether the vehicle is on the through road, and if it is on the through road, issue an early warning reminder; Determine whether each parking space has been applied for registration on that day, and obtain the registration information of the parking spaces that have been applied for registration, wherein the parking space registration information includes: parking space number, available time and pricing; Establish a parking space sorting platform, which includes all parking space registration information, and after the user selects the usage time, recommends qualified parking spaces to the user according to the available time of each parking space, and sends a bill to the user according to the corresponding pricing and usage time of the parking space, and provides the user's vehicle with the use authorization of the parking space after the payment is completed; The step of determining whether the vehicle entering the parking space has the right to use the parking space or the authorization to use the parking space specifically includes: The camera captures images in the garage in real time, extracts vehicle features from the images, and identifies the license plate number information of each vehicle; The identified license plate number is matched with the vehicle information entered into the garage. If the vehicle entering the garage is a vehicle in the garage, it is determined whether the vehicle has the right to use or authorization to use the corresponding parking space after the vehicle is parked; When a vehicle is in a parking space that it does not have the right to use or the authorization to use, an early warning reminder is issued and a text message reminder is sent to the parking space owner; The camera captures the images in the garage in real time, extracts the vehicle features in the image, and identifies the license plate information of each vehicle, including: Build a YOLO pre-trained model for vehicle detection and a LPRNet pre-trained model for license plate recognition; Acquire a real-time video frame from the garage environment through a camera, and read a frame of image from the real-time video frame as an input image; The input image is resized and normalized to obtain a preprocessed inspection image; The preprocessed inspection image is input into the YOLO pre-trained model, and multiple detection frames containing position and category information are obtained through forward propagation calculation, and the detection frame in which the category is a vehicle is obtained as the detection result; According to the detection results, the vehicle area image is cropped from the input image; Convert the vehicle area image into a grayscale image, perform edge detection on the grayscale image, extract the edge information of the vehicle, and obtain an edge image; Obtain edge points in the edge image, and use the K-Means clustering algorithm to perform cluster analysis on the coordinates of the edge points to obtain the characteristic information of the vehicle; The vehicle area image is adjusted to a fixed size and normalized to obtain a preprocessed vehicle image; The pre-processed vehicle image is input into the LPRNet model for license plate recognition to obtain the license plate number string, and the characteristic information of the vehicle is associated with the corresponding license plate number string; Obtain edge points in the edge image and use the K-Means clustering algorithm to perform cluster analysis on the coordinates of the edge points to obtain the characteristic information of the vehicle, including: Step 2.1, randomly select k data points as the initial cluster centers and set the initial data point weights for each edge point; Step 2.2, use the kernel function to map the data points to a high-dimensional space to capture the nonlinear relationship of the data and obtain a high-dimensional feature representation; Step 2.3, according to the number of edge points in the neighborhood, calculate the density of each edge, and combine the weight density and distance of the initial data point to calculate the dynamic weight. The corresponding process has the following relationship: ; in, Indicates i Dynamic weights, Indicates i The data point in t The weight of the data point at the iteration, Indicates i The edge point density of data points, Indicates i data points, Indicates i The data point in t The center of the cluster to which it belongs at the iteration, Represents the square of the distance from the data point to the cluster center; Step 2.4, assign each data point to the adjacent cluster center. The corresponding process has the following relationship: ; in, Indicates i The cluster number to which the data point belongs. Indicates j The cluster center is in t The coordinates at the iteration; Step 2.5, update the cluster center according to the dynamic weight, and introduce the momentum term during the update to balance the relationship between the current update and historical information. The corresponding process has the following relationship: ; in, Indicates j The cluster center is in t +1 iteration coordinates, represents the momentum term weight, Represents data points in high-dimensional space and cluster centers The inner product of represents the indicator function, when The value is 1 when it is, otherwise it is 0; Indicates the number of data points; Step 2.6, adjust the weight of the data point according to the change in the distance from the data point to the cluster center. The corresponding process has the following relationship: ; in, Indicates i The data point in t +The weight of the data point at 1 iteration, represents the hyperparameter that controls the magnitude of the full-time adjustment; Step 2.7, repeat steps 2.1 to 2.6 in an iterative manner. After the iteration is completed, the cluster to which each data point belongs and the final cluster center are obtained.
2. The smart community safety early warning method according to claim 1 is characterized in that: When a vehicle is in a parking space that it does not have the right to use or the authorization to use, an early warning reminder is issued and a text message reminder is sent to the parking space owner, including: Compare whether the recognized license plate number exists in the registered vehicle information; If it exists, extract the authorized parking space list corresponding to the license plate number and compare whether the parking space where the current vehicle is parked is in the authorized parking space list; According to the comparison result, the vehicles are divided into authorized vehicles and unauthorized vehicles; Based on the detection results of adjacent image frames of unauthorized vehicles in the camera video sequence, it is determined whether the vehicle is currently in driving or parked state, and the parking location and time information are recorded. An early warning reminder is generated based on the current state of the vehicle, and a text message reminder is sent to the parking space owner. A behavior prediction model is constructed using a random forest model, and the behavior prediction model is trained using historical parking data to obtain a trained behavior prediction model; The trained behavior prediction model is used to predict the probability of each unauthorized vehicle parking in the current or future time period, so as to generate early warning information in advance to remind the owner to pay attention to the use of parking spaces, and send a text message reminder to the parking space owner after determining that the current state of the vehicle is parked.
3. The smart community safety early warning method according to claim 2 is characterized in that: The dividing the roads in the garage into through roads and auxiliary roads and judging whether the vehicles not in the parking spaces are continuously moving specifically include: Divide the roads in the garage into access roads and auxiliary roads, wherein the access roads are non-occupiable roads and the auxiliary roads are occupiable roads; Determine whether the vehicle is currently in a driving state from the continuous images captured by the camera, and if the vehicle is not in a driving state, determine whether the current position of the vehicle is on a passable road; When the vehicle is not in motion and is parked on a traffic road, the vehicle's license plate number is identified and an early warning is given in the garage, and the early warning stops after the vehicle moves away.
4. The smart community safety early warning method according to claim 3 is characterized in that: After the user selects the usage time, the system recommends qualified parking spaces to the user based on the available time of each parking space, sends a bill to the user based on the corresponding pricing and usage time of the parking space, and provides the user's vehicle with the use authorization of the parking space after the payment is completed, specifically including: Build a parking space sorting platform and collect all parking space information in the current garage and the owner information of each parking space, and obtain the parking space registration information set by each parking space owner on the day; Obtain the parking space usage time applied by the user, and compare the applied parking space usage time with the available time in the parking space registration information of the day recorded in the current parking space sorting platform, obtain all parking spaces that meet the user's usage time requirements, and when there are no parking spaces that meet the usage time requirements, obtain the parking space that best fits the user's usage time and feedback it to the user; After the user selects the required parking space, the fee to be paid is calculated based on the pricing of the parking space and the user's usage time, and the fee bill is sent to the user. After the user completes the payment, the user's license plate number is temporarily bound to the parking space, so that the vehicle with the license plate number obtains authorization to use the parking space, and the parking space information is synchronized to the user.
5. The smart community safety early warning method according to claim 4 is characterized in that: After the user selects the required parking space, the fee to be paid is calculated based on the pricing of the parking space and the user's usage time, and the fee bill is sent to the user, including: Read the parking start time and end time provided by the user, and convert them into a standard time format to obtain the application time period; According to the application time period, the available time periods of each parking space are traversed to check whether each time period meets the needs of the user; Compare the user's application time period with the available time period of the parking space to ensure that the entire time period applied for by the user is within the available time range of the parking space; Adjust parking charges based on the location of the parking space, historical trends, and the current time period; The parking spaces that meet the conditions and the adjusted charges are recorded and returned for recommendation to the user for selection.
6. A smart community safety early warning system, characterized in that: The system is applied to the smart community safety early warning method according to any one of claims 1 to 5, and the system includes: The parking space occupancy warning module is used to collect real-time images in the garage and analyze all vehicle features in the image to determine whether the vehicle entering the parking space has the right to use the parking space or is authorized to use the space; The illegal parking warning module is used to divide the roads in the garage into through roads and auxiliary roads, and determine whether the vehicle that is not in the parking space is continuously moving. If it is not in the moving state, it determines whether the vehicle is on the through road. If it is on the through road, it will issue a warning reminder; The parking space management module is used to determine whether each parking space has been applied for registration on the same day, and obtain the registration information of the parking spaces that have been applied for registration, and the parking space registration information includes: parking space number, available time and price; The parking space allocation module is used to establish a parking space sorting platform, which includes all parking space registration information. After the user selects the usage time, the platform recommends qualified parking spaces to the user based on the available time of each parking space. At the same time, the platform sends a bill to the user based on the corresponding pricing and usage time of the parking space, and provides the user's vehicle with authorization to use the parking space after the payment is completed.
7. A computer device, characterized in that: It includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the smart community safety warning method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the processor executes the steps of the smart community safety warning method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Community illegal parking warning method based on license plate recognition and image variance algorithm
CN110008957A
Community vehicle management control system and method
CN113362611A