Vehicle detection method, device and system based on binocular vision

By setting up a binocular vision detection system next to the parking space, using radar and camera modules to obtain vehicle information, and conducting feature fusion analysis, it solves the problem of difficulty in obtaining information when the vehicle parking position is not correct, and achieves the effectiveness and efficiency of vehicle management. accuracy.

CN118072529BActive Publication Date: 2024-10-22SHENZHEN QIANHAI RHENIUM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410484692.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2024-10-22
Estimated Expiration
2044-04-22

AI Technical Summary

Technical Problem

In the existing technology, when the vehicle parking position is incorrect, vehicle information cannot be effectively obtained, resulting in vehicle management failure.

Method used

Using a vehicle detection system based on binocular vision, a detection unit is set up at the side junction of two adjacent parking spaces, and the radar module and camera module are used to detect vehicle parking in the parking space and obtain the front and rear end information of the vehicle. , and transmits wireless data to external terminals or cloud platforms for feature fusion analysis and processing to obtain vehicle detection information.

Benefits of technology

It solves the problem of being unable to obtain vehicle information when the vehicle parking position is incorrect, realizes effective acquisition and management of vehicle information, and improves the accuracy and efficiency of vehicle management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118072529B_ABST
    Figure CN118072529B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of vehicle management, and discloses a vehicle detection method, device and system based on binocular vision. The present invention sets a vehicle detection system based on binocular vision at the lateral boundary position of two adjacent parking spaces, uses a detection unit to detect vehicles in the parking spaces, and when a vehicle is detected to be parked, uses the detection unit to acquire vehicle information of the vehicle, and fuses and analyzes the information acquired by the two detection units to obtain vehicle detection information of the parked vehicle, thereby solving the problem in the prior art that when the vehicle is not parked correctly, the vehicle information cannot be effectively acquired.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle management, and in particular to a vehicle detection method, device and system based on binocular vision. Background Art

[0002] With the development of society, more and more vehicles begin to appear. These vehicles need to be parked in parking spaces. In order to ensure the management of vehicles, the vehicle information of the parked vehicles in each parking space needs to be registered.

[0003] Currently, vehicle information can be acquired through a pre-set camera device, but once the vehicle is parked in an incorrect position, it will be difficult to acquire the vehicle information, resulting in failure of vehicle management. Summary of the invention

[0004] The purpose of the present invention is to provide a vehicle detection method, device and system based on binocular vision, aiming to solve the problem in the prior art that vehicle information cannot be effectively obtained when the vehicle is parked in an incorrect position.

[0005] The present invention is implemented as follows. In a first aspect, the present invention provides a vehicle detection method based on binocular vision, using a vehicle detection system based on binocular vision, the system comprising a mounting structure and two detection units, the mounting structure being arranged at a side boundary position of two adjacent parking spaces, the two detection units being arranged at two ends of the mounting structure, the two detection units being respectively located at a side position of one of the parking spaces, the two detection units respectively performing vehicle detection on vehicles parked in adjacent parking spaces, comprising:

[0006] Performing vehicle parking detection on the adjacent parking spaces by the detection unit to determine whether there are parked vehicles in the adjacent parking spaces;

[0007] When it is determined that there is a parked vehicle in the parking space, data collection is performed on the front and rear ends of the parked vehicle in the parking space by using the two detection units corresponding to the parking space to obtain front parking information and rear parking information of the parked vehicle;

[0008] The front-end parking information and the rear-end parking information of the parked vehicle are transmitted to an external terminal, a server or a cloud platform via wireless data, and feature fusion analysis and processing are performed on the front-end parking information and the rear-end parking information to obtain vehicle detection information of the parked vehicle.

[0009] Preferably, the detection unit includes a radar module and a camera module;

[0010] The radar module is used to perform vehicle parking detection on the parking space to determine whether there is a parked vehicle in the parking space;

[0011] The camera module is used to collect data from both the front and rear ends of the parked vehicles in the adjacent parking spaces to obtain front-end parking information and rear-end parking information of the parked vehicles.

[0012] Preferably, the steps of transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, a server or a cloud platform through wireless data, and performing feature fusion analysis processing on the front-end parking information and the rear-end parking information to obtain the vehicle detection information of the parked vehicle include:

[0013] Transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, a server or a cloud platform via wireless data;

[0014] Extracting key features of the license plate from the front parking information and the rear parking information of the parked vehicle to obtain the key features of the front license plate and the rear license plate of the parked vehicle;

[0015] Performing feature fusion analysis on the key features of the front-end license plate and the rear-end license plate of the parked vehicle to obtain the license plate detection information of the parked vehicle;

[0016] Extracting and processing the key features of the parking position of the front parking information and the rear parking information of the parked vehicle, obtaining the key features of the front parking position and the rear parking position of the parked vehicle, and performing fusion analysis and processing to obtain the parking position information of the parked vehicle;

[0017] The license plate detection information is combined with the parking position information to obtain the vehicle detection information.

[0018] Preferably, the steps of extracting key features of the license plate from the front parking information and the rear parking information of the parked vehicle to obtain the key features of the front license plate and the rear license plate of the parked vehicle include:

[0019] The front-end parking information and the rear-end parking information are respectively subjected to license plate key feature extraction processing by a pre-trained license plate recognition AI model to obtain the front-end license plate key features and the rear-end license plate key features of the parked vehicle;

[0020] The steps of pre-training the license plate recognition AI model include:

[0021] Construct input layer, convolution layer and three fully connected layers;

[0022] Collecting a plurality of training combinations, each of which includes a license plate image and a corresponding license plate number, and substituting each of the training combinations into the input layer;

[0023] The input layer receives the collected training combinations and transmits the training combinations to the convolution layer, and the convolution layer is used to collect features of the training combinations to obtain image features of the license plate images corresponding to the license plate numbers in the training combinations;

