Three-dimensional garage entrance vehicle data detection method based on TOF 3D camera

By setting up a TOF 3D camera at the entrance of the three-dimensional garage to process vehicle data in real time, combined with image recognition and point cloud data processing, the problem of insufficient accuracy and poor stability of traditional detection technology is solved, achieving high precision, fast processing speed and strong anti-interference ability. Vehicle detection improves the intelligence level of the garage.

CN118553099APending Publication Date: 2024-08-27WUHAN ZHIXIANG ROBOT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410701295.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Traditional three-dimensional garage vehicle detection technology has insufficient accuracy, poor stability, and is susceptible to environmental interference. It is difficult to meet the needs of modern intelligent parking systems. In particular, it is difficult to achieve high accuracy, fast processing speed, and anti-interference capabilities in complex environments.

Method used

A three-dimensional garage entrance vehicle data detection method based on TOF 3D cameras is adopted. By setting TOF 3D cameras at the four corners of the garage entrance, camera data is obtained in real time, data is transformed and stored, the algorithm analyzes and calculates vehicle-related information, detects vehicle motion status, and performs data processing. Optimized processing, using grayscale images and depth images collected by four cameras for image recognition and point cloud data processing, combined with the Yolov8 model to improve recognition accuracy.

Benefits of technology

It achieves higher-precision vehicle detection, fast processing speed, strong anti-interference ability, and can accurately identify vehicles in complex environments, improving the automation and intelligence level of the garage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553099A
    Figure CN118553099A
Patent Text Reader

Abstract

The invention provides a three-dimensional garage entrance vehicle data detection method based on a TOF 3D camera, and the method comprises the steps: firstly installing and calibrating a 3D camera, and guaranteeing that the camera accurately captures vehicle data; then obtaining a grey-scale map and a depth map of the camera in real time, and converting the depth map into point cloud data; then analyzing and calculating the Cartesian coordinate, the vehicle width, the wheelbase, the vehicle body angle and the front wheel angle of the vehicle through an algorithm; detecting the motion state of the vehicle, and performing data optimization processing according to the motion state; and finally, the vehicle information data is sent to different system modules through a real-time communication channel, so that the problems, such as inconvenient operation of a driver and the risk of vehicle damage, existing in the traditional parking garage entrance design are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer vision and artificial intelligence, and in particular to a method for detecting vehicle data at an entrance of a stereo garage based on a TOF 3D camera. Background Art

[0002] With the rapid development of the economy and the acceleration of urbanization, the number of motor vehicles has increased rapidly, leading to an increasingly serious problem of parking difficulties in cities. As a solution to save space and improve parking efficiency, the construction and application of stereo garages have been rapidly promoted. However, the automation and intelligence level of stereo garages still needs to be improved, especially in vehicle data detection. Traditional detection technology has problems such as insufficient accuracy, poor stability, and susceptibility to environmental interference, which makes it difficult to meet the needs of modern intelligent parking systems.

[0003] The entrance of a stereo garage is a key link for vehicles to enter the garage. Accurate position and posture detection of vehicles is of great significance for realizing automated parking. Traditional radar-based vehicle detection methods have disadvantages such as small data volume, limited pitch angle, and low accuracy. In addition, the algorithm has poor stability and is difficult to adapt to complex environments. In addition, with the development of intelligent information technology, higher requirements are placed on the vehicle detection method of stereo garages, requiring technical solutions with higher accuracy, faster processing speed, and stronger anti-interference ability to improve the automation and intelligence level of stereo garages. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes a method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera, comprising the following steps:

[0005] S1. Set up a TOF 3D camera at each corner of the garage entrance;

[0006] S2, acquiring the vehicle's camera data in real time, and then transforming and storing the camera data;

[0007] S3, storing the data obtained after the transformation in step S2 into the shared module;

[0008] S4, performing algorithm analysis on the data obtained after the transformation in step S2 to calculate vehicle related information;

[0009] S5, detecting the vehicle motion state;

[0010] S6. Optimize data processing according to the vehicle's motion state;

[0011] S7. Vehicle-related information is sent to different communication channels in real time.

[0012] In a preferred solution, the camera data in step S2 includes a grayscale image and a depth image of the vehicle, and the frequency is controlled at 10 Hz.

[0013] In a preferred solution, the data transformation process in step S2 includes: converting depth map data to point cloud data, transforming camera data matrix, and storing the point cloud data in cv::Mat three-channel format.

