Method and system for automatically identifying and re-identifying vehicles at entrance and exit of parking lot
By using the Resnet neural network model to extract and compare vehicle features in the parking lot, automatic identification and re-identification of unlicensed vehicles is achieved, solving the problems of identifying unlicensed vehicles and blocked license plates in the existing technology, and improving billing efficiency. and system stability, reducing reliance on brand and model data.
Patent Information
- Application Number
- CN202311817410.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technology is difficult to achieve efficient automatic identification and billing of unlicensed vehicles and blocked license plates in parking lots, and the neural network model needs to be regularly updated to adapt to market changes, resulting in complex management and recognition errors.
It adopts the image acquisition module, feature calculation and identification module, data storage module and comparison calculation module, and uses the Resnet neural network pre-training model to extract and compare vehicle features to realize automatic identification and re-identification of unlicensed vehicles, and identify them through the cosine similarity algorithm. Vehicle characteristics, reduce dependence on data such as brand and model, and avoid regular model updates.
It realizes automatic passage and efficient billing of unlicensed vehicles, reduces user operating costs, improves recognition accuracy and system availability, avoids toll evasion caused by users blocking license plates, and reduces dependence on brand and model data, improving improve the stability of the system.
Smart Images

Figure CN118736470A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of machine vision, neural network models and parking service systems, and in particular to a method and system for automatic identification and re-identification of vehicles at an entrance and exit of a parking lot. Background Art
[0002] Vehicle recognition and identification technology is mainly used in parking management systems to record unique identification of vehicles, based on which a complete order record of the system is formed and parking service fees are accurately calculated. The specific existing technologies are as follows: mainly through image processing technology to locate the license plate and recognize the license plate through OCR technology to automatically calculate a vehicle unique identification; or on the basis of the aforementioned technology, combined with artificial neural network algorithms, the vehicle brand, model, model year, body color, etc. are identified and marked to further enhance the accuracy of the vehicle's unique identification; or through external third-party identification to uniquely identify unlicensed vehicles in the parking system, such as physical Bluetooth cards, IC cards, or third-party Internet platform unique identification strings in user mobile terminals, such as WeChat ID, Alipay ID, etc.
[0003] The above-mentioned existing technologies have limitations in identifying vehicles without formal license plates or in dealing with malicious obstruction of license plates of vehicles leaving the parking lot for taking photos. First of all, the identification of unlicensed vehicles requires the use of third-party physical cards or third-party platform identifiers, which may cause the same identifier to be reused multiple times, resulting in the system. If a physical card is used, the implementation cost is high and the management is more complicated. If a third-party platform WeChat, Alipay ID, etc. is used, the user must use a mobile device (mobile phone, tablet, etc.) to park and scan the code, which reduces the efficiency of entrance and exit traffic. In addition, the same third-party ID must be used to identify the entrance and exit to form consistent order information and billing, otherwise the billing and payment cannot be correctly made. Secondly, the technology of using a neural network algorithm model to identify the brand, model, model year, and body color requires regular updates to the identifiers (brand, model, etc.) in the model and retraining the model, which is cumbersome to maintain and manage. Therefore, it is necessary to propose a method and system for automatic identification and re-identification of vehicles at the entrance and exit of a parking lot to solve the above-mentioned problems. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for automatic identification and re-identification of vehicles at the entrance and exit of a parking lot in view of the defects and shortcomings of the prior art. This method and system does not need to rely on the automatic identification and re-identification system of vehicle features of a third-party platform ID or physical card, and can serve as an effective auxiliary to license plate recognition. At the same time, it can independently realize the automatic identification and re-identification release of unlicensed vehicles without the need for the driver to park or use a mobile device for interaction, which is convenient, fast and accurate. It can solve the problems raised by the above background technology.
[0005] To achieve the above-mentioned purpose, the present invention adopts the following technical solution: a method and system for automatic identification and re-identification of vehicles at the entrance and exit of a parking lot, which includes an image acquisition module 101, a feature calculation and identification module 102, a data storage module 103, a comparison calculation module 104, and a result update module 105.
[0006] The image acquisition module 101 is composed of a network resource request acquisition component and a BASE64 encoding conversion component. The image acquisition module 101 can automatically acquire image data (PIC) through the input resource address (URL) or Base64 encoding and transmit it to the special calculation and recognition module of the system. The input of the image acquisition module comes from the vehicle image captured by the license plate camera of the general parking operation system when the vehicle is automatically detected and captured. The image may be encoded into Base64 or stored by the parking operation system to form a resource access address (URL).
[0007] The feature calculation and identification module 102 is composed of a cloud-based computer with a GPU. The feature calculation and identification module 102 is mainly used to pre-process the image (PIC, PIC-0), and is responsible for using the GPU to call the Resnet neural network pre-training model to calculate the features of the image to obtain a feature array (FA, FA-0).
[0008] The data storage module 103 is a database system. The data storage module 103 stores the input parking lot ID, image shooting time (T), feature array (FA) and other presence feature records, and outputs the automatically generated unique ID (FID) of the stored record. The module also filters and searches for the presence feature records based on the parking lot ID and unique ID (FID).
[0009] A method for automatic identification and re-identification of vehicles at a parking lot entrance and exit, specifically comprising the following steps:
[0010] (1) Feature extraction of vehicles entering the parking lot: For a certain parking lot, the electronic photo data of a vehicle entering the parking lot is converted into a three-dimensional array representing the grayscale value of the RGB channel of each pixel in the image, and input into the pre-trained Resnet neural network pre-training model for feature extraction calculation to obtain a one-dimensional feature array with a dimension of 1*2048;
[0011] (2) Storage of vehicle entry records: The parking lot unique ID, identification time and feature array are stored as a record in the database system, referred to as the presence feature record;
[0012] (3) Exit feature extraction: For a certain parking lot, the electronic photo data of a vehicle exiting the parking lot is converted into a three-dimensional array representing the grayscale value of the RGB channel of each pixel in the image, and input into the pre-trained Resnet neural network pre-training model for feature calculation to obtain a one-dimensional feature array with a dimension of 1*2048, referred to as the exit vehicle feature array;
[0013] (4) Vehicle re-identification calculation: Find the presence feature records of all vehicles with the same ID as the exiting vehicle in the database system, calculate the cosine similarity between the feature arrays in these records and the feature arrays of the exiting vehicle one by one, and temporarily store and sort the similarity results in descending order. Take the first N presence feature records with the largest similarity values. The vehicle in the record may be the same as the exiting vehicle. This method considers that the entry vehicle of the feature record with the largest similarity is the same vehicle as the exiting vehicle (i.e., re-identification), and the entry time of the corresponding presence feature record is the entry time of the exiting vehicle.
[0014] (5) Update the presence feature record: After the parking lot exit result is confirmed, the presence feature record is updated and the corresponding vehicle presence feature record is deleted.
[0015] The working principle of the present invention: the image acquisition module 101 can automatically acquire the image data (PIC) through the input resource address (URL) or Base64 encoding and transmit it to the special calculation and recognition module of the system. The input of the image acquisition module comes from the vehicle picture automatically detected and captured by the license plate camera of the general parking operation system. The picture may be encoded as Base64 or stored to form a resource access address (URL) by the parking operation system; the feature calculation and identification module 102 is mainly used to pre-process the image (PIC, PIC-0), and is responsible for using the GPU to call the Resnet neural network pre-training model to calculate the features of the image and obtain the feature array (FA, FA-0); the data storage module 103 records the input parking lot ID, image shooting time (T), feature array (FA) and other on-site features. The module stores and outputs the unique ID (FID) of the automatically generated stored record. The module also filters and searches for the presence feature records according to the parking lot ID and the unique ID (FID). The comparison calculation module mainly compares a single exit feature record with the presence feature record of the same parking lot. It is responsible for calling the GPU computing unit to calculate the cosine similarity of the array and outputs the sorting result of the presence record in descending order (TN-D). The result update module 105 outputs the unique or top N entry feature record matching results according to the preset parameters, and issues an instruction to update the presence feature record according to the feedback of the vehicle exit result (DEL-FID).
[0016] After adopting the above technical solution, the beneficial effect of the present invention is as follows: the present invention can achieve that unlicensed vehicles do not need to park in the parking lot, and do not require users to scan the code with their mobile phones, and the traffic efficiency is higher. Most of the current existing technical processes use a third-party platform ID to identify unlicensed vehicles. When the parking operation system detects an unlicensed vehicle and captures an image, the operation system will prompt the user to use a third-party platform mobile application (WeChat, Alipay) to scan the code to bind the vehicle to the owner's platform identity. The user will lift the barrier to release it after scanning the code. This method and technology have the following disadvantages: the owner needs to park and use a mobile phone to scan the code, which is time-consuming and inefficient compared to the technical solution of this application; this method requires the use of the same ID application to scan the code in order to perform normal identification matching and billing. If different applications are used to scan the code in and out, the billing cannot be normal. The technical solution of the present invention can release the vehicle after receiving the image captured by the parking operation system for detecting unlicensed vehicles, so that the owner does not need to park and does not need to manually scan the code. The present invention does not rely on license plates to identify and identify vehicles, but relies on the overall front face of the vehicle and some lateral vehicle appearance features. Further matching of entry records is performed for licensed vehicles with license plate recognition errors, license plate obstruction, or fuzzy matching without records, which will prevent users from obstructing license plates to evade fees to a certain extent. Compared with the existing technology that uses license plate recognition and artificial neural network algorithms to identify and mark the brand, model, model year, body color, etc. of the vehicle, the present invention uses a fuzzy feature vector similarity comparison algorithm, which does not require marking brand, model and other data. Therefore, the pre-trained Resnet model does not need to be regularly updated according to market brand, model and other data, while the existing technical solutions require regular updates of the training model. Otherwise, when identifying the brand and model of the vehicle, the problem of new models on the market being unable to be correctly identified and marked will be encountered, resulting in the overall technical solution being unusable. Relatively speaking, the availability and stability of the present invention are higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 It is a flow chart of a method for identifying, marking, storing and comparing vehicle features provided by the present invention;
[0019] Figure 2 It is an application schematic diagram of a vehicle feature recognition and re-recognition system provided by the present invention.
[0020] Description of reference numerals: image acquisition module 101 , feature calculation and identification module 102 , data storage module 103 , comparison calculation module 104 , result updating module 105 . DETAILED DESCRIPTION
[0021] See also Figure 1-2 As shown, the technical solution adopted in this specific embodiment is: a method and system for automatic identification and re-identification of vehicles at the entrance and exit of a parking lot, which includes an image acquisition module 101, a feature calculation and identification module 102, a data storage module 103, a comparison calculation module 104, and a result update module 105. The image acquisition module 101 is composed of a network resource request acquisition component and a BASE64 encoding conversion component. The image acquisition module 101 can automatically obtain image data (PIC) through the input resource address (URL) or Base64 encoding and transmit it to the system's special calculation and identification module. The input of the image acquisition module comes from the vehicle image captured by the license plate camera of the general parking operation system that automatically detects the vehicle and captures the vehicle. The image may be encoded as Base64 or stored to form a resource access address (URL) by the parking operation system. The feature calculation and identification module 102 is composed of a computer with a GPU in the cloud. The feature calculation and identification module 102 is mainly used to pre-process the image (PIC, PIC-0), and is responsible for using the GPU to call the Resnet neural network pre-training model to perform feature calculation on the image to obtain a feature array (FA, FA-0). The data storage module 103 is a database system. The data storage module 103 stores the input parking lot ID, image shooting time (T), feature array (FA) and other presence feature records, and outputs the automatically generated unique ID (FID) of the stored record. The module also filters and searches for the presence feature records based on the parking lot ID and unique ID (FID).
[0022] A method for automatic identification and re-identification of vehicles at a parking lot entrance and exit, specifically comprising the following steps:
[0023] (1) Feature extraction of vehicles entering the parking lot: For a certain parking lot, the electronic photo data of a vehicle entering the parking lot is converted into a three-dimensional array representing the grayscale value of the RGB channel of each pixel in the image, and input into the pre-trained Resnet neural network pre-training model for feature extraction calculation to obtain a one-dimensional feature array with a dimension of 1*2048;
[0024] (2) Storage of vehicle entry records: The parking lot unique ID, identification time and feature array are stored as a record in the database system, referred to as the presence feature record;
[0025] (3) Exit feature extraction: For a certain parking lot, the electronic photo data of a vehicle exiting the parking lot is converted into a three-dimensional array representing the grayscale value of the RGB channel of each pixel in the image, and input into the pre-trained Resnet neural network pre-training model for feature calculation to obtain a one-dimensional feature array with a dimension of 1*2048, referred to as the exit vehicle feature array;
[0026] (4) Vehicle re-identification calculation: Find the presence feature records of all vehicles with the same ID as the exiting vehicle in the database system, calculate the cosine similarity between the feature arrays in these records and the feature arrays of the exiting vehicle one by one, and temporarily store and sort the similarity results in descending order. Take the first N presence feature records with the largest similarity values. The vehicle in the record may be the same as the exiting vehicle. This method considers that the entry vehicle of the feature record with the largest similarity is the same vehicle as the exiting vehicle (i.e., re-identification), and the entry time of the corresponding presence feature record is the entry time of the exiting vehicle.
[0027] (5) Update the presence feature record: After the parking lot exit result is confirmed, the presence feature record is updated and the corresponding vehicle presence feature record is deleted.
[0028] In this specific implementation, when the parking operation system generates a presence record with the license plate as the key identity information when the vehicle enters the parking lot, the vehicle image entering the parking lot is input into the module to obtain a feature record ID (FID) and added to the presence record. When the vehicle exits the parking lot, the vehicle whose license plate has been identified is matched with the entry record by the license plate text. If no record is matched, the exit image is input into the vehicle re-identification module to match the presence feature record, and the feature record ID (FID) is obtained by matching, and then input into the parking operation system to obtain a matching presence record, thereby obtaining information such as the parking time of the vehicle. Since the RANK1 re-identification accuracy of the pre-trained Resnet model of the technical solution of the present application cannot reach 100%, the actual application should use the application of RANK5 or RANK10 with higher accuracy, that is, input an image and let the vehicle re-identification module output the top five or ten feature records (FID) with the greatest similarity, and then prompt the user through the operation system to scan the code to pay and display the presence records corresponding to these features, prompting the user to select one of the records that matches his or her vehicle, and then perform parking fee calculation or other operation management processes.
[0029] The above description is only used to illustrate the technical solution of the present invention rather than to limit it. Other modifications or equivalent substitutions made to the technical solution of the present invention by ordinary technicians in this field should be included in the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solution of the present invention.
Claims
1. A method and system for automatic identification and re-identification of vehicles at parking lot entrances and exits, characterized in that: It comprises an image acquisition module (101), a feature calculation and identification module (102), a data storage module (103), a comparison calculation module (104), and a result update module (105).
2. A method and system for automatic identification and re-identification of vehicles at parking lot entrances and exits according to claim 1, characterized in that: The image acquisition module (101) is composed of a network resource request acquisition component and a BASE64 encoding conversion component.
3. A method and system for automatic identification and re-identification of vehicles at parking lot entrances and exits according to claim 1, characterized in that: The feature calculation and identification module (102) is composed of a cloud-based computer with a GPU.
4. A method and system for automatic identification and re-identification of vehicles at parking lot entrances and exits according to claim 1, characterized in that: The data storage module (103) is a database system.
5. The method for automatic identification and re-identification of vehicles at parking lot entrances and exits according to claim 1 specifically comprises the following steps: (1) Feature extraction of vehicles entering the parking lot: For a certain parking lot, the electronic photo data of a vehicle entering the parking lot is converted into a three-dimensional array representing the grayscale value of the RGB channel of each pixel in the image, and input into the pre-trained Resnet neural network pre-training model for feature extraction calculation to obtain a one-dimensional feature array with a dimension of 1*2048; (2) Storage of vehicle entry records: The parking lot unique ID, identification time and feature array are stored as a record in the database system, referred to as the presence feature record; (3) Exit feature extraction: For a certain parking lot, the electronic photo data of a vehicle exiting the parking lot is converted into a three-dimensional array representing the grayscale value of the RGB channel of each pixel in the image, and input into the pre-trained Resnet neural network pre-training model for feature calculation to obtain a one-dimensional feature array with a dimension of 1*2048, referred to as the exit vehicle feature array; (4) Vehicle re-identification calculation: Find the presence feature records of all vehicles with the same ID as the exiting vehicle in the database system, calculate the cosine similarity between the feature arrays in these records and the feature arrays of the exiting vehicle one by one, and temporarily store and sort the similarity results in descending order. Take the first N presence feature records with the largest similarity values. The vehicle in the record may be the same as the exiting vehicle. This method considers that the entry vehicle of the feature record with the largest similarity is the same vehicle as the exiting vehicle (i.e., re-identification), and the entry time of the corresponding presence feature record is the entry time of the exiting vehicle. (5) Update the presence feature record: After the parking lot exit result is confirmed, the presence feature record is updated and the corresponding vehicle presence feature record is deleted.
Citation Information
Patent Citations
Matlab algorithm of automobile license plate identification
CN104834932A
Training modeling method, vehicle charging method, management system and storage medium
CN110598758A
Vehicle re-identification method and system based on unsupervised domain adaptation
CN114550110A
HV-LBP-based convolutional neural network vehicle identification method and device
CN115631471A
Network model determination method, image detection method, device, equipment and medium
CN116778279A