[0024] The three fully connected layers are used to perform continuous vector flattening processing on the image features of the license plate images corresponding to the license plate numbers extracted by the convolutional layer, so as to flatten the image features of the license plate images corresponding to the license plate numbers into one-dimensional vector features; the one-dimensional vector features are used to perform basic graphical expression on the image features of the license plate images corresponding to the license plate numbers.

[0025] Preferably, the step of performing feature fusion analysis on the key features of the front-end license plate and the rear-end license plate of the parked vehicle to obtain the license plate detection information of the parked vehicle includes:

[0026] Performing a first round of license plate number restoration processing on the parked vehicle according to the front-end license plate key features to obtain a first license plate number recognition sequence of the parked vehicle; wherein the first license plate number recognition sequence includes a plurality of number recognition bits arranged in sequence, each of the number recognition bits has a plurality of recognition results, and each of the recognition results has a corresponding probability weight;

[0027] Performing a second round of license plate number restoration processing on the parked vehicle according to the rear-end license plate key features to obtain a second license plate number recognition sequence of the parked vehicle; wherein the second license plate number recognition sequence includes a plurality of number recognition bits arranged in sequence, each of the number recognition bits has a plurality of recognition results, and each of the recognition results has a corresponding probability weight;

[0028] According to each of the number recognition bits of the first license plate number recognition sequence and the second license plate number recognition sequence, data determination processing of the number recognition bits is performed respectively to obtain determination and recognition results of each of the number recognition bits, and the determination and recognition results of each of the number recognition bits are arranged in sequence to obtain the license plate detection information of the parked vehicle;

[0029] The steps of performing data determination processing on the number identification bits according to the first license plate number identification sequence and the second license plate number identification sequence to obtain the determination results of the number identification bits include:

[0030] An integrated analysis is performed based on each of the recognition results of the number recognition digit and the possibility weights corresponding to each of the recognition results to obtain the recognition result with the highest possibility weight, and the recognition result with the highest possibility weight is used as the definite recognition result of the number recognition digit.

[0031] Preferably, the steps of extracting key features of the parking position of the front parking information and the rear parking information of the parked vehicle, obtaining the key features of the front parking position and the rear parking position of the parked vehicle, performing feature fusion analysis, and obtaining the parking position information of the parked vehicle include:

[0032] Collecting data of the parking space shape in advance, and constructing a 3D coordinate system model of the parking space according to the parking space shape of the parking space;

[0033] Setting a plurality of positioning identification points based on the parking space 3D coordinate system model;

[0034] Recognize the key nodes of the vehicle frame for the front parking information and the rear parking information of the parked vehicle, respectively, to obtain the key nodes of the vehicle frame of the parked vehicle at the front parking information and the rear parking information; wherein the key nodes of the vehicle frame are important identification points of the appearance of the parked vehicle;

[0035] Generating first position parameters of each of the key nodes of the vehicle frame according to the relative position relationship between each of the key nodes of the vehicle frame of the parked vehicle;

[0036] Generating second position parameters of each of the key nodes of the vehicle frame according to the relative position relationship between each of the key nodes of the vehicle frame of the parked vehicle and each of the positioning identification points;

[0037] Performing position mapping processing according to the first position parameter and the second position parameter of each key node of the vehicle frame, so as to reproduce and connect each key node of the vehicle frame in the parking space 3D coordinate system model, and obtain the vehicle frame 3D model of the parked vehicle;

[0038] The relative position relationship between the vehicle frame 3D model and the parking space 3D coordinate system model is analyzed and processed to obtain the parking position information of the parked vehicle.

[0039] Preferably, the step of performing position mapping processing according to the first position parameter and the second position parameter of each of the key nodes of the vehicle frame to reproduce and connect each of the key nodes of the vehicle frame in the parking space 3D coordinate system model to obtain the vehicle frame 3D model of the parked vehicle includes:

[0040] Performing preliminary position mapping processing according to the second position parameters of each of the key nodes of the vehicle framework to obtain a preliminary position range of each of the key nodes of the vehicle framework;

[0041] Performing position mapping processing in a preliminary position range of each of the vehicle frame key nodes according to the first position parameters of each of the vehicle frame key nodes to determine the specific position of each of the vehicle frame key nodes;

[0042] The key nodes of the vehicle frame are reproduced and connected in the parking space 3D coordinate system model according to their specific positions, so as to obtain a 3D model of the vehicle frame of the parked vehicle.

[0043] In a second aspect, the present invention provides a vehicle detection device based on binocular vision, which is used to implement a vehicle detection method based on binocular vision as described in any one of the first aspects, wherein the method adopts a vehicle detection system based on binocular vision, the system comprising a mounting structure and two detection units, the mounting structure being arranged at a side boundary position of two adjacent parking spaces, the two detection units being arranged at two ends of the mounting structure, the two detection units being respectively located at a side position of one of the parking spaces, the two detection units respectively performing vehicle detection on vehicles parked in adjacent parking spaces, comprising:

[0044] A preliminary detection module, configured to perform a vehicle parking detection on the adjacent parking spaces through the detection unit to determine whether there are parked vehicles in the adjacent parking spaces;

[0045] A specific detection module is used for, when it is determined that there is a parked vehicle in the parking space, collecting data from both ends of the parked vehicle in the parking space through the two detection units corresponding to the parking space, so as to obtain front parking information and rear parking information of the parked vehicle;

[0046] The detection and analysis module is used to transmit the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, server or cloud platform via wireless data, and perform feature fusion analysis on the front-end parking information and the rear-end parking information to obtain the vehicle detection information of the parked vehicle.

[0047] In the third aspect, the present invention provides a vehicle detection system based on binocular vision, which is used to implement a vehicle detection method based on binocular vision as described in any one of the first aspects, comprising: an installation structure, two detection units and a detection module, wherein the installation structure is arranged at a lateral junction position of two adjacent parking spaces, the two detection units are respectively arranged at two ends of the installation structure, the two detection units are respectively located at a lateral position of one of the parking spaces, the two detection units respectively perform vehicle detection on vehicles parked in adjacent parking spaces, and the detection module is connected to the detection unit for communication via wireless data, so as to implement a vehicle detection method based on binocular vision as described in any one of the first aspects.