[0014] In the preferred scheme, the data transformation process in step S2 includes: according to the depth information in the depth map, combined with the focal length and principal point coordinates of the camera, each pixel point is converted into a point in three-dimensional space by the back projection method, wherein the depth value is combined with the camera parameters to calculate the three-dimensional coordinates, and then the converted point cloud data is stored in the form of a three-dimensional dot matrix, including each point in X, Y, and Z Cartesian coordinates.

[0015] In a preferred solution, step S2 further includes: integrating point cloud data from different cameras into a unified coordinate system using coordinate transformation and alignment methods.

[0016] In a preferred solution, the vehicle-related information in step S4 includes: the x, y, z Cartesian coordinates of the vehicle, the width and wheelbase of the vehicle, and the body angle and front wheel angle.

[0017] In a preferred solution, in step S2, image detection is performed to identify the wheel hub in the image;

[0018] Step S4 also includes the following steps:

[0019] S41, after the recognition results show that there are three wheels, the corresponding point cloud map is obtained, and the wheel point cloud and the tire point cloud above and below the wheel hub are extracted according to the recognition results;

[0020] S42, performing downsampling filtering on the tire point cloud to remove the influence of uneven point cloud density and noise points;

[0021] S43, calculating the wheel point cloud by both methods A and B, and calculating the tire point cloud by only method A;

[0022] S44. Automatically compare and analyze the calculation results corresponding to the three wheels to retain more reasonable data.

[0023] In the preferred scheme, method A in step S43 refers to: performing plane fitting on the point cloud, then calculating the center of mass of each point cloud, and then analyzing the wheels corresponding to the point cloud data to obtain the four-wheel center coordinates, wheelbase, axle width, body angle and front wheel angle.

[0024] In a preferred solution, method B in step S43 refers to:

[0025] According to the characteristics of the wheel point cloud data collected by the 3D camera, a point cloud model is generated according to the parameters when the system is initialized;

[0026] Generate two sets of planar point cloud models to decouple the mutual influence of angle and x, y data;

[0027] The hub point cloud is used for two plane models using the gradient descent method to calculate the four-wheel center coordinates, wheelbase, axle width, body angle and front wheel angle.

[0028] In a preferred solution, the algorithm analysis process in step S4 includes:

[0029] Acquire grayscale image and point cloud image simultaneously from the data middle block in real time;

[0030] After obtaining the grayscale image, the grayscale images of all cameras will be spliced ​​together in the order of the cameras;

[0031] After the wheels of the vehicle are completely segmented, the corresponding point cloud data is extracted from the point cloud image according to the segmentation results;

[0032] Downsample the point cloud data once.

[0033] In a preferred solution, step S4 also includes: using variance to filter fluctuations and calculating stable position information of four groups of wheels.

[0034] In a preferred solution, among the four sets of wheel position information, the position information of two wheels on the same side is fitted and compared to detect the wheel direction.

[0035] In the preferred solution, the point cloud data distribution and shape characteristics of the front and rear wheels on the same side are analyzed, the principal axes of each point cloud data are calculated respectively, the inclination degrees of the front and rear principal axes are fitted and compared, and whether the postures of the wheels are consistent is detected.

[0036] In a preferred solution, the method for detecting whether the vehicle is moving is:

[0037] Calculate the center pixel points of the four wheels;

[0038] Record the coordinates of the center pixel points of the vehicle at different time points in the continuous image frames, and connect the coordinates of the center pixel points in the order of time points to form a moving trajectory;

[0039] In the moving trajectory, the sudden acceleration, deceleration or turning of the vehicle will cause mutation points, which need to be analyzed and corrected;

[0040] The vehicle's motion state is determined based on the changes in the trajectory. When the trajectory shows that the vehicle's position changes continuously, it can be considered that the vehicle is moving.

[0041] The beneficial effects of the present invention are:

[0042] 1) TOF 3D camera technology can better eliminate interference from debris, which means that when performing vehicle data detection, the system can more accurately identify and measure the vehicle without being affected by debris in the surrounding environment.

[0043] 2) Compared with radar detection methods, TOF 3D cameras can provide higher-precision point cloud data and the algorithm calculation speed is faster, which helps to improve the efficiency and accuracy of the entire vehicle detection process.

[0044] 3) Use four cameras and keep a certain distance to obtain better wheel data, solving the problem of camera field of view limitation.

