Vehicle detection method and detection device based on sensor multi-information fusion
By fusing camera and lidar data, combined with wavelet analysis and machine learning, the problem of low positioning accuracy of vehicle sensors is solved, more efficient and accurate vehicle detection is achieved, and the safety and comfort of intelligent driving are improved.
Patent Information
- Application Number
- CN202111390381.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-11-23
AI Technical Summary
Existing vehicle sensors have low positioning accuracy and cannot meet the needs of intelligent driving. It is difficult for a single sensor data processing algorithm to achieve intelligent, safe and comfortable driving.
A vehicle detection method based on sensor multi-information fusion is adopted, by converting the coordinate system of the camera and lidar into the detection coordinate system, combining visual images and lidar point cloud data, extracting road boundaries and vehicle features, and using wavelet analysis and machine learning. Data fusion and verification improve detection accuracy and efficiency.
It achieves higher vehicle detection accuracy and efficiency, reduces detection time, reduces false detections and missed detections, gives full play to the detection advantages of cameras and lidar, and improves object recognition accuracy.
Smart Images

Figure CN114118252B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an early warning method in the field of autonomous driving technology, and in particular to a vehicle detection method based on multi-information fusion of sensors, and also to a detection device. Background Art
[0002] With the continuous improvement of economic level, unmanned vehicle technology has developed rapidly. Sensor detection technology plays a vital role in unmanned vehicle research. It is related to whether the vehicle can participate in traffic operation safely and reliably. Accurate detection and positioning of the vehicle in front is a difficulty that needs to be overcome by various sensor detection technologies. The advantages and disadvantages of different sensors are quite obvious. For example, visual images are like human eyes that can well capture various objects that appear in the field of view and classify and identify them. However, due to the limited image size, the positioning accuracy of the sensor cannot meet the needs of intelligent driving. Various radar sensors have good positioning capabilities compared to vision, but it is difficult for radar sensors to fully capture all the features of an object, and the judgment of the object type increases the difficulty. Single sensor data processing algorithms are increasingly unable to meet people's pursuit of driving intelligence, safety, and comfort. Summary of the invention
[0003] In order to solve the technical problem of low positioning accuracy of existing vehicle sensors, the present invention provides a vehicle detection method and a detection device based on sensor multi-information fusion.
[0004] The present invention is implemented by the following technical solution: a vehicle detection method based on sensor multivariate information fusion, which includes the following steps:
[0005] S1: converting the camera coordinate system and the laser radar coordinate system of the vehicle into the detection coordinate system of the vehicle;
[0006] S2: First, preliminarily determine the camera detection area according to the image vanishing line and the camera acquisition angle of view, then screen the laser radar point cloud data, and finally detect the mutation position of the laser radar data return value, extract the road boundary position information and project it onto the image to determine the vehicle passage area;
[0007] S3: first constrain the detection angle of the laser radar within the camera viewing angle range to determine the detection area for the image recognition vehicle, then project the object distance information detected by the laser radar onto the visual image, and use this as a base point to search for the area of interest for vehicle recognition on the image;
[0008] S4: After determining the detection area of the vehicle in the image, according to the contour change direction of the point cloud information in the laser point cloud set, the contour features of the rear of the vehicle in the guidance image are extracted, and then the texture features are integrated to identify the vehicle in front, and then the image recognition result is verified according to the point cloud structure and spatial position of the laser radar.
[0009] The present invention starts from the perspective of improving detection accuracy and reducing time consumption, from raw data features to advanced feature data fusion, giving full play to the detection advantages of each sensor, learning from each other's strengths and weaknesses, to achieve the ultimate goal. In the raw data fusion, with noise reduction as the main purpose, the interference noise data that affects the detection results is removed, and the purpose of identification and positioning is achieved with the least amount of data and the lowest detection cost as much as possible; secondly, object features are extracted from the raw data, and the object features in the two sensors are fused. The object recognition accuracy is improved through complementary detection, solving the technical problem of low positioning accuracy of existing vehicle sensors.
[0010] As a further improvement of the above solution, a point in space is defined as P in the laser radar coordinate system. l (x l ,y l ,z l ), which is P in the camera coordinate system c (x c ,y c ,z c ), which is P in the detection coordinate system p (x p ,y p ,z p ); The transformation relationships from the laser radar coordinate system and the camera coordinate system to the detection coordinate system are respectively:
[0011] P p =P l ·R l +B l
[0012] P p =P l ·R c +B c
[0013] Among them, B l and B c They are respectively the translation matrices from the laser radar coordinate system and the camera coordinate system to the detection coordinate system.
[0014] As a further improvement of the above scheme, when screening the laser radar point cloud data, if there is no obstacle on the ground, the coordinates of the laser beam of the laser radar located at the ground point cloud in the radar coordinate system are:
[0015]
[0016] In the formula, x l ,y l 、z l represents the coordinates of any laser beam, α l represents the search angle of any laser beam, ρ is the detection distance of the laser radar, and ω is the emission angle of the laser radar;
[0017] After the height is fixed, the point cloud coordinates of the laser beam of the laser radar are:
[0018]
[0019] In the formula, H represents the installation height of the laser radar;
[0020] The source data of the laser radar is rotated and corrected, and the transformed data is compared with the coordinate points obtained based on the height:
[0021]
[0022] Where P represents the coordinate point obtained based on the height.
[0023] As a further improvement of the above solution, in step S3, the data return value of each point in the polar coordinate system within the detection range of the laser radar is:
[0024] P(ρ n ,α,ω n )n=1,2,3...
[0025] Wherein, α is the search angle, n represents the beam value of the laser radar; ρ n is the detection distance of the beam value n, ω n The emission angle of the beam value is n; rotating around the z-axis, the range of the beam search angle of the laser radar is (0,360), the viewing angle of the camera is M, and the search angle of the laser radar is corrected to (-0.5M, 0.5M).
[0026] As a further improvement of the above scheme, the point cloud data of the laser radar is used to segment the road, that is, the vehicle passage area is extracted according to the structural characteristics of the road edge, and the preliminary segmentation result is secondary segmented using wavelet analysis to determine the vehicle passage area.
[0027] As a further improvement of the above scheme, when an obstacle appears within the radar detection range, the mutation position is detected; the laser point cloud data is extracted, and the Daubechies wavelet 6th-order function is used to fit the distance data received by the laser radar, and at the position where the data mutates, its wavelet function can locate it more accurately, extract the boundary feature points, and then use the least squares method to fit a series of feature points to obtain the vehicle passage area.
[0028] As a further improvement of the above scheme, machine learning is applied to perform vehicle identification detection on the determined vehicle detection area. By first locating the ground positions of the left and right vehicles, and then visually determining the vehicle detection area, the search box is gradually enlarged, and the vehicle is identified by searching from both sides to the middle and from bottom to top.
[0029] As a further improvement of the above scheme, when the object distance information is projected onto the visual image, the method for deriving the conversion relationship between the camera coordinate system and the image coordinate system includes the following steps:
[0030] P(X c ,Y c ,Z c ) is any point in the camera coordinate system, and P(X c ,Y c ,Z c ) in the image coordinate system:
[0031]
[0032] Where f is the focal length of the camera; (0-xy) is the image coordinate system, and p(x,y) is P(x c ,y c ,z c ) projected into this coordinate system;
[0033] Definition (0 uv -uv) is the pixel coordinate system, and the conversion formula from the camera coordinate system to the pixel coordinate system is:
[0034]
[0035] According to the conversion formula from the laser radar coordinate system to the camera coordinate system, the coordinate conversion formula from the point cloud to the image is derived as follows:
[0036]
[0037] According to the coordinate transformation formula from point cloud to image, the distance information of the object detected by the lidar is projected onto the visual image.
[0038] As a further improvement of the above solution, the space formed by the laser radar on the vehicle body is defined as: Γ:U L,M,R (x, y, z), the point cloud formed by acting on the object needs to meet the following conditions:
[0039] (1)
[0040] (2) For the detected objects on the left and right sides, the spatial point cloud forms two mutually perpendicular planes with a circular arc as the transition; the object directly in front is a plane with circular arcs at both ends.
[0041] The present invention also provides a detection device, which applies any of the above-mentioned vehicle detection methods based on multi-information fusion of sensors, and comprises:
[0042] A conversion module, which is used to convert the camera coordinate system and the laser radar coordinate system of the vehicle into the detection coordinate system of the vehicle;
[0043] An initial data processing module is used to process the initial data of the camera and the laser radar; the initial data processing module first preliminarily determines the camera detection area according to the image vanishing line and the camera acquisition angle of view, then screens the laser radar point cloud data, and finally detects the sudden change position of the laser radar data return value, extracts the road boundary position information and projects it onto the image, and determines the vehicle passage area;
[0044] A detection area fusion module is used to first constrain the detection angle of the laser radar within the camera's viewing angle to determine the detection area for the image recognition vehicle, and then project the object distance information detected by the laser radar onto the visual image, using this as a base point to search for the area of interest for vehicle recognition on the image;
[0045] The structural feature fusion recognition module determines the detection area of the vehicle in the image, and then extracts the contour features of the rear of the vehicle in the guidance image according to the contour change direction of the point cloud information in the laser point cloud set, and then fuses the texture features to identify the vehicle in front, and then verifies the image recognition results according to the point cloud structure and spatial position of the laser radar.
[0046] The vehicle detection method and detection device based on sensor multi-information fusion of the present invention have the following beneficial effects:
[0047] 1. The present invention proposes to use the fusion of camera and laser radar to determine the detection range in vehicle detection technology. For safe driving of vehicles, many of the laser radar data detected in 360° are redundant, which will bring additional computing costs to the processor and affect the execution efficiency. The camera's perspective is equivalent to the driver's eyes, detecting objects on the road when the vehicle is driving, so the camera's perspective is used to give the laser radar a reasonable search range.
[0048] 2. The present invention proposes to utilize the characteristic of wavelet analysis that is sensitive to sudden changes in the return value of lidar data in vehicle detection technology, perform wavelet analysis on the point cloud data returned by each laser beam, extract each laser point data that can scan the edge of the ground, and then perform fitting to constrain the detection range within the vehicle's passable range.
[0049] 3. The present invention proposes to improve the vehicle identification method and detection efficiency in vehicle detection technology, and use the laser radar detection results to locate the ground coordinate position of the lower left corner of the vehicle (if the vehicle is on the right, locate the ground coordinate position of the lower right corner). Based on this point, the search area is continuously adjusted and expanded, and the size of the detection box is adjusted to achieve rapid identification of the vehicle.
[0050] 4. The present invention proposes that in vehicle detection technology, the same laser beam acts on an object. Because the surface of the object is continuous, the distance between adjacent laser points should be very close. After visually identifying the vehicle, the laser point cloud in each detection frame is extracted. First, it is determined whether the point cloud data in the adjacent detection frame has the point cloud acted by the same laser beam; then it is determined whether the point cloud depth distance between different detection frames has a sudden change. Comprehensively determine whether there is a phenomenon of multiple detection frames identifying the same object, and use the point cloud data in the set to determine the final detection frame to reduce false detection.
[0051] 5. The present invention proposes that in vehicle detection technology, the point cloud set formed on the object needs to meet conditions, based on which a more reliable judgment can be made on the vehicle to reduce missed detections, and it can also be used to verify whether the vehicle point cloud data identified by image is accurate.
[0052] 6. The present invention starts from the perspective of improving detection accuracy and reducing time consumption, from raw data features to advanced feature data fusion, giving full play to the detection advantages of each sensor, learning from each other's strengths and weaknesses, to achieve the ultimate goal. In raw data fusion, noise reduction is the main purpose, removing the interference noise data that affects the detection results, and using the least amount of data and the lowest detection cost to achieve the purpose of identification and positioning; secondly, extracting object features from raw data, fusion of object features from two sensors, and improving object recognition accuracy through complementary detection.
[0053] The beneficial effects of the detection device of the present invention are the same as those of the above-mentioned vehicle detection method based on multi-information fusion of sensors, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 This is a flow chart of a vehicle detection method based on sensor multi-information fusion in Example 1 of the present invention.
[0055] Figure 2 Schematic diagram of the camera coordinate system, lidar coordinate system, and detection coordinate system in Example 1 of the present invention.
[0056] Figure 3 This is a schematic diagram of the camera acquisition viewing angle in Example 1 of the present invention.
[0057] Figure 4 Schematic diagram of the laser radar data processing area under the camera viewing angle constraint in Example 1 of the present invention.
[0058] Figure 5 Schematic diagram of determining a visual area of interest from a laser radar road area in Example 1 of the present invention.
[0059] Figure 6 Schematic diagram of a top view of the point cloud shape of a vehicle at different positions in Example 1 of the present invention. DETAILED DESCRIPTION
[0060] 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 used to limit the present invention.
[0061] Example 1
[0062] See also Figure 1-6 , this embodiment provides a vehicle detection method based on sensor multivariate information fusion, which first converts the coordinate system of each camera and laser radar into the detection coordinate system; then performs laser point cloud processing, uses the camera perspective to preliminarily locate the laser radar detection range, and uses wavelet analysis to extract the road boundary position information; the extracted road boundary is projected onto the image using the imaging principle to determine the vehicle passage area; then, the positioning function of the laser radar is used to determine the area of interest for identifying vehicles in the passage area; finally, the image recognition result is verified according to the point cloud structure and spatial distribution of the laser radar to eliminate false detection and missed detection in the image. In this embodiment, the vehicle detection method based on sensor multivariate information fusion is mainly implemented in the following steps, specifically steps S1-S4.
[0063] Step S1: Convert the vehicle's camera coordinate system and lidar coordinate system to the vehicle's detection coordinate system. Figure 2 , each sensor has its own coordinate system, and the detected data is also based on the coordinate system of each sensor. After the camera and laser radar are installed, the camera coordinate system and the laser radar coordinate system are unified to complete the sensor space synchronization. In this embodiment, each sensor of the vehicle has its own coordinate system, and the detected data is also based on the coordinate system of each sensor. After the camera and laser radar are installed, the camera coordinate system and the laser radar coordinate system need to be converted to the detection coordinate system. Define a point in space as P in the laser radar coordinate system l (x l ,y l ,z l ), which is P in the camera coordinate system c (x c ,y c ,z c ), which is P in the detection coordinate system p (x p ,y p ,z p ). The installation angles of the laser radar and camera are (θ l ,β l ,φ l ), (θ c ,β c ,φ c ). The positional relationship between the origins of the coordinate systems can be directly obtained by the vehicle, that is, the translation matrices from the laser radar coordinate system and the camera coordinate system to the detection coordinate system are B l and B c The transformation relationships from the laser radar coordinate system and the camera coordinate system to the detection coordinate system are:
[0064] P p =P l ·R l +B l
[0065] P p =P l ·R c +B c
[0066] Step S2: Please continue to refer to Figure 3First, the camera detection area is preliminarily determined based on the image vanishing line and the camera acquisition angle of view, and then the lidar point cloud data is screened. Finally, the mutation position of the lidar data return value is detected, the road boundary position information is extracted and projected onto the image, and the vehicle passage area is determined. Among them, the camera acquisition angle θ provides lateral constraints, and the image vanishing line composed of image vanishing points provides longitudinal constraints, thereby determining the camera's detection area. The return value of the radar acquisition data has independent distance and azimuth, and concentric circle data is returned on a flat ground with a large enough area. When there are objects such as vehicles above the ground within the radar detection range, multiple lidars will scan the same object at the same time, resulting in some point cloud aggregation. For lidar point cloud data, arc point clouds basically belong to the ground.
[0067] The emission angle of each laser radar is fixed. After the radar is installed and fixed, the point cloud data collected by the laser beam should have the same distance and receiving angle. Each laser beam corresponds to a unique emission angle. In this embodiment, when screening the laser radar point cloud data, if there are no obstacles on the ground, the coordinates of the laser beam of the laser radar located on the ground point cloud in the radar coordinate system are:
[0068]
[0069] In the formula, x l ,y l 、z l represents the coordinates of any laser beam, α l represents the search angle of any laser beam, ρ is the detection distance of the laser radar, and ω is the emission angle of the laser radar;
[0070] After the height is fixed, the point cloud coordinates of the laser beam of the laser radar are:
[0071]
[0072] In the formula, H represents the installation height of the laser radar;
[0073] Because there is an angle deviation after the radar is installed, according to the rotation matrix obtained in the previous analysis, the radar source data of the lidar needs to be rotated and corrected, and the transformed data is compared with the coordinate points obtained based on the height:
[0074]
[0075] Where P represents the coordinate point obtained based on the height.
[0076] The collected radar data is processed by the above formula, and the ground laser point cloud is proposed to obtain the effect.
[0077] In this embodiment, the point cloud data of the laser radar is used to segment the road, that is, the vehicle pass area is extracted according to the structural features of the road edge, and the preliminary segmentation result is segmented again using wavelet analysis to determine the vehicle pass area. When an obstacle appears within the radar detection range, the mutation position is detected; the laser point cloud data is extracted, and the Daubechies wavelet 6th order function is used to fit the distance data received by the laser radar, and at the location of the data mutation, its wavelet function can locate it more accurately, extract the boundary feature points, and then use the least squares method to fit a series of feature points to obtain the vehicle pass area.
[0078] Wavelet can locate the position where the frequency appears relatively accurately and is sensitive to data changes. When an obstacle appears in the radar detection range, its return value will mutate numerically due to the obstruction of the object, so the mutation position can be detected using the wavelet analysis method. Among them, the db6 wavelet can fit the distance data received by the radar very well, and its wavelet function can locate it relatively accurately at the position where the data mutates. Wavelet analysis is performed on the point cloud data returned by each laser beam, and the data of each laser point that can scan the edge of the ground is extracted. Two continuous curves are obtained by quadratic fitting to constrain the detection range within the vehicle's passable range.
[0079] S3: Please continue reading Figure 4 First, use the camera's camera acquisition angle to preliminarily determine the lidar detection range, that is, constrain the lidar detection angle within the camera's angle of view, determine the detection area for the image recognition vehicle, and then project the distance information of the object detected by the lidar onto the visual image, and use this as a base point to search for the area of interest for vehicle recognition on the image. The data return value of each point in the polar coordinate system in the lidar's detection range is:
[0080] P(ρ n ,α,ω n )n=1,2,3...
[0081] Among them, α is the search angle, n represents the beam value of the laser radar; ρ n is the detection distance of the beam value n, ω n The beam value is n for the emission angle; rotating around the z-axis, the range of the laser radar's beam search angle is (0,360), the camera's viewing angle is M, and the laser radar's search angle can be corrected to (-0.5M, 0.5M) to determine the detection area for the image recognition vehicle.
[0082] After the lidar detection area and the vehicle traffic area are preliminarily determined, the road edge is projected onto the image according to the camera imaging principle, and the raw data collected by the sensor is fused to obtain the area of interest of the image. When the object distance information is projected onto the visual image, the conversion relationship derivation method between the camera coordinate system and the image coordinate system includes the following steps:
[0083] P(X c ,Y c ,Z c ) is any point in the camera coordinate system. Camera imaging is based on the pinhole imaging principle, presenting objects in the real scene in the form of pictures. The position in the image is related to the position of the object in the camera coordinate system. The conversion relationship between the camera coordinate system and the image coordinate system is derived as follows: P(X c ,Y c ,Z c ) is any point in the camera coordinate system. According to the imaging principle, P(X c ,Y c ,Z c ) in the image coordinate system:
[0084]
[0085] Where f is the focal length of the camera; (0-xy) is the image coordinate system, and p(x,y) is P(x c ,y c ,z c ) is projected into this coordinate system.
[0086] The following is the conversion relationship from the image coordinate system to the pixel coordinate system. Since it is a two-dimensional coordinate system conversion on a unified plane, it can be achieved by simply translating the coordinate system. uv -uv) is the pixel coordinate system, and the conversion formula from the camera coordinate system to the pixel coordinate system is:
[0087]
[0088] The laser radar has its own independent coordinate system. The coordinate conversion formula from the laser radar coordinate system to the camera coordinate system is derived as follows:
[0089]
[0090] Using the positioning function of the laser radar, according to the coordinate conversion formula from point cloud to image, the distance information of the object detected by the laser radar is projected onto the visual image, and the area of interest for vehicle recognition on the image is determined based on this. Figure 5 shown.
[0091] S4: After determining the detection area of the vehicle in the image, according to the contour change direction of the point cloud information in the laser point cloud set, the contour features of the rear of the vehicle in the guidance image are extracted, and then the texture features are integrated to identify the vehicle in front, and then the image recognition result is verified according to the point cloud structure and spatial position of the laser radar.
[0092] In this embodiment, machine learning is applied to perform vehicle recognition detection on the determined vehicle detection area, by first locating the ground position of the left and right vehicles, then visually determining the vehicle detection area, and then gradually enlarging the search box, and identifying the vehicle by searching from both sides to the middle and from bottom to top. It is usually performed in a window row-by-row recognition manner, and the window size is adjusted to achieve the recognition of each possible vehicle. When this method is applied to an image, it is necessary to start from the upper left corner of the area of interest, and perform recognition and judgment row by row from left to right and from top to bottom. This method can be used to identify the vehicle in front, but because feature analysis and calculation are performed on each pixel in the area of interest, it is very time-consuming. The following improvement method is proposed:
[0093] Improve the vehicle identification method, use the laser radar detection results to locate the ground coordinates of the lower left corner of the vehicle (if the vehicle is on the right, locate the ground coordinates of the lower right corner). Based on this point, continuously adjust and expand the search area and adjust the size of the detection box, avoiding the identification and detection of the entire image, and realizing rapid identification of the vehicle.
[0094] When the same laser beam acts on an object, adjacent laser points should be very close. After visually identifying the vehicle, extract the laser point cloud in each detection frame. First, determine whether the point cloud data in the adjacent detection frame has a point cloud affected by the same laser beam; then determine whether the point cloud depth distance between different detection frames has a mutation. Comprehensively determine whether there is a phenomenon of multiple detection frames identifying the same object, and use the point cloud data in the set to determine the final detection frame to reduce false detection. This embodiment solves the false detection problem by eliminating the situation where multiple detection frames appear for the same target. After visually identifying the vehicle, extract the laser point cloud in each detection frame. First, determine whether the point cloud data in the adjacent detection frame has a point cloud affected by the same laser beam; then determine whether the point cloud depth distance between different detection frames has a mutation. Comprehensively determine whether there is a phenomenon of multiple detection frames identifying the same object, and use the point cloud data in the set to determine the final detection frame.
[0095] Define the space formed by the laser radar on the vehicle body as: Γ:U L,M,R (x, y, z), the point cloud formed by acting on the object needs to meet the following conditions:
[0096] (1)
[0097] (2) Figure 6 As shown in the figure, for the detected objects on the left and right sides, the spatial point cloud forms two mutually perpendicular planes, which are transitioned by arcs; the object directly in front is a plane with arcs at both ends. Based on this condition, a more reliable judgment of the vehicle can be made to reduce the phenomenon of missed detection, and it can also be used to verify whether the vehicle point cloud data obtained by image recognition is accurate.
[0098] In summary, compared with the existing vehicle collision prediction technology, the vehicle detection method based on sensor multi-information fusion in this embodiment has the following advantages:
[0099] 1. This embodiment proposes a technology for vehicle detection that uses the fusion of camera and laser radar to determine the detection range. For safe vehicle driving, much of the data collected by the 360° laser radar is redundant, which will bring additional burden to the processor and affect driving safety. The camera's perspective is equivalent to the driver's eyes, detecting objects on the road when the vehicle is driving, so the camera's perspective is used to give the laser radar a reasonable search range.
[0100] 2. This embodiment proposes that in vehicle detection technology, wavelet analysis is used to be sensitive to sudden changes in the return value of laser radar data. Wavelet analysis is performed on the point cloud data returned by each laser beam, and each laser point data that can scan the edge of the ground is extracted. Then, fitting is performed to constrain the detection range within the vehicle's traversable range.
[0101] 3. This embodiment proposes to improve the vehicle identification method and detection efficiency in the vehicle detection technology, and use the laser radar detection results to locate the ground coordinate position of the lower left corner of the vehicle (if the vehicle is on the right, locate the ground coordinate of the lower right corner). Based on this point, the search area is continuously adjusted and expanded, and the size of the detection box is adjusted to achieve rapid identification of the vehicle.
[0102] 4. This embodiment proposes that in vehicle detection technology, the same laser beam acts on an object. Because the surface of the object is continuous, the distance between adjacent laser points should be very close. After visually identifying the vehicle, the laser point cloud in each detection frame is extracted. First, it is determined whether the point cloud data in the adjacent detection frame has the point cloud acted by the same laser beam; then it is determined whether the point cloud depth distance between different detection frames has a sudden change. Comprehensively determine whether there is a phenomenon of multiple detection frames identifying the same object, and use the point cloud data in the set to determine the final detection frame to reduce false detection.
[0103] 5. This embodiment proposes that in vehicle detection technology, the point cloud set formed on the object needs to meet conditions, based on which a more reliable judgment can be made on the vehicle to reduce missed detections. It can also be used to verify whether the vehicle point cloud data identified by image is accurate.
[0104] 6. This embodiment starts from the perspective of improving detection accuracy and reducing time consumption, from raw data features to advanced feature data fusion, giving full play to the detection advantages of each sensor, learning from each other's strengths and weaknesses, to achieve the ultimate goal. In raw data fusion, noise reduction is the main purpose, removing the interference noise data that affects the detection results, and using the least amount of data and the lowest detection cost to achieve the purpose of identification and positioning; secondly, extracting object features from raw data, fusion of object features from two sensors, and improving object recognition accuracy through complementary detection.
[0105] Example 2
[0106] This embodiment provides a detection device, which applies the vehicle detection method based on sensor multi-information fusion in Example 1, and specifically includes a conversion module, an initial data processing module, a detection area fusion module, and a structural feature fusion recognition module.
[0107] The conversion module is used to convert the camera coordinate system and the laser radar coordinate system of the vehicle into the detection coordinate system of the vehicle. The initial data processing module is used to process the initial data of the camera and the laser radar; the initial data processing module first preliminarily determines the camera detection area based on the image vanishing line and the camera acquisition angle, then screens the laser radar point cloud data, and finally detects the mutation position of the laser radar data return value, extracts the road boundary position information and projects it onto the image to determine the vehicle passage area.
[0108] The detection area fusion module is used to first constrain the detection angle of the laser radar within the camera's viewing angle, determine the detection area for the image recognition vehicle, and then project the distance information of the object detected by the laser radar onto the visual image, using this as a base point to search for the area of interest for vehicle recognition on the image. The structural feature fusion recognition module process is to determine the detection area of the vehicle in the image, and then extract the contour features of the rear of the vehicle in the guidance image according to the contour change direction of the point cloud information in the laser point cloud set, and then fuse the texture features to identify the vehicle in front, and then verify the image recognition results according to the point cloud structure and spatial position of the laser radar.
[0109] Example 3
[0110] This embodiment provides a detection device, which applies the vehicle detection method based on sensor multi-information fusion in Example 1, and specifically includes a camera data processing module, a lidar data processing module, a feature analysis module and an identification and positioning module.
[0111] The camera data processing module is used to preliminarily determine the detection range of the laser radar, reduce the amount of data to be processed and the processing time. The laser radar data processing module extracts the ground point cloud according to the radar installation height, uses wavelet analysis to extract the road boundary, and obtains the vehicle traffic area. The detection area fusion module refers to using the camera capture angle of view to determine a reasonable search range for the laser radar, and then further segmenting its results, maximally constraining the detection area of the laser radar to the vehicle traffic area, and projecting the point cloud coordinates collected by the radar onto the image to obtain the vehicle identification area of interest. The feature analysis module verifies the image recognition results based on the point cloud structure and spatial distribution of the laser radar, eliminates false detection and missed detection in the image, and improves the recognition accuracy. The recognition and positioning module refers to using the recognition function of the camera and the positioning function of the laser radar to identify and locate the vehicle within the detection range.
[0112] Example 4
[0113] This embodiment provides a computer terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the vehicle detection method based on sensor multi-information fusion in Embodiment 1 are implemented.
[0114] The vehicle detection method based on sensor multi-information fusion can be applied in the form of software, such as being designed as an independently running program and installed on a computer terminal, which can be a computer, a smart phone, a control system, and other IoT devices. The vehicle detection method based on sensor multi-information fusion can also be designed as an embedded running program and installed on a computer terminal, such as a single chip microcomputer.
[0115] Example 5
[0116] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by the processor, the steps of the vehicle detection method based on sensor multi-information fusion in Embodiment 1 are implemented. When the vehicle detection method based on sensor multi-information fusion is applied, it can be applied in the form of software, such as a program designed to be independently run on a computer-readable storage medium. The computer-readable storage medium can be a USB flash drive, or a storage medium designed to exist in the form of a USB shield, or a program designed to start the entire method through an external trigger through a USB flash drive.
[0117] 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 sensor multivariate information fusion, characterized in that: It includes the following steps: S1: converting the camera coordinate system and the laser radar coordinate system of the vehicle into the detection coordinate system of the vehicle; S2: First, preliminarily determine the camera detection area according to the image vanishing line and the camera acquisition angle of view, then screen the laser radar point cloud data, and finally detect the mutation position of the laser radar data return value, extract the road boundary position information and project it onto the image to determine the vehicle passage area; S3: first constrain the detection angle of the laser radar within the camera viewing angle range to determine the detection area for the image recognition vehicle, then project the object distance information detected by the laser radar onto the visual image, and use this as a base point to search for the area of interest for vehicle recognition on the image; S4: After determining the detection area of the vehicle in the image, according to the contour change direction of the point cloud information in the laser point cloud set, the contour features of the rear of the vehicle in the guide image are extracted, and then the texture features are fused to identify the vehicle in front, and then the image recognition result is verified according to the point cloud structure and spatial position of the laser radar; Wherein, in step S3, the data return value of each point in the polar coordinate system within the detection range of the laser radar is: P(ρ n Oh, oh n )n=1,2,3... Wherein, α is the search angle, n represents the beam value of the laser radar; ρ n is the detection distance of the beam value n, ω n The emission angle of the beam value is n; rotating around the z axis, the range of the beam search angle of the laser radar is (0, 360), the viewing angle of the camera is M, and the search angle of the laser radar is corrected to (-0.5M, 0.5M); When projecting the object distance information onto the visual image, the method for deriving the transformation relationship between the camera coordinate system and the image coordinate system includes the following steps: P(X c , Y c , Z c ) is any point in the camera coordinate system, and P(X c , Y c , Z c ) in the image coordinate system: Where f is the focal length of the camera; (0-xy) is the image coordinate system, and p(x, y) is P(x c ,y c , z c ) projected into this coordinate system; Definition (0 uv -uv) is the pixel coordinate system, and the conversion formula from the camera coordinate system to the pixel coordinate system is: According to the conversion formula from the laser radar coordinate system to the camera coordinate system, the coordinate conversion formula from the point cloud to the image is derived as follows: According to the coordinate conversion formula from point cloud to image, the distance information of the object detected by the lidar is projected onto the visual image; B l and B c are the translation matrices from the laser radar coordinate system and the camera coordinate system to the detection coordinate system respectively. A point in space is P in the laser radar coordinate system. l , in the camera coordinate system is P c .
2. The vehicle detection method based on sensor multivariate information fusion as claimed in claim 1, characterized in that: Define a point in space as P in the laser radar coordinate system l (x l ,y l , z l ), which is P in the camera coordinate system c (x c ,y c , z c ), which is P in the detection coordinate system p (x p ,y p , z p ); The transformation relationships from the laser radar coordinate system and the camera coordinate system to the detection coordinate system are respectively: P p =P l ·R l +B l P p =P l ·R c +B c 。 3. The vehicle detection method based on sensor multi-information fusion as claimed in claim 2, characterized in that: When screening the laser radar point cloud data, if there are no obstacles on the ground, the coordinates of the laser beam of the laser radar located at the ground point cloud in the radar coordinate system are: In the formula, x l ,y l 、z l represents the coordinates of any laser beam, α l represents the search angle of any laser beam, ρ is the detection distance of the laser radar, and ω is the emission angle of the laser radar; After the height is fixed, the point cloud coordinates of the laser beam of the laser radar are: In the formula, H represents the installation height of the laser radar; The source data of the laser radar is rotated and corrected, and the transformed data is compared with the coordinate points obtained based on the height: Where P h Indicates the coordinate point obtained based on the altitude.
4. The vehicle detection method based on sensor multivariate information fusion as claimed in claim 3, characterized in that: The point cloud data of the laser radar is used to segment the road, that is, the vehicle pass area is extracted according to the structural characteristics of the road edge, and the preliminary segmentation result is secondary segmented using wavelet analysis to determine the vehicle passable area.
5. The vehicle detection method based on sensor multivariate information fusion as claimed in claim 4, characterized in that: When an obstacle appears within the radar detection range, the mutation position is detected; the laser point cloud data is extracted, and the Daubechies wavelet 6th-order function is used to fit the distance data received by the laser radar. At the location where the data mutates, its wavelet function can locate it more accurately, extract the boundary feature points, and then use the least squares method to fit a series of feature points to obtain the vehicle passage area.
6. The vehicle detection method based on sensor multi-information fusion as claimed in claim 5, characterized in that: Machine learning is applied to perform vehicle recognition detection in the determined vehicle detection area. The ground positions of the left and right vehicles are first located, and then the vehicle detection area is visually determined. The search box is gradually enlarged, and the vehicle is identified by searching from both sides to the middle and from bottom to top.
7. The vehicle detection method based on sensor multi-information fusion as claimed in claim 6, characterized in that: The space formed by the laser radar on the vehicle body is defined as: Γ:U L,M,R (x, y, z), the point cloud formed by acting on the object needs to meet the following conditions: (1) (2) For the detected objects on the left and right sides, the spatial point cloud forms two mutually perpendicular planes with a circular arc as the transition; the object directly in front is a plane with circular arcs at both ends.
8. A detection device using the vehicle detection method based on sensor multi-information fusion as described in any one of claims 1 to 7, characterized in that: It includes: A conversion module, which is used to convert the camera coordinate system and the laser radar coordinate system of the vehicle into the detection coordinate system of the vehicle; An initial data processing module is used to process the initial data of the camera and the laser radar; the initial data processing module first preliminarily determines the camera detection area according to the image vanishing line and the camera acquisition angle of view, then screens the laser radar point cloud data, and finally detects the sudden change position of the laser radar data return value, extracts the road boundary position information and projects it onto the image, and determines the vehicle passage area; A detection area fusion module is used to first constrain the detection angle of the laser radar within the camera's viewing angle to determine the detection area for the image recognition vehicle, and then project the object distance information detected by the laser radar onto the visual image, using this as a base point to search for the area of interest for vehicle recognition on the image; The structural feature fusion recognition module determines the detection area of the vehicle in the image, and then extracts the contour features of the rear of the vehicle in the guidance image according to the contour change direction of the point cloud information in the laser point cloud set, and then fuses the texture features to identify the vehicle in front, and then verifies the image recognition results according to the point cloud structure and spatial position of the laser radar.