[0048] Preferably, the detection unit includes a radar module and a camera module.

[0049] The present invention provides a vehicle detection method based on binocular vision, which has the following beneficial effects:

[0050] The present invention sets a vehicle detection system based on binocular vision at the lateral intersection of two adjacent parking spaces, uses a detection unit to detect vehicles in the parking spaces, and when a vehicle is detected to be parked, uses the detection unit to acquire vehicle information of the vehicle, and fuses and analyzes the information acquired by the two detection units to obtain vehicle detection information of the parked vehicle, thereby solving the problem in the prior art that vehicle information cannot be effectively acquired when the vehicle is not parked in the correct position. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 1 is a schematic diagram of the steps of a vehicle detection method based on binocular vision provided by an embodiment of the present invention;

[0052] Figure 2 is a structural schematic diagram of a vehicle detection device based on binocular vision provided by an embodiment of the present invention;

[0053] Figure 3 It is a schematic diagram of the locations of the detection unit and the parking space. DETAILED DESCRIPTION

[0054] 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.

[0055] The implementation of the present invention is described in detail below in conjunction with specific embodiments.

[0056] Reference Figure 1 , Figure 2 , Figure 3 As shown, a preferred embodiment of the present invention is provided.

[0057] In a first aspect, the present invention provides a vehicle detection method based on binocular vision, using a vehicle detection system based on binocular vision, the system comprising a mounting structure and two detection units, the mounting structure being arranged at a side boundary position of two adjacent parking spaces, the two detection units being arranged at two ends of the mounting structure, the two detection units being respectively located at a side position of one of the parking spaces, the two detection units respectively performing vehicle detection on vehicles parked in adjacent parking spaces, comprising:

[0058] S1: performing a vehicle parking detection on the adjacent parking space by the detection unit to determine whether there is a parked vehicle in the adjacent parking space;

[0059] S2: when it is determined that there is a parked vehicle in the parking space, data collection is performed on the front and rear ends of the parked vehicle in the parking space by using the two detection units corresponding to the parking space to obtain front parking information and rear parking information of the parked vehicle;

[0060] S3: Transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, server or cloud platform via wireless data, and performing feature fusion analysis on the front-end parking information and the rear-end parking information to obtain vehicle detection information of the parked vehicle.

[0061] Specifically, the vehicle detection method of the present invention is implemented based on a vehicle detection system based on binocular vision, and the system includes a mounting structure and two detection units.

[0062] More specifically, the appearance of the mounting structure is a long strip, so that it can be installed at the side junction of two adjacent parking spaces, and the two detection units are respectively arranged at both ends of the mounting structure. It is not difficult to see that when the mounting structure is set at the side junction of two adjacent parking spaces, the two detection units will be located next to one parking space respectively.

[0063] It can be understood that when a vehicle is parked in a parking space, the detection unit installed on the mounting structure at the side of the parking space will be able to detect the vehicle. Generally speaking, this detection is performed by the detection unit located at the side of the adjacent parking space, because the detection unit of the mounting structure at the side of the parking space located at the side of another parking space is at a farther distance from the parked vehicle in the parking space, thereby having a wider field of vision and being able to obtain as much license plate information and other information of the parked vehicle as possible.

[0064] It should be noted that a parking space will be adjacent to a parking space in front and behind. Therefore, a vehicle detection system based on binocular vision will be set up at the side junction of a parking space and two adjacent parking spaces. The detection unit at the side position of the front adjacent parking space will detect the front-end information of the parked vehicle in the parking space, and the detection unit at the side position of the rear adjacent parking space will detect the rear-end information of the parked vehicle in the parking space.

[0065] Specifically, in step S1 of the embodiment provided by the present invention, a detection unit performs a vehicle parking detection on an adjacent parking space to determine whether there is a parked vehicle in the adjacent parking space.

[0066] It should be noted that a radar module is provided in the detection unit for performing vehicle parking detection on adjacent parking spaces to determine whether there are parked vehicles in the adjacent parking spaces.

[0067] Specifically, in step S2 of the embodiment provided by the present invention, when it is determined that there is a parked vehicle in the parking space, data from the front and rear ends of the parked vehicle in the parking space are collected through two detection units corresponding to the parking space to obtain the front parking information and rear parking information of the parked vehicle.

[0068] It should be noted that a camera module is provided in the detection unit, and the camera module is used to collect data from the front and rear ends of the parked vehicle in the parking space to obtain the front parking information and the rear parking information of the parked vehicle.

[0069] It should be noted that a parking space may have two adjacent parking spaces, which are adjacent to the front and rear ends of the parking space respectively. A detection unit will be set at the adjacent positions of the front and rear sections. When it is determined that there is a parked vehicle in the parking space, the two detection units corresponding to the parking space will collect data from the front and rear ends of the parked vehicle in the parking space. The two detection units here belong to two detection systems.

[0070] Specifically, in step S3 of the embodiment provided by the present invention, the front-end parking information and the rear-end parking information of the parked vehicle are transmitted and summarized through wireless data, and the summarized front-end parking information and the rear-end parking information of the parked vehicle are feature fusion analyzed and processed to obtain vehicle detection information of the parked vehicle.

[0071] More specifically, the camera module of the detection unit will collect image information of the front and rear ends of the parked vehicle respectively, and transmit the collected image information together via wireless data for aggregation, and further perform feature extraction and feature fusion on the aggregated image information to obtain vehicle detection information of the parked vehicle.

[0072] More specifically, the vehicle information on a parking space is obtained by two different detection units, see Figure 3 The information of the front and rear ends of the vehicle in parking space B is acquired by radar module 2, camera module 1 and radar module 3, camera module 4 respectively, while radar module 1 and camera module 2 are used to acquire the information of parking space A, and radar module 4 and camera module 3 are used to acquire the information of parking space C. The same detection unit will be installed at the other end of parking space A and parking space C to detect vehicle information of parking space A, parking space C and adjacent parking spaces.