[0045] 4) By using the Yolov8 model for image recognition, the system can identify and segment the wheel hub with extremely high accuracy, and maintain high anti-interference ability even in rainy and snowy weather.

[0046] 5) By sequentially stitching the grayscale images captured by the four cameras, the efficiency of image recognition can be improved because the stitched images can be processed at one time, reducing the need to process different parts of the same vehicle multiple times. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0048] Figure 1 It is a schematic diagram of the installation structure of the entrance vehicle information detection of the present invention;

[0049] Figure 2 It is a flow chart of the entrance vehicle information detection system of the present invention. DETAILED DESCRIPTION

[0050] Example 1

[0051] like Figures 1-2 As shown, a method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera is characterized by comprising the following steps:

[0052] A1. Set up a TOF 3D camera at each corner of the garage entrance;

[0053] A2. Obtain the vehicle's camera data in real time, then transform and store the camera data;

[0054] A3, storing the data obtained after transformation in step A2 into the shared module;

[0055] A4, performing algorithm analysis on the data obtained after the transformation in step A2 to calculate vehicle related information;

[0056] A5. Detect vehicle motion status;

[0057] A6. Optimize data processing according to vehicle motion status;

[0058] A7. Vehicle-related information is sent to different communication channels in real time.

[0059] In a preferred solution, the camera data in step A2 includes a grayscale image and a depth image of the vehicle, and the frequency is controlled at 10 Hz.

[0060] In a preferred solution, the data transformation process in step A2 includes: converting depth map data to point cloud data, transforming camera data matrix, and storing the point cloud data in cv::Mat three-channel format.

[0061] In a preferred solution, the vehicle-related information in step A4 includes: x, y, z Cartesian coordinates of the vehicle, width and wheelbase of the vehicle, and body angle and front wheel angle.

[0062] In a preferred solution, in step A2, image detection is performed to identify the wheel hub in the image;

[0063] Step A4 also includes the following steps:

[0064] A41. After the recognition results show that there are three wheels, the corresponding point cloud images are obtained, and the wheel point cloud and the tire point cloud above and below the wheel point cloud are extracted according to the recognition results;

[0065] A42. Downsample and filter the tire point cloud to remove the influence of uneven point cloud density and noise points;

[0066] A43, calculate the wheel point cloud using both methods A and B, and only calculate the tire point cloud using method A;

[0067] A44. Automatically compare and analyze the calculation results corresponding to the three wheels to retain more reasonable data.

[0068] In the preferred scheme, method A in step S43 refers to: performing plane fitting on the point cloud, then calculating the center of mass of each point cloud, and then analyzing the wheels corresponding to the point cloud data to obtain the four-wheel center coordinates, wheelbase, axle width, body angle, and front wheel angle.

[0069] In a preferred embodiment, method B in step A43 refers to:

[0070] According to the characteristics of the wheel point cloud data collected by the 3D camera, a point cloud model is generated according to the parameters when the system is initialized;

[0071] Generate two sets of planar point cloud models to decouple the mutual influence of angle and x, y data;

[0072] The hub point cloud is used for two plane models using the gradient descent method to calculate the four-wheel center coordinates, wheelbase, axle width, body angle and front wheel angle.

[0073] In a preferred solution, the algorithm analysis process in step A4 includes:

[0074] Acquire grayscale image and point cloud image simultaneously from the data middle block in real time;

[0075] After obtaining the grayscale image, the grayscale images of all cameras will be spliced ​​together in the order of the cameras;

[0076] After the wheels of the vehicle are completely segmented, the corresponding point cloud data is extracted from the point cloud image according to the segmentation results;

[0077] Downsample the point cloud data once.

[0078] Example 2

[0079] A method for detecting the position and posture of a vehicle at the entrance of a stereo garage based on a TOF 3D camera, comprising the following steps:

[0080] S1. Set up 3D cameras at the four corners of the garage entrance. The 3D cameras used are TOF 3D cameras.