[0073] The present invention provides a vehicle detection method based on binocular vision, which has the following beneficial effects:

[0074] The present invention sets a vehicle detection system based on binocular vision at the lateral intersection of two adjacent parking spaces, uses a detection unit to detect vehicles in the parking spaces, and when a vehicle is detected to be parked, uses the detection unit to acquire vehicle information of the vehicle, and fuses and analyzes the information acquired by the two detection units to obtain vehicle detection information of the parked vehicle, thereby solving the problem in the prior art that vehicle information cannot be effectively acquired when the vehicle is not parked in the correct position.

[0075] Preferably, the detection unit includes a radar module and a camera module; the radar module is used to perform vehicle parking detection on the parking space to determine whether there is a parked vehicle in the parking space; the camera module is used to collect data from the front and rear ends of the parked vehicles in the adjacent parking spaces to obtain the front-end parking information and the rear-end parking information of the parked vehicles.

[0076] Specifically, the radar module transmits microwave signals and receives reflected signals, analyzes the time delay and intensity change of the return signal, and determines whether the adjacent parking space is occupied by a vehicle. After confirming that there is a vehicle parked in the parking space, the camera module collects image or video data from the front and rear ends of the vehicle respectively. The high-resolution camera can capture detailed features of the vehicle, such as license plate number, vehicle color and model, etc.

[0077] More specifically, the collected radar data and image data are sent to the central processing unit via a wireless network, using encryption and security protocols to ensure the security of data transmission.

[0078] It is understandable that the radar module first determines whether there is a parked vehicle, and then the camera module collects the image. This can avoid the phenomenon of the camera module missing a shot, and can also avoid the problem of the camera module working continuously.

[0079] It should be noted that the detection unit has a radar module and a camera module, and the radar module and camera module of the same detection unit are respectively facing different parking spaces.

[0080] See also Figure 3 , Figure 3 It is a schematic diagram of the orientation of the detection unit and the parking space. The radar module 1 adjacent to parking space A detects the vehicle in parking space A. This is because the radar module 1 is close to parking space A, and using radar module 1 to detect the vehicle in parking space A is more sensitive and accurate. The camera module 1 adjacent to parking space A collects images of parking space B. This is because there is a certain distance between the camera module 1 and parking space B, and the image of the front end of the vehicle parked in parking space B can be captured.

[0081] More specifically, the vehicle information on a parking space is obtained by two different detection units, see Figure 3 The information of the front and rear ends of the vehicle in parking space B is acquired by radar module 2, camera module 1 and radar module 3, camera module 4 respectively, while radar module 1 and camera module 2 are used to acquire the information of parking space A, and radar module 4 and camera module 3 are used to acquire the information of parking space C. The same detection unit will be installed at the other end of parking space A and parking space C to detect vehicle information of parking space A, parking space C and adjacent parking spaces.

[0082] The reason for this staggered radar and camera approach is that the closer the radar is to the vehicle, the easier it is to detect the vehicle in order to increase the vehicle capture rate, while the camera needs to be at a certain distance and angle to better capture the license plate in front or behind the vehicle in order to improve the recognition accuracy of the license plate number.

[0083] Preferably, the steps of transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, a server or a cloud platform through wireless data, and performing feature fusion analysis processing on the front-end parking information and the rear-end parking information to obtain the vehicle detection information of the parked vehicle include:

[0084] S31: Transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, a server or a cloud platform via wireless data;

[0085] S32: extracting key features of the license plate from the front parking information and the rear parking information of the parked vehicle to obtain the key features of the front license plate and the rear license plate of the parked vehicle;

[0086] S33: performing feature fusion analysis on the key features of the front-end license plate and the rear-end license plate of the parked vehicle to obtain the license plate detection information of the parked vehicle;

[0087] S34: extracting key features of the parking position of the front parking information and the rear parking information of the parked vehicle, obtaining key features of the front parking position and the rear parking position of the parked vehicle, and performing fusion analysis to obtain the parking position information of the parked vehicle;

[0088] S35: The license plate detection information is combined with the parking position information to obtain the vehicle detection information.

[0089] Specifically, the front-end docking information and the rear-end docking information of the parked vehicle are transmitted to an external terminal, server or cloud platform via wireless data for subsequent processing. It should be noted that the front-end docking information and the rear-end docking information are both image information captured by the camera module of the detection unit.

[0090] More specifically, the key features of the license plates are extracted from the front and rear parking information of the parked vehicle to obtain the key features of the front and rear license plates of the parked vehicle. It can be understood that this step is the extraction of image features.

[0091] More specifically, the key features of the front-end license plate and the key features of the rear-end license plate of the parked vehicle are subjected to feature fusion analysis and processing to obtain the license plate detection information of the parked vehicle, and the license plate detection information is used to feedback the license plate number of the parked vehicle.

[0092] It should be noted that when a vehicle is parked in a parking space, the parking posture may not be correct and the vehicle may be too close to an adjacent parking space. In this case, the detection unit on the side of the adjacent parking space cannot obtain the license plate information. In this case, the detection unit on the side of another adjacent parking space can be used to obtain the license plate information. This method can avoid the problem of being unable to obtain the license plate information.

[0093] More specifically, the key features of the parking position are extracted and processed for the front-end parking information and the rear-end parking information of the parked vehicle, and the key features of the front-end parking position and the rear-end parking position of the parked vehicle are obtained, and feature fusion analysis is performed to obtain the parking position information of the parked vehicle; it can be understood that this step is the extraction of image features, and the parking position information is used to feedback the parking posture of the vehicle in the parking space.

[0094] More specifically, the license plate detection information is combined with the parking position information to obtain the vehicle detection information.

[0095] Preferably, the steps of extracting key features of the license plate from the front parking information and the rear parking information of the parked vehicle to obtain the key features of the front license plate and the rear license plate of the parked vehicle include:

[0096] The front-end parking information and the rear-end parking information are respectively subjected to license plate key feature extraction processing by a pre-trained license plate recognition AI model to obtain the front-end license plate key features and the rear-end license plate key features of the parked vehicle;

[0097] The steps of pre-training the license plate recognition AI model include:

[0098] S321: Construct input layer, convolution layer and three fully connected layers;

[0099] S322: Collect several sets of training combinations, each of which includes a license plate image and a corresponding license plate number, and substitute each set of the training combinations into the input layer;

[0100] S323: The input layer receives each group of the training combinations collected, and transmits each group of the training combinations to the convolution layer, and the convolution layer is used to collect features of each group of the training combinations to obtain image features of the license plate images corresponding to the license plate numbers in each group of the training combinations;

[0101] S324: The three fully connected layers are used to perform continuous vector flattening processing on the image features of the license plate images corresponding to the license plate numbers extracted by the convolutional layers, so as to flatten the image features of the license plate images corresponding to the license plate numbers into one-dimensional vector features; the one-dimensional vector features are used to perform basic graphical expression on the image features of the license plate images corresponding to the license plate numbers.

[0102] Specifically, a neural network structure is designed that includes an input layer, a convolutional layer, and three fully connected layers. The input layer receives image data, the convolutional layer is responsible for extracting image features, and the fully connected layer is used to convert these features into one-dimensional feature vectors and perform the final classification.

[0103] More specifically, a large number of license plate images and corresponding license plate numbers are collected as training data to ensure that the dataset is diverse, including different license plate types, lighting conditions, and shooting angles, to improve the generalization ability of the model.

[0104] More specifically, the collected license plate images are preprocessed, including resizing, standardization (normalizing pixel values), and data augmentation (e.g., increasing sample diversity by rotation, scaling, shearing, etc.).

[0105] More specifically, the preprocessed image and label are input into the neural network, the convolution layer automatically extracts useful features from the image, and maps these features to the license plate number through the fully connected layer.

[0106] More specifically, a gradient descent algorithm (such as Adam or SGD) and backpropagation are used to adjust the network weights to minimize the difference between the predicted value and the actual license plate number.

[0107] More specifically, the model performance is tested on an independent validation set to assess its generalization ability, and the model is fine-tuned and optimized until a satisfactory accuracy is achieved.

[0108] More specifically, the trained model is deployed into an actual license plate recognition system for real-time recognition of license plates of parked vehicles at the front and back ends.

[0109] It is understandable that the convolutional layer can automatically extract important features from the image, reducing the complexity and professional threshold of manual feature engineering. The deep learning model can recognize and learn complex patterns in license plate images and provide high-accuracy license plate recognition. Once the model is trained, the recognition process is very fast and suitable for real-time or near real-time application scenarios.

[0110] More specifically, a large number of diverse data sets were used in the training process, which improved the model's generalization ability for different license plate types and environmental conditions. The entire license plate recognition process was automated, reducing errors and time consumption in manual input. The model can be retrained and fine-tuned based on new data to cope with changes in license plate design or updates to the recognition algorithm. Through vector flattening and classification processing of the fully connected layer, the model can effectively distinguish similar license plate numbers and reduce the misrecognition rate. The trained model can be easily integrated into existing vehicle management systems and work in conjunction with other systems (such as parking metering, access control, etc.).

[0111] Preferably, the step of performing feature fusion analysis on the key features of the front-end license plate and the rear-end license plate of the parked vehicle to obtain the license plate detection information of the parked vehicle includes:

[0112] S331: Performing a first round of license plate number restoration processing on the parked vehicle according to the front-end license plate key features to obtain a first license plate number recognition sequence of the parked vehicle; wherein the first license plate number recognition sequence includes a plurality of number recognition bits arranged in sequence, each of the number recognition bits has a plurality of recognition results, and each of the recognition results has a corresponding probability weight;

[0113] S332: Performing a second round of license plate number restoration processing on the parked vehicle according to the rear-end license plate key features to obtain a second license plate number recognition sequence of the parked vehicle; wherein the second license plate number recognition sequence includes a plurality of number recognition bits arranged in sequence, each of the number recognition bits has a plurality of recognition results, and each of the recognition results has a corresponding probability weight;

[0114] S333: performing data determination processing on the number recognition bits according to the first recognition sequence of the license plate number and the second recognition sequence of the license plate number, respectively, obtaining the determination and recognition results of the number recognition bits, arranging the determination and recognition results of the number recognition bits in sequence, and obtaining the license plate detection information of the parked vehicle;

[0115] The steps of performing data determination processing on the number identification bits according to the first license plate number identification sequence and the second license plate number identification sequence to obtain the determination results of the number identification bits include:

[0116] An integrated analysis is performed based on each of the recognition results of the number recognition digit and the possibility weights corresponding to each of the recognition results to obtain the recognition result with the highest possibility weight, and the recognition result with the highest possibility weight is used as the definite recognition result of the number recognition digit.

[0117] It can be understood that a license plate is composed of a number of sequentially arranged data corresponding to each number identification digit.

[0118] It should be noted that when a parked vehicle is parked in a parking space, there are several situations: being too close to an adjacent parking space on one side makes it difficult to recognize the license plate on this end; the vehicle is parked crookedly, causing the acquired license plate image to be crooked, etc.; in response to different situations, the method provided by the present invention is to collect images from the front and rear ends respectively, extract features from the collected images, and perform integrated analysis to ultimately determine the actual license plate number.

[0119] Specifically, a first round of license plate number restoration processing is performed on the parked vehicle according to the key features of the front-end license plate to obtain a first recognition sequence of the license plate number of the parked vehicle; wherein the first recognition sequence of the license plate number includes a number of number recognition bits arranged in sequence, each number recognition bit has a number of recognition results, and each recognition result has a corresponding possibility weight.

[0120] More specifically, a second round of license plate number restoration processing is performed on the parked vehicle based on the back-end license plate key features to obtain a second recognition sequence of the license plate number of the parked vehicle; wherein the second recognition sequence of the license plate number includes a number of number recognition bits arranged in sequence, each number recognition bit has a number of recognition results, and each recognition result has a corresponding possibility weight.