[0081] S2. Four TOF 3D cameras continuously scan the vehicles in the garage respectively, obtain the camera data of the vehicles in real time, and then transform the camera data to generate and store point cloud data. Since the point cloud data obtained by each camera transformation has its own coordinate system, it is necessary to pre-process the point cloud data separately so that they have the same coordinate system for the same object. At the same time, the point cloud data is calibrated and stored to ensure that each frame of point cloud data stored is complete and there is no angle loss. The complete point cloud data is compressed and encoded to obtain the pre-processed point cloud data. Due to factors such as equipment and environment, the obtained point cloud data usually contains noise points and isolated points. Filtering technology is used to reduce noise points. In order to further screen the point cloud data of the vehicle, the convex hull technology is used to retain only the point cloud data within the segmentation range and remove the point cloud data outside the segmentation range, thereby reducing the number of irrelevant point cloud data. A two-dimensional model is constructed for the point cloud data retained after segmentation to obtain the point cloud data of the vehicle.

[0082] Through the above steps, the three-dimensional coordinates of the wheel position of the vehicle at the garage entrance are located. The obtained wheel position and posture can be sent to the specified queue and used by other modules to achieve accurate management and control of the vehicle.

[0083] In a preferred embodiment, the scanning range of the TOF 3D camera covers the entire range of the vehicle so that each wheel of the vehicle can be completely scanned.

[0084] In the preferred embodiment, in step S2, the point cloud data is filtered and denoised to remove noise and isolated data; the point cloud data after filtering and denoising is segmented using the convex hull technology to determine a cropping range and remove redundant background data; the point cloud data retained after segmentation is constructed using an activation function and an error function to build a two-dimensional model of the vehicle's side elevation, and the center and angle information of the vehicle are preliminarily located through optimization library optimization operations.

[0085] In the preferred embodiment, the filtering and denoising retains point cloud data above a certain amount of data, removes isolated points and performs denoising. A statistical filter is used to determine the distance threshold range thresh_d = μ ± k × σ based on the distribution information of the distance between each point in the point cloud data and the adjacent points, which includes a Gaussian distribution with a mean value μ and a standard deviation σ. If the average distance d of a certain point cloud data is outside the distance threshold range thresh_d, the point cloud data is an outlier and is removed from the point cloud data.

[0086] In the preferred solution, the threshold range is dynamically set to ensure that the amount of retained point cloud data reaches a preset percentage. The effectiveness of the statistical filter depends on the distribution of the data and the distance threshold setting range. Therefore, it is necessary to dynamically adjust and optimize the k value in the distance threshold range thresh_d = μ ± k × σ according to the actual situation to ensure that the amount of point cloud data reaches a preset percentage of 65%-85% and remove isolated noise data.

[0087] In the preferred embodiment, the convex hull technology adopts a convex hull algorithm. When processing three-dimensional point cloud data, the xy, xz and yz planes of the point cloud data are projected respectively, and the convex hull of each two-dimensional plane is calculated respectively. The three two-dimensional convex hulls are combined into a three-dimensional convex hull to determine the segmentation range of the retained point cloud data, remove the point cloud data outside the convex hull, and only retain the point cloud data inside the convex hull. Taking the Graham scanning method as an example, find the point with the smallest y coordinate as the starting point of the convex hull. If there are multiple point data with the same y coordinate and they are all at the bottom, select the leftmost point; sort all points according to the polar angle formed by this starting point, start from the first point after sorting, traverse all points, and for each point, check whether it forms a left turn with the last two points in the current convex hull according to the cross product judgment. If so, add the point to the convex hull; after obtaining the convex hull result, the segmentation range of the point cloud data can be determined.

[0088] In the preferred solution, in step S3, the chassis boundary is set according to the acquired vehicle center position and angle, a mask is created with the chassis boundary, the point cloud data above the mask is removed, and only the point cloud data below the mask is retained. In the retained point cloud data below the chassis, the point cloud data features of the wheels are obvious, the four groups of wheels are highly dense, and are closer to the ground than other point cloud data. The point cloud data of the wheels are extracted through clustering operations, and the position information of each of the four wheels is calculated.

[0089] In the preferred solution, the density-based clustering algorithm is suitable for finding dense areas in point cloud data. It can filter point cloud data other than wheels to a certain extent. By setting the neighborhood radius ε and the minimum number of points MinPts, each point is traversed to find the number of points in its ε neighborhood. If the number of points is less than MinPts, it is marked as a noise point. If the number of points is not less than MinPts, the current point cloud data is a core point, and the cluster of the point cloud data is expanded. If the point in the neighborhood has not been visited, it is marked as visited and added to the current cluster. Four groups of the most dense clusters are extracted from the clustering results, which are the point cloud data of the four groups of wheels; the centroid of the four groups of point cloud data is calculated by arc fitting, which can be expressed as Among them, (x i ,y i ,z i ) is the coordinate of each point cloud data, and N is the number of point cloud data; the Ceres optimization library is used to call the model data to extract the center coordinates and angle information of the four wheels, and the wheelbase and axle width are obtained by calculating the distance between the corresponding wheel center coordinates.