[0121] More specifically, data determination processing is performed on each number recognition bit of the first license plate number recognition sequence and the second license plate number recognition sequence, and the determined recognition results of each number recognition bit are obtained. The determined recognition results of each number recognition bit are arranged in sequence to obtain the license plate detection information of the parked vehicle.

[0122] The steps of performing data determination processing on the number recognition bits according to the first license plate number recognition sequence and the second license plate number recognition sequence to obtain the determination results of the number recognition bits include:

[0123] An integrated analysis is performed based on the various recognition results of the number recognition digit and the possibility weights corresponding to each recognition result to obtain the recognition result with the highest possibility weight, and the recognition result with the highest possibility weight is used as the definite recognition result of the number recognition digit.

[0124] It can be understood that by performing a possible comparative analysis of the dual-end recognition results to obtain a definite recognition result, the recognition accuracy can be guaranteed to the greatest extent, and the license plate information can be obtained even when the vehicle is parked in an improper position.

[0125] Preferably, the steps of extracting key features of the parking position of the front parking information and the rear parking information of the parked vehicle, obtaining the key features of the front parking position and the rear parking position of the parked vehicle, performing feature fusion analysis, and obtaining the parking position information of the parked vehicle include:

[0126] S341: collecting data of the parking space shape in advance, and constructing a parking space 3D coordinate system model according to the parking space shape of the parking space;

[0127] S342: Setting a plurality of positioning identification points based on the parking space 3D coordinate system model;

[0128] S343: performing vehicle framework key node identification processing on the front end parking information and the rear end parking information of the parked vehicle respectively, so as to obtain the vehicle framework key nodes of the parked vehicle at the front end parking information and the rear end parking information; wherein the vehicle framework key nodes are important identification points of the appearance of the parked vehicle;

[0129] S344: generating first position parameters of each of the key nodes of the vehicle frame according to the relative position relationship between each of the key nodes of the vehicle frame of the parked vehicle;

[0130] S345: generating second position parameters of each of the key nodes of the vehicle framework according to the relative position relationship between each of the key nodes of the vehicle framework of the parked vehicle and each of the positioning identification points;

[0131] S346: performing position mapping processing according to the first position parameter and the second position parameter of each key node of the vehicle frame, so as to reproduce and connect each key node of the vehicle frame in the parking space 3D coordinate system model, and obtain a vehicle frame 3D model of the parked vehicle;

[0132] S347: Analyze and process the relative position relationship between the vehicle frame 3D model and the parking space 3D coordinate system model to obtain parking position information of the parked vehicle.

[0133] Specifically, accurate data collection is performed on the parking space to obtain the shape and dimensions of the parking space, and based on these data, a 3D coordinate system model of the parking space is constructed.

[0134] More specifically, a plurality of positioning identification points are set in the parking space 3D coordinate system model, and these points will be used for subsequent vehicle positioning. It can be understood that the positioning identification points are points with identification features in the parking space, for example, the corner positions of the parking space.

[0135] More specifically, image recognition or other sensing technologies are used to identify the front and rear end information of a parked vehicle, determine the important identification points of the vehicle's appearance, namely, the key nodes of the vehicle frame, analyze the relative position relationship between the key nodes of the vehicle frame, generate the first position parameter of each node, analyze the relative position relationship between the key nodes of the vehicle frame and the positioning identification points, and generate the second position parameter of each node.

[0136] More specifically, through the mapping of the first and second position parameters, each vehicle frame key node is reproduced and connected in the parking space 3D coordinate system model, and the reproduced vehicle frame key nodes are connected to obtain a vehicle frame 3D model of the parked vehicle.

[0137] More specifically, the vehicle frame 3D model is compared and analyzed with the parking space 3D coordinate system model to obtain the precise parking position information of the vehicle.

[0138] It can be understood that through the creation of a 3D model and spatial analysis, the parking position of each vehicle can be accurately determined. The system can provide real-time feedback to drivers about the parking position of their vehicles. It is particularly useful for large parking lots. Over time, data about vehicle parking patterns can be collected for further analysis and optimization of the parking lot layout.

[0139] Preferably, the step of performing position mapping processing according to the first position parameter and the second position parameter of each of the key nodes of the vehicle frame to reproduce and connect each of the key nodes of the vehicle frame in the parking space 3D coordinate system model to obtain the vehicle frame 3D model of the parked vehicle includes:

[0140] S3461: performing preliminary position mapping processing according to the second position parameters of each of the key nodes of the vehicle framework to obtain a preliminary position range of each of the key nodes of the vehicle framework;

[0141] S3462: performing position mapping processing in a preliminary position range of each of the key nodes of the vehicle framework according to the first position parameters of each of the key nodes of the vehicle framework to determine the specific position of each of the key nodes of the vehicle framework;

[0142] S3463: Reproducing and connecting each key node of the vehicle frame in the parking space 3D coordinate system model according to the specific position of each key node of the vehicle frame to obtain the vehicle frame 3D model of the parked vehicle.

[0143] Specifically, the second position parameters of the key nodes of the vehicle frame (ie, the relative positions to the known positioning identification points) are used to determine the preliminary position range of each key node.

[0144] It should be noted that the relative position relationship between the key nodes of the vehicle frame and each positioning identification point can be used to determine the approximate distance range between the key nodes of the vehicle frame and each positioning identification point. By overlapping each range and selecting the overlapping part, the preliminary position range can be obtained, that is, the approximate range where the key nodes of the vehicle frame are located.

[0145] More specifically, within the preliminary position range of each key node, the first position parameter (ie, the relative position relationship between the key nodes) is applied to accurately locate the specific position of each key node.

[0146] It should be noted that the vehicle frame key nodes are important identification nodes on the vehicle frame. Therefore, there is a connection relationship between each vehicle frame key node, and there is a corresponding relationship between the connection relationships between each vehicle frame key node. For example: the top two sides of the rear part of the vehicle are a pair of vehicle frame key nodes, and the bottom two sides of the rear part of the vehicle are a pair of vehicle frame key nodes. The connection relationship between these two groups of nodes has a corresponding parallel relationship. Based on these relationships, the nodes inside the preliminary position range are traversed and verified to obtain the node positions that conform to the connection relationship and corresponding relationship of the vehicle frame.

[0147] More specifically, according to the determined specific position, the key nodes of the vehicle frame are reproduced in the parking space 3D coordinate system model, and these key nodes are connected according to the structure of the vehicle to construct a complete vehicle frame 3D model.

[0148] It can be understood that after constructing the vehicle frame 3D model in the parking space 3D coordinate system model, the parking posture of the vehicle can be accurately detected.

[0149] Reference Figure 2 As shown, in a second aspect, the present invention provides a vehicle detection device based on binocular vision, which is used to implement a vehicle detection method based on binocular vision as described in any one of the first aspects. The method adopts a vehicle detection system based on binocular vision, which includes a mounting structure and two detection units, wherein the mounting structure is arranged at a side boundary position of two adjacent parking spaces, and the two detection units are respectively arranged at two ends of the mounting structure, and the two detection units are respectively located at a side position of one of the parking spaces, and the two detection units respectively perform vehicle detection on vehicles parked in adjacent parking spaces, including:

[0150] A preliminary detection module, configured to perform a vehicle parking detection on the adjacent parking spaces through the detection unit to determine whether there are parked vehicles in the adjacent parking spaces;

[0151] A specific detection module is used for, when it is determined that there is a parked vehicle in the parking space, collecting data from both ends of the parked vehicle in the parking space through the two detection units corresponding to the parking space, so as to obtain front parking information and rear parking information of the parked vehicle;

[0152] The detection and analysis module is used to transmit the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, server or cloud platform via wireless data, and perform feature fusion analysis on the front-end parking information and the rear-end parking information to obtain the vehicle detection information of the parked vehicle.

[0153] In this embodiment, for the specific implementation of each module in the above-mentioned device embodiment, please refer to the above-mentioned method embodiment, which will not be described in detail here.

[0154] In the third aspect, the present invention provides a vehicle detection system based on binocular vision, which is used to implement a vehicle detection method based on binocular vision as described in any one of the first aspects, comprising: an installation structure, two detection units and a detection module, wherein the installation structure is arranged at a lateral junction position of two adjacent parking spaces, the two detection units are respectively arranged at two ends of the installation structure, the two detection units are respectively located at a lateral position of one of the parking spaces, the two detection units respectively perform vehicle detection on vehicles parked in adjacent parking spaces, and the detection module is connected to the detection unit for communication via wireless data, so as to implement a vehicle detection method based on binocular vision as described in any one of the first aspects.

[0155] Preferably, the detection unit includes a radar module and a camera module.