[0090] In the preferred solution, the centroids of the four groups of point cloud data form a rectangle with reasonable length and width to ensure the rationality of the wheelbase and the axis width.

[0091] In the preferred solution, the chassis boundary height is set as an empirical value. In order to eliminate the situation where the chassis height is set too high and contains too much vehicle body point cloud data, or the chassis height is set too low and only retains part of the wheel point cloud data, the chassis boundary height is set gradually lowered. The Ceres optimization library is used to optimize and continuously iteratively adjust the vehicle chassis height to minimize the error between the actual value of the vehicle chassis height and the initial predicted value, so that four sets of better wheel point cloud data can be quickly obtained.

[0092] In the preferred solution, the point cloud data of each wheel is filtered using a variance filter to remove the data with too large a variance, thereby obtaining relatively stable current four sets of wheel position information.

[0093] In the preferred solution, vehicle motion detection is calculated by matching point cloud data. The wheel point cloud data of the previous frame extraction result is retained as the comparison point cloud data. The point cloud data of the current four groups of wheels and the point cloud data of the four groups of wheels in the previous frame are quickly aligned to calculate the matching degree. When the vehicle moves significantly, the matching degree of the two frames of point cloud data is low, that is, the vehicle moves.

[0094] In the preferred solution, among the four sets of wheel position information, the position information of the two wheels on the same side is fitted and compared to detect the wheel direction. The point cloud data distribution and shape characteristics of the front and rear wheels on the same side are analyzed, the main axis of each point cloud data is calculated, and the inclination of the front and rear main axes is fitted and compared to detect whether the posture of the wheels is consistent. If not, the driver is reminded to straighten the wheels.

[0095] Example 3

[0096] With reference to the further description of Example 2, in the preferred solution, in step S3, point cloud data close to the ground is found and the center coordinates are fitted. Using the random sample consistency plane fitting algorithm, 3 point cloud data are randomly selected to determine a plane equation, and all point cloud data are sequentially brought into the plane equation. The judgment is made according to the set distance threshold. If it is within the threshold range, it is considered to be an inner point of the plane, otherwise it is an outer point. After traversing all points, the number of inner points is counted; the plane equation with the largest number of inner points in the number of iterations is the fitted ground plane equation, and the inner points in the ground equation are the ground point cloud data set; for the screened ground point cloud data set, that is, the wheel point cloud data close to the ground in the vehicle, the least squares method can be used to fit its center coordinates to obtain the center data of the four wheels on the ground point cloud data, and the four center data form a reasonable rectangle; the height value of the wheel from the ground to the top of the wheel and the lateral width value of the wheel are set, and a three-dimensional stereo segmentation frame is constructed based on each center data. The bottom center of the segmentation frame is aligned with the center data of the wheel, and the length, width and height are slightly larger than the size of the wheel to ensure that the wheel is completely included; the point cloud data of the vehicle is segmented by four stereo segmentation frames, and the point cloud data in the segmentation frame are the four groups of point cloud data corresponding to the wheels.

[0097] In the preferred solution, the circularity of the four groups of point cloud data is calculated respectively, and the feature data of the circle or approximate circle is identified, and the isolated point data other than the circle or approximate circle is removed again. The Hough transform algorithm is used to fit and identify the circular or approximate circular area. For each detected edge point cloud data, all possible combinations of the center coordinates and radius are traversed, and the distance from the point cloud data to the circle is calculated. If the distance is less than or equal to the given threshold, the count is increased at the corresponding position in the accumulator array, and the position with the highest count is searched in the accumulator array to determine the most significant circle, that is, the circle or approximate circle is obtained. The consistency of the four circles or approximate circles is compared and verified to ensure that they meet the shape characteristics of the wheel, and only the point cloud data of the four groups of wheels is retained.

[0098] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.

Claims

1. A method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera, characterized in that The following steps are involved: S1. Set up a TOF 3D camera at each corner of the garage entrance; S2, acquiring the vehicle's camera data in real time, and then performing data transformation and storing the camera data; S3, storing the data obtained after the transformation in step S2 into the shared module; S4, performing algorithm analysis on the data obtained after the transformation in step S2 to calculate vehicle related information; S5, detecting the vehicle motion state; S6. Optimize data processing according to the vehicle's motion state; S7. Vehicle-related information is sent to different communication channels in real time.

2. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 1, characterized in that: The camera data in step S2 includes a grayscale image and a depth image of the vehicle, and the frequency is controlled at 10 Hz.

3. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 1, characterized in that: The data transformation process in step S2 includes: converting depth map data to point cloud data, transforming camera data matrix, and storing the point cloud data in cv::Mat three-channel format.

4. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 1, characterized in that: The data transformation process in step S2 includes: according to the depth information in the depth map, combined with the focal length and principal point coordinates of the camera, each pixel is converted into a point in three-dimensional space by the inverse projection method, wherein the depth value is combined with the camera parameters to calculate the three-dimensional coordinates, and then the converted point cloud data is stored in the form of a three-dimensional dot matrix, including each point in the X, Y, and Z Cartesian coordinates.

5. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 1, characterized in that: Step S2 also includes: integrating the point cloud data from different cameras into a unified coordinate system using coordinate transformation and alignment methods.

6. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 1, characterized in that: The vehicle related information in step S4 includes: the x, y, z Cartesian coordinates of the vehicle, the width and wheelbase of the vehicle, and the body angle and front wheel angle.

7. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 6, characterized in that: In step S2, image detection is performed to identify the wheel hub in the image; Step S4 also includes the following steps: S41, after the recognition results show that there are three wheels, the corresponding point cloud map is obtained, and the wheel point cloud and the tire point cloud above and below the wheel hub are extracted according to the recognition results; S42, performing downsampling filtering on the tire point cloud to remove the influence of uneven point cloud density and noise points; S43, calculating the wheel point cloud by both methods A and B, and calculating the tire point cloud by only method A; S44. Automatically compare and analyze the calculation results corresponding to the three wheels to retain more reasonable data.

8. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 7, characterized in that: Method A in step S43 refers to: performing plane fitting on the point cloud, then calculating the center of mass of each point cloud, and then analyzing the wheels corresponding to the point cloud data to obtain the four-wheel center coordinates, wheelbase, axle width, body angle and front wheel angle.

9. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 7, characterized in that: The B method in step S43 refers to: According to the characteristics of the wheel point cloud data collected by the 3D camera, a point cloud model is generated according to the parameters when the system is initialized; Generate two sets of planar point cloud models to decouple the mutual influence of angle and x, y data; The hub point cloud is used for two plane models using the gradient descent method to calculate the four-wheel center coordinates, wheelbase, axle width, body angle and front wheel angle.

10. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 7, characterized in that: The algorithm analysis process in step S4 includes: Acquire grayscale image and point cloud image simultaneously from the data middle block in real time; After obtaining the grayscale image, the grayscale images of all cameras will be spliced ​​together in the order of the cameras; After the wheels of the vehicle are completely segmented, the corresponding point cloud data is extracted from the point cloud image according to the segmentation results; Downsample the point cloud data once.

11. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 9, characterized in that: Step S4 also includes: using variance to filter fluctuations and calculating stable position information of four groups of wheels.

12. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 9, characterized in that: Among the four sets of wheel position information, the position information of two wheels on the same side is fitted and compared to detect the wheel direction.

13. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 1, characterized in that: The method for detecting whether the posture of the wheels is consistent is: analyzing the point cloud data distribution and shape characteristics of the front and rear wheels on the same side, calculating the principal axes of their respective point cloud data, fitting and comparing the inclination degrees of the front and rear principal axes, and detecting whether the posture of the wheels is consistent.

14. The method for detecting vehicle data at the entrance of a stereo garage based on a TOF 3D camera according to claim 1, characterized in that: The method to detect whether the vehicle is moving is: Calculate the center pixel points of the four wheels; Record the coordinates of the center pixel points of the vehicle at different time points in the continuous image frames, and connect the coordinates of the center pixel points in the order of time points to form a moving trajectory; In the moving trajectory, the sudden acceleration, deceleration or turning of the vehicle will cause mutation points, which need to be analyzed and corrected; The vehicle's motion state is determined based on the changes in the trajectory. When the trajectory shows that the vehicle's position changes continuously, the vehicle is considered to be moving.

Citation Information

Cited By

  • Truck type identification method in roadside laser radar monitoring scene

    CN122416383A