[0156] 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 vehicle detection method based on binocular vision, using a vehicle detection system based on binocular vision, the system includes a mounting structure and two detection units, the mounting structure is arranged at the side junction position of two adjacent parking spaces, the two detection units are respectively arranged at both ends of the mounting structure, the two detection units are respectively located at the side position of one of the parking spaces, and the two detection units respectively perform vehicle detection on vehicles parked in adjacent parking spaces, characterized in that: include: Performing vehicle parking detection on the adjacent parking spaces by the detection unit to determine whether there are parked vehicles in the adjacent parking spaces; When it is determined that there is a parked vehicle in the parking space, data collection is performed on the front and rear ends of the parked vehicle in the parking space by using the two detection units corresponding to the parking space to obtain front parking information and rear parking information of the parked vehicle; Transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, a server or a cloud platform via wireless data, and performing feature fusion analysis processing on the front-end parking information and the rear-end parking information to obtain vehicle detection information of the parked vehicle; The steps of transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, a server or a cloud platform through wireless data, and performing feature fusion analysis processing on the front-end parking information and the rear-end parking information to obtain the vehicle detection information of the parked vehicle include: Transmitting the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, a server or a cloud platform via wireless data; Extracting key features of the license plate from the front parking information and the rear parking information of the parked vehicle to obtain the key features of the front license plate and the rear license plate of the parked vehicle; Performing feature fusion analysis on the key features of the front-end license plate and the rear-end license plate of the parked vehicle to obtain the license plate detection information of the parked vehicle; Extracting and processing the key features of the parking position of the front parking information and the rear parking information of the parked vehicle, obtaining the key features of the front parking position and the rear parking position of the parked vehicle, and performing fusion analysis and processing to obtain the parking position information of the parked vehicle; Combining the license plate detection information with the parking position information to obtain the vehicle detection information; The steps of extracting key features of the parking position of the front parking information and the rear parking information of the parked vehicle, obtaining the key features of the front parking position and the rear parking position of the parked vehicle, performing feature fusion analysis and processing, and obtaining the parking position information of the parked vehicle include: Collecting data of the parking space shape in advance, and constructing a 3D coordinate system model of the parking space according to the parking space shape of the parking space; Setting a plurality of positioning identification points based on the parking space 3D coordinate system model; Recognize the key nodes of the vehicle frame for the front parking information and the rear parking information of the parked vehicle, respectively, to obtain the key nodes of the vehicle frame of the parked vehicle at the front parking information and the rear parking information; wherein the key nodes of the vehicle frame are important identification points of the appearance of the parked vehicle; Generating first position parameters of each of the key nodes of the vehicle frame according to the relative position relationship between each of the key nodes of the vehicle frame of the parked vehicle; Generating second position parameters of each of the key nodes of the vehicle frame according to the relative position relationship between each of the key nodes of the vehicle frame of the parked vehicle and each of the positioning identification points; Performing position mapping processing according to the first position parameter and the second position parameter of each key node of the vehicle frame, so as to reproduce and connect each key node of the vehicle frame in the parking space 3D coordinate system model, and obtain the vehicle frame 3D model of the parked vehicle; Analyzing and processing the relative position relationship between the vehicle frame 3D model and the parking space 3D coordinate system model to obtain parking position information of the parked vehicle; The step of performing position mapping processing according to the first position parameter and the second position parameter of each key node of the vehicle frame to reproduce and connect each key node of the vehicle frame in the parking space 3D coordinate system model to obtain the vehicle frame 3D model of the parked vehicle includes: Performing preliminary position mapping processing according to the second position parameters of each of the key nodes of the vehicle framework to obtain a preliminary position range of each of the key nodes of the vehicle framework; Performing position mapping processing in a preliminary position range of each of the vehicle frame key nodes according to the first position parameters of each of the vehicle frame key nodes to determine the specific position of each of the vehicle frame key nodes; Reproducing and connecting each of the key nodes of the vehicle frame in the parking space 3D coordinate system model according to the specific position of each of the key nodes of the vehicle frame, to obtain a 3D model of the vehicle frame of the parked vehicle; The steps of extracting key features of the license plate from the front parking information and the rear parking information of the parked vehicle to obtain the key features of the front license plate and the rear license plate of the parked vehicle include: The front-end parking information and the rear-end parking information are respectively subjected to license plate key feature extraction processing by a pre-trained license plate recognition AI model to obtain the front-end license plate key features and the rear-end license plate key features of the parked vehicle; The steps of pre-training the license plate recognition AI model include: Construct input layer, convolution layer and three fully connected layers; Collecting a plurality of training combinations, each of which includes a license plate image and a corresponding license plate number, and substituting each of the training combinations into the input layer; The input layer receives the collected training combinations and transmits the training combinations to the convolution layer, and the convolution layer is used to collect features of the training combinations to obtain image features of the license plate images corresponding to the license plate numbers in the training combinations; The three fully connected layers are used to perform continuous vector flattening processing on the image features of the license plate images corresponding to the license plate numbers extracted by the convolutional layer, so as to flatten the image features of the license plate images corresponding to the license plate numbers into one-dimensional vector features; the one-dimensional vector features are used to perform basic graphical expression on the image features of the license plate images corresponding to the license plate numbers; The step of performing feature fusion analysis on the front-end license plate key features and the rear-end license plate key features of the parked vehicle to obtain the license plate detection information of the parked vehicle includes: Performing a first round of license plate number restoration processing on the parked vehicle according to the front-end license plate key features to obtain a first license plate number recognition sequence of the parked vehicle; wherein the first license plate number recognition sequence includes a plurality of number recognition bits arranged in sequence, each of the number recognition bits has a plurality of recognition results, and each of the recognition results has a corresponding probability weight; Performing a second round of license plate number restoration processing on the parked vehicle according to the rear-end license plate key features to obtain a second license plate number recognition sequence of the parked vehicle; wherein the second license plate number recognition sequence includes a plurality of number recognition bits arranged in sequence, each of the number recognition bits has a plurality of recognition results, and each of the recognition results has a corresponding probability weight; According to each of the number recognition bits of the first license plate number recognition sequence and the second license plate number recognition sequence, data determination processing of the number recognition bits is performed respectively to obtain determination and recognition results of each of the number recognition bits, and the determination and recognition results of each of the number recognition bits are arranged in sequence to obtain the license plate detection information of the parked vehicle; The steps of performing data determination processing on the number identification bits according to the first license plate number identification sequence and the second license plate number identification sequence to obtain the determination results of the number identification bits include: An integrated analysis is performed based on each of the recognition results of the number recognition digit and the possibility weights corresponding to each of the recognition results to obtain the recognition result with the highest possibility weight, and the recognition result with the highest possibility weight is used as the definite recognition result of the number recognition digit.

2. A vehicle detection method based on binocular vision as claimed in claim 1, characterized in that: The detection unit includes a radar module and a camera module; The radar module is used to perform vehicle parking detection on the parking space to determine whether there is a parked vehicle in the parking space; The camera module is used to collect data from both the front and rear ends of the parked vehicles in the adjacent parking spaces to obtain front-end parking information and rear-end parking information of the parked vehicles.

3. A vehicle detection device based on binocular vision, characterized in that: A vehicle detection method based on binocular vision is used to implement any one of claims 1-2, the method adopts a vehicle detection system based on binocular vision, the system comprises a mounting structure and two detection units, the mounting structure is arranged at the side junction position of two adjacent parking spaces, the two detection units are respectively arranged at both ends of the mounting structure, the two detection units are respectively located at the side position of one of the parking spaces, and the two detection units respectively perform vehicle detection on vehicles parked in adjacent parking spaces, including: A preliminary detection module, configured to perform a vehicle parking detection on the adjacent parking spaces through the detection unit to determine whether there are parked vehicles in the adjacent parking spaces; A specific detection module is used for, when it is determined that there is a parked vehicle in the parking space, collecting data from both ends of the parked vehicle in the parking space through the two detection units corresponding to the parking space, so as to obtain front parking information and rear parking information of the parked vehicle; The detection and analysis module is used to transmit the front-end parking information and the rear-end parking information of the parked vehicle to an external terminal, server or cloud platform via wireless data, and perform feature fusion analysis on the front-end parking information and the rear-end parking information to obtain the vehicle detection information of the parked vehicle.

4. A vehicle detection system based on binocular vision, characterized in that: include: An installation structure, two detection units and a detection module, wherein the installation structure is arranged at the lateral junction of two adjacent parking spaces, the two detection units are respectively arranged at both ends of the installation structure, the two detection units are respectively located at the lateral position of one of the parking spaces, the two detection units respectively perform vehicle detection on vehicles parked in the adjacent parking spaces, and the detection module is connected to the detection units through wireless data communication, so as to implement a vehicle detection method based on binocular vision as described in any one of claims 1 to 2.

5. A vehicle detection system based on binocular vision as claimed in claim 4, characterized in that: The detection unit includes a radar module and a camera module.