Monocular depth ranging method for pedestrians / vehicles on the side of intelligent vehicles based on absolute size

Through smart car monocular camera calibration and isomorphic matching feature point detection, the problem of lack of scale information in monocular depth ranging is solved, ranging accuracy and real-time performance are improved, and obstacle avoidance of smart cars and connected cars are supported. information exchange.

CN113834463BActive Publication Date: 2024-08-27CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111022920.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-01
Publication Date
2024-08-27
Estimated Expiration
2041-09-01

AI Technical Summary

Technical Problem

Existing monocular depth ranging methods based on machine learning use a large number of pixels in the entire image to measure point cloud depth in smart cars. They lack scale information in the real three-dimensional space, resulting in high algorithm complexity, high redundancy, and low real-time performance. .

Method used

By calibrating the monocular camera of the smart car, calculating the distortion coefficient, detecting isomorphic matching feature points, performing distortion correction and isomorphic matching verification on the image, constructing a depth ranging model, and estimating the absolute size and depth measurement of the smart car at speed. distance.

Benefits of technology

It improves the accuracy and real-time performance of monocular depth ranging, reduces computational redundancy and time complexity, provides accurate depth ranging of pedestrians/vehicles on the side of smart cars, and supports obstacle information interaction for smart connected cars.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113834463B
    Figure CN113834463B
Patent Text Reader

Abstract

The present invention discloses a monocular depth ranging method for pedestrians / vehicles on the side of an intelligent vehicle based on absolute size. The monocular camera embedded and installed directly below the left and right rearview mirrors of the intelligent vehicle collects the side image of the vehicle, constructs a stereoscopic geometric imaging model and a distortion correction model of the monocular camera time series, calibrates the monocular camera on the side of the intelligent vehicle and calculates the distortion coefficient, constructs a graph isomorphism model, performs detection and verification of isomorphic feature points of image data and stereo matching, constructs a depth ranging model, estimates the absolute size of the intelligent vehicle under speed measurement, and can calculate the depth and three-dimensional coordinate estimation value of the corresponding target area, thereby obtaining the monocular depth ranging of the pedestrians / vehicles on the side. The reasonable position where the high-level features of the target area appear is screened, thereby improving the accuracy of stereo matching. The computational redundancy and time complexity caused by the low-level image feature algorithm are reduced, the real-time performance is guaranteed, and the disadvantage of the monocular depth ranging lacking scale information is effectively overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of depth ranging of pedestrians / vehicles at the side of an intelligent vehicle, and in particular to a monocular depth ranging method of pedestrians / vehicles at the side of an intelligent vehicle based on absolute size. Background Art

[0002] With the rapid development of the new energy smart car industry and the technological transformation of the Internet of Everything in high-speed communication networks, path planning and obstacle avoidance of autonomous driving smart cars are basic requirements for ensuring driving safety. Among them, the most basic target depth ranging technology is widely used in smart electronic terminal fields such as navigation, monitoring, tracking, virtual reality, etc. Its technology integrates sensors, signal coding, image processing, computer vision, multi-view geometry, camera imaging models and other aspects. With the continuous development of intelligent network technology, advanced assisted driving of smart cars has produced automatic parking, adaptive cruise, pre-collision, lane departure warning, augmented reality head up display (ARHUD), transparent A-pillar and other technical applications closely related to target depth ranging technology.

[0003] At present, the monocular depth ranging method based on visual sensors is the mainstream direction of existing target detection and obstacle avoidance technologies. For example, depth estimation based on combined texture features, pre-model combined with machine learning unsupervised, weakly supervised, supervised deep neural network training models, etc. This type of method uses data learning methods with constraints and prior knowledge to make the measurement accuracy relatively high and the robustness good. However, the monocular depth ranging method based on machine learning uses a large number of pixels in the whole image to measure the point cloud depth, lacks the scale information of the real three-dimensional space, and makes the entire algorithm more complex, more redundant, and less real-time. Summary of the invention

[0004] The purpose of the present invention is to provide a monocular depth ranging method for pedestrians / vehicles on the side of an intelligent vehicle based on absolute size, aiming to solve the technical problems that the monocular depth ranging method based on machine learning in the prior art uses a large number of pixel points in the whole image for point cloud depth measurement, lacks the scale information of the real three-dimensional space, and makes the entire algorithm more complex, more redundant, and less real-time.

[0005] To achieve the above object, the present invention adopts a monocular depth ranging method for pedestrians / vehicles on the side of an intelligent vehicle based on absolute size, comprising the following steps:

[0006] Calibrate the monocular camera of the smart car and calculate the distortion coefficient;

[0007] Perform homogeneous matching feature point pair detection on the data collected by the monocular camera to obtain a homogeneous feature point pair set;

[0008] The absolute size of the smart car under speed measurement and the depth distance of the pedestrian / vehicle on the side of the smart car are estimated for the homogeneous feature point pairs.

[0009] The steps of calibrating the monocular camera of the smart car and calculating the distortion coefficient include:

[0010] A monocular camera is embedded and installed just below the left and right rearview mirrors of the smart car;

[0011] Prepare a checkerboard calibration plate;

[0012] The checkerboard calibration plate is placed within the visual range of the monocular camera, the checkerboard calibration plate is evenly moved, and the monocular camera is used to collect images containing the checkerboard calibration plate at different positions and distances to obtain calibration data;

[0013] Construct a geometric model of monocular camera imaging;

[0014] Construct the distortion model of the monocular camera optical lens based on the concept of aberration;

[0015] Calibration and distortion coefficient calculation.

[0016] Among them, in the steps of constructing the geometric model of monocular camera imaging:

[0017] Based on four coordinate systems, the world coordinate system, the camera coordinate system, the image physical coordinate system and the image pixel coordinate system, the coordinate system transformation relationship from the two-dimensional image to the three-dimensional world is established according to the pinhole model.

[0018] The steps of calibration and distortion coefficient calculation include:

[0019] Process each image of the collected calibration data, input the size of the calibration board chessboard, extract the corner points of the chessboard in the calibration board in the image, and calculate the coordinates of the corner points;

[0020] Choose to use two-parameter, shear, and barrel distortion correction;

[0021] Using Zhang Zhengyou's calibration method and the geometric model of monocular camera imaging, the camera parameters including the intrinsic matrix, extrinsic matrix, and distortion coefficients are calculated;

[0022] The difference between the reprojection error and the average error of each image is calculated to determine the outlier data. Based on the 3D position information of the calibration plate and the camera, the calibration data images with too large position differences are cleaned to delete the outlier data.

[0023] The camera parameters including the intrinsic parameter matrix, extrinsic parameter matrix and distortion coefficients are calculated by recalibration.

[0024] The steps of detecting and testing the isomorphic matching feature point pairs on the collected data of the monocular camera to obtain a set of isomorphic feature point pairs include:

[0025] Using the distortion coefficient and the distortion model, all images in the image / frame set to be processed are subjected to distortion correction, the image coordinates under the distortion nonlinear model are solved, and then the missing parts of the corrected image are filled using the bilinear interpolation method to obtain the final distortion-corrected image / frame set;

[0026] All images of the distortion-corrected image / frame set are normalized and compressed according to a certain pixel ratio to obtain the image / frame set required for subsequent calculations;

[0027] The image / frame sets required for subsequent calculations are arranged in time sequence to obtain the front and rear interval frame groups, and then the front and rear interval frame groups are converted into image / frame pairs in a post-feedback manner, and the initial image / frame pairs are set;

[0028] Using the improved ORB detection algorithm that combines FAST feature detection and BRIEF feature descriptor, N feature points of the initial image / frame pair are detected;

[0029] Use the trained Brute-force matcher to directly match the feature points to obtain the matching relationship set;

[0030] Perform random consistency check on the matching relationship set;

[0031] The data obtained after random consistency check is subjected to secondary matching check based on the graph isomorphism model to obtain a set of isomorphic feature point pairs.

[0032] The steps of estimating the absolute size of the isomorphic feature point pair set under the intelligent vehicle speed measurement and measuring the depth of the pedestrian / vehicle on the side of the intelligent vehicle include:

[0033] Perform region division on the current image / frame pair;

[0034] The smart car coordinate system is regarded as the current world coordinate system, and the motion displacement in the smart car coordinate system is calculated using the conversion relationship of the coordinate system, and the absolute size and depth ranging constraint model of the 3D world space point and its corresponding 2D feature point in the image pixel coordinate system are obtained; the feature points are verified by isomorphic feature matching of the corresponding area of ​​the image / frame, and the absolute size of the smart car motion offset is calculated;

[0035] Use homogeneous feature matching of the area corresponding to the image / frame to verify the feature points and calculate the depth distance of the smart car's motion offset;

[0036] K-means is used to cluster the depth distance of the motion offset of the smart car to obtain the target depth distance of the pedestrian / car on the side of the smart car in the current image / frame pair;

[0037] The timing of the current image / frame pair is judged. If the timing is not the last one, the next image / frame pair of the current image / frame pair is returned to the improved ORB detection algorithm that combines FAST feature detection and BRIEF feature descriptor to recalculate the step of detecting N feature points of the initial image / frame pair. Otherwise, the result is output directly.

[0038] The beneficial effects of the present invention are as follows: the side image of the vehicle is collected by the embedded monocular camera installed directly below the left and right rearview mirrors of the smart car, the stereoscopic geometric imaging model and distortion correction model of the monocular camera time series are constructed, the monocular camera on the side of the smart car is calibrated and the distortion coefficient is calculated, the image isomorphism model is constructed, the detection and verification of the isomorphic feature points of the image data and the stereo matching are performed, the depth ranging model is constructed, the absolute size under the speed measurement of the smart car is estimated, and the depth and three-dimensional coordinate estimation value of the corresponding target area can be calculated, so as to obtain the monocular depth ranging of the pedestrian / vehicle on the side of the vehicle. The reasonable position where the high-level features of the target area appear is screened, so as to improve the accuracy of stereo matching. The computational redundancy and time complexity caused by the low-level image feature algorithm are reduced, the real-time performance is guaranteed, the disadvantage of the monocular depth ranging lacking scale information is effectively overcome, and the obstacle avoidance of the smart car sideways, parking, and lane changing is made up, and the basis for the information interaction of obstacles of smart connected vehicles is provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 It is a flowchart of the steps of the monocular depth ranging method of a smart car side pedestrian / vehicle based on absolute size of the present invention.

[0041] Figure 2 It is a flow chart of the overall technical solution of the absolute size-based monocular depth ranging method for smart car side pedestrians / vehicles of the present invention.

[0042] Figure 3 It is a schematic diagram of the geometric model of the monocular camera imaging of the present invention.

[0043] Figure 4 It is a schematic diagram of matching feature point pairs of the present invention. DETAILED DESCRIPTION

[0044] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0045] See also Figures 1 to 4 The present invention provides a monocular depth ranging method for pedestrians / vehicles on the side of an intelligent vehicle based on absolute size, comprising the following steps:

[0046] S1: Calibrate the monocular camera of the smart car and calculate the distortion coefficient;

[0047] S2: Perform a detection test on the isomorphic matching feature point pairs of the collected data of the monocular camera to obtain a set of isomorphic feature point pairs;

[0048] S3: Estimate the absolute size of the smart car under speed measurement and measure the depth of pedestrians / vehicles on the side of the smart car for the homogeneous feature point pairs.

[0049] The steps of calibrating the monocular camera of the smart car and calculating the distortion coefficient include:

[0050] A monocular camera is embedded and installed just below the left and right rearview mirrors of the smart car;

[0051] Prepare a checkerboard calibration plate;

[0052] The checkerboard calibration plate is placed within the visual range of the smart car monocular camera, the checkerboard calibration plate is evenly moved, and the monocular camera is used to collect images containing the checkerboard calibration plate at different positions and distances to obtain calibration data;

[0053] Construct a geometric model of monocular camera imaging;

[0054] Construct the distortion model of the monocular camera optical lens based on the concept of aberration;

[0055] Calibration and distortion coefficient calculation.

[0056] Among them, in the steps of constructing the geometric model of monocular camera imaging:

[0057] Based on four coordinate systems, the world coordinate system, the camera coordinate system, the image physical coordinate system and the image pixel coordinate system, the coordinate system transformation relationship from the two-dimensional image to the three-dimensional world is established according to the pinhole model.

[0058] The steps of calibration and distortion coefficient calculation include:

[0059] Process each image of the collected calibration data, input the size of the calibration board chessboard, extract the corner points of the chessboard in the calibration board in the image, and calculate the coordinates of the corner points;

[0060] Choose to use two-parameter, shear, and barrel distortion correction;

[0061] Using Zhang Zhengyou's calibration method and the geometric model of monocular camera imaging, the camera parameters including the intrinsic matrix, extrinsic matrix, and distortion coefficients are calculated;

[0062] The difference between the reprojection error and the average error of each image is calculated to determine the outlier data. Based on the 3D position information of the calibration plate and the camera, the calibration data images with too large position differences are cleaned to delete the outlier data.

[0063] The camera parameters including the intrinsic parameter matrix, extrinsic parameter matrix and distortion coefficients are calculated by recalibration.

[0064] Specifically, a monocular camera sensor for a smart car is installed, and a RER-USB is embedded just below the left and right rearview mirrors of the smart car. The camera with a resolution of 1280×1090 (pixel) and a viewing angle of 70 degrees remains unchanged to ensure that data collection during driving of the smart car can capture images containing the ground.

[0065] Prepare an 8×7 black and white checkerboard calibration board, where the side length of the checkerboard is a square of 100 cm.

[0066] Place the prepared checkerboard calibration plate within the visual range of the smart car's monocular camera, move the calibration plate evenly to ensure that the calibration plate does not shake after each movement, and use the monocular camera to collect 30 images containing the checkerboard calibration plate at different orientations and distances.

[0067] Based on four coordinate systems, the world coordinate system O W , camera coordinate system O C , image physical coordinate system O r And the image pixel coordinate system O, according to the pinhole model, establish the coordinate system transformation relationship from the two-dimensional image to the three-dimensional world, that is, the geometric model of monocular camera imaging:

[0068]

[0069] Z C is the depth distance in the image coordinate system, (u, v) is the pixel coordinate of the two-dimensional image, (u0, v0) is the coordinate of the origin of the image physical coordinate system in the pixel coordinate system, (d x ,d y ) is the physical size of the pixel, (X W ,Y W ,Z W) is a three-dimensional point in the world coordinate system, f is the focal length of the camera, R and t are the rotation matrix and translation vector respectively. At the same time, the nine parameters in R can be converted to each other using the Rogrigius transformation, K is the camera intrinsic parameter, and M is the camera extrinsic parameter.

[0070] The distortion model of the monocular camera optical lens is constructed based on the concept of aberration:

[0071]

[0072] (u distortion ,v distortion ) is the coordinate after pixel shift, RAD is the radial distortion model, k1, k2, k3 are radial distortion parameters, TAN is the tangential distortion model, p1, p2 are tangential distortion parameters, and r is the distance between the pixel coordinate of the two-dimensional image and the origin of the coordinate system.

[0073] The captured calibration image is calibrated and distortion corrected through MATLAB TOOLBOX CAMERA CALIBRATION:

[0074] Process each image of the collected calibration data, input the size of the calibration board checkerboard, extract the corner points of the checkerboard in the calibration board in the image, and calculate the coordinates of the corner points;

[0075] Choose to use two-parameter, shear, and barrel distortion correction;

[0076] Using Zhang Zhengyou's calibration method and the geometric model of monocular camera imaging, the camera parameters including the intrinsic matrix, extrinsic matrix, and distortion coefficients are calculated;

[0077] The difference between the reprojection error and the average error of each image is calculated to determine the outlier data. According to the 3D position information of the calibration plate and the camera, the n calibration data images with too large position differences are cleaned to delete the outlier data.

[0078] The camera parameters including the intrinsic parameter matrix, extrinsic parameter matrix and distortion coefficients are calculated by recalibration.

[0079] The steps of detecting and testing the isomorphic matching feature point pairs on the collected data of the monocular camera to obtain a set of isomorphic feature point pairs include:

[0080] Using the distortion coefficient and the distortion model, all images in the image / frame set to be processed are subjected to distortion correction, the image coordinates under the distortion nonlinear model are solved, and then the missing parts of the corrected image are filled using the bilinear interpolation method to obtain the final distortion-corrected image / frame set;

[0081] All images of the distortion-corrected image / frame set are normalized and compressed according to a certain pixel ratio to obtain the image / frame set required for subsequent calculations;

[0082] The image / frame sets required for subsequent calculations are arranged in time sequence to obtain the front and rear interval frame groups, and then the front and rear interval frame groups are converted into image / frame pairs in a post-feedback manner, and the initial image / frame pairs are set;

[0083] Using the improved ORB detection algorithm that combines FAST feature detection and BRIEF feature descriptor, N feature points of the initial image / frame pair are detected;

[0084] Use the trained Brute-force matcher to directly match the feature points to obtain the matching relationship set;

[0085] Perform random consistency check on the matching relationship set;

[0086] The data obtained after random consistency check is subjected to secondary matching check based on the graph isomorphism model to obtain a set of isomorphic feature point pairs.

[0087] Specifically, obtain data collected by a monocular camera of a smart car driving in real time, with a frame rate of 25fps. The video image is extracted frame by frame or depth ranging is performed frame by frame according to actual needs. For example, the image / frame set I1 to be processed is extracted at intervals of 10 frames, and the detection and inspection of isomorphic matching feature point pairs is performed. Using the distortion coefficient of step S1 and based on the distortion model of step S1, all images of the image / frame set I1 to be processed are subjected to distortion correction, and the image coordinates under the distortion nonlinear model are solved. Then, the missing parts of the corrected image are filled using the bilinear interpolation method to obtain the final distortion-corrected image / frame set I2;

[0088] All images of the rectified image / frame set are normalized and compressed according to a certain pixel ratio to obtain the image / frame set I0 required for subsequent calculations, so as to improve the subsequent image processing time and running speed under the premise of ensuring that the amount of content information in the image is not affected. Here, for example, 800×600 (pixel);

[0089] The image / frame set I0 is arranged in time sequence and the spaced frames are paired, and then formed into (f current ,f previous ) i ,i=1,2,3,4...,I ​​image / frame pairs, initialize i=1, if there are any unpaired images left, they will be truncated.

[0090] The improved ORB detection algorithm combining FAST feature detection and BRIEF feature descriptor is used to detect the i-th image pair, i.e. (f current ,f previous ) i The N feature points (p current (u,v),p previous (u,v)i .

[0091] The feature point set of the template image (p current (u,v) i As a reference set Set ref , the feature point set of the target image (p previous (u,v) i As a query set inq , use the trained Brute-force matcher for direct matching:

[0092] Calculate the reference set Set in sequence ref The jth point in Set ref (j) (initialize j = 1) and query set Set inq The Hamming distance of the binary descriptors corresponding to the feature point pairs of all full permutations and combinations of the feature points in ;

[0093] If the query set nth feature point Set inq (n) and the reference set feature points Set ref The Hamming distance of (j) is less than the distance threshold min , then select the point Set inq (n) is reserved for matching feature points;

[0094] Cross-check, if the query set nth feature point Set inq (n) to the reference set feature point Set ref The Hamming distance of (j) is less than the distance threshold min , then the matching feature point pair is returned as retained;

[0095] Update Set ref , Set inq And the matching relationship set match(ref,inq), update j=j+1;

[0096] If j=N, the calculation ends and the step is jumped out, otherwise it returns to the first step.

[0097] Perform a random consistency check on the updated matching relationship set match(ref, inq) data, retain the inliers, that is, the correct data described by the model, remove the outliers, that is, the abnormal data that deviates from the model, and update Set ref , Set inq and match(ref,inq), effectively filtering out mismatched point pairs;

[0098] Yes (p current (u,v),p previous (u,v)i = {Set ref , Set inq , match(ref,inq)} performs secondary matching verification based on the graph isomorphism model:

[0099] Because Set ref Point Set and Set inq There is a perspective transformation (i.e., homomorphic transformation) between point sets, that is, any three matching feature point pairs (AA′, BB′, CC′) in match(ref, inq) form a corresponding Set ref and Set inq A pair of matching triangles on (T(A,B,C)-T′(A′,B′,C′)) is isomorphic if T(A,B,C) and T′(A′,B′,C′) undergo translation and rotation transformations, and the distance and relative position between A,B,C and A′,B′,C′ remain unchanged. Then d AB =d′ A′B′ &d AC =d′ A′C′ &d BC =d′ B′C′ , three-dimensional vector and The same direction,

[0100] In Set ref Select three points A(u1,v1), B2(u2,v2), C(u3,v3) from the point set, mark 1, and get the corresponding Set in turn according to the match(ref,inq) set. inq The three points A′(u1′,v1′), B′(u2′,v2′), and C′(u3′,v3′) of the point set satisfy the following constraints according to the graph isomorphism model to select the isomorphic matching feature point pair set Get the updated Set′ ref , Set′ inq :

[0101]

[0102] In Set ref In the point set, select a feature point D(u4,v4), and get the corresponding Set according to the match(ref,inq) set. inq Point D′(u4,v4) of the point set; in Set′ ref In the point set, two feature points A(u1,v1) and B2(u2,v2) are selected, according to Set, get the corresponding Set inqTwo points A′(u1′,v1′) and B′(u2′,v2′) in the point set; according to the graph isomorphism model, the following constraints are met to verify and update the isomorphic matching point pair set Get the updated Set′ ref , Set′ inq :

[0103]

[0104] If Set ref If the feature point marked as 0 in the point set is empty, that is, all matching feature points have been verified, then the matching verification is completed and the process is exited; otherwise, the process is returned to the second step (in Set ref Select three points A(u1,v1), B2(u2,v2), C(u3,v3) from the point set, mark 1, and get the corresponding Set in turn according to the match(ref,inq) set. inq The three points A′(u1′,v1′), B′(u2′,v2′), and C′(u3′,v3′) of the point set satisfy the following constraints according to the graph isomorphism model to select the isomorphic matching feature point pair set Get the updated Set′ ref , Set′ inq ).

[0105] The steps of estimating the absolute size of the isomorphic feature point pair set under the intelligent vehicle speed measurement and measuring the depth of the pedestrian / vehicle on the side of the intelligent vehicle include:

[0106] Perform region division on the current image / frame pair;

[0107] The smart car coordinate system is regarded as the current world coordinate system, and the motion displacement in the smart car coordinate system is calculated using the conversion relationship of the coordinate system, and the absolute size and depth ranging constraint model of the three-dimensional world space point and its corresponding two-dimensional feature point in the image pixel coordinate system are obtained;

[0108] Use homogeneous feature matching of corresponding areas of the image / frame to verify feature points and calculate the absolute size of the motion offset of the smart car;

[0109] Use homogeneous feature matching of the area corresponding to the image / frame to verify the feature points and calculate the depth distance of the smart car's motion offset;

[0110] K-means is used to cluster the depth distance of the motion offset of the smart car to obtain the target depth distance of the pedestrian / car on the side of the smart car in the current image / frame pair;

[0111] The timing of the current image / frame pair is judged. If the timing is not the last one, the next image / frame pair of the current image / frame pair is returned to the improved ORB detection algorithm that combines FAST feature detection and BRIEF feature descriptor to recalculate the step of detecting N feature points of the initial image / frame pair. Otherwise, the result is output directly.

[0112] Specifically, for the current i-th image / frame pair (f current ,f previous ) i , f current The fprevious image is divided into three equal parts according to the v coordinate axis in the pixel coordinate system, marked as R1, R2, and R3, that is, p current (u2,v2),p previous (u1,v1) is divided into three intervals from small to large according to the v value:

[0113]

[0114] The vehicle coordinate system is regarded as the current world coordinate system, through (f current ,f previous ) i The isomorphic features of the R1 and R1′ regions corresponding to the image pair are matched to verify the feature points. The motion displacement in the vehicle coordinate system is calculated using the conversion relationship of the coordinate system, that is, the absolute size of the near-ground area (equal to or close to the ground) is obtained. The depth ranging model is obtained by deducing the geometric model of the monocular camera imaging in step S1:

[0115] The geometric model of the monocular camera imaging in step S1 is known:

[0116]

[0117] in That is, the depth distance of the target object where the point P in the three-dimensional world space is located. Homogeneous coordinates of points in space;

[0118] Rewrite the geometric model into the camera perspective transformation equation calculated by depth of feature points:

[0119]

[0120] The two-dimensional point (u(t), v(t)) in the image pixel coordinate system of the feature point set to be measured at the current time t T and its 3D world space point (X(t), Y(t), Z(t)) T Substitute it into the camera perspective transformation equation and take the derivative with respect to t to obtain the component displacement deviation corresponding to each dimension:

[0121]

[0122] In the local range, it is assumed that the vehicle moves in the XOY plane, so

[0123] Assume that the depth range of the spatial point P(X(t), Y(t), Z(t)) is Then the component displacement of each dimension in the above formula is:

[0124]

[0125] The displacement is the absolute size and depth ranging model of the three-dimensional world space point and its corresponding two-dimensional feature point in the image pixel coordinate system.

[0126] (f current ,f previous ) i The isomorphic features of the R1 and R1′ regions of the image pair are matched to verify the feature points, and the absolute size of the motion offset of the smart car is calculated:

[0127] Knowing that the homogeneous features of the R1, R1′ region are matched to verify the feature point p current (u2 1 ,v2 1 ),p previous (u1 1 ,v1 1 ), Z = 0, then the motion offset component of the smart car in the u and v directions in the image pixel coordinate system at the time interval t is:

[0128]

[0129] Substituting u and v into the monocular camera geometry model in the depth ranging model yields:

[0130]

[0131] Process the above formula according to the steps of the depth ranging model to obtain the component displacement deviation and absolute size corresponding to each dimension:

[0132]

[0133] Since the target and the vehicle are in relative motion, the displacement deviation is the opposite quantity, that is, the displacement deviation of the target point is the opposite quantity of the result obtained according to the above formula: That is, the instantaneous motion velocity vector of the smart car. According to the depth ranging model, the absolute size step of the smart car motion offset is calculated (f current ,f previous ) i (f current ,fprevious ) i The homogeneous feature matching verification feature point p of the R3, R3′ region corresponding to the image pair current (u2 3 ,v2 3 ), p previous (u1 3 ,v1 3 ) Calculate the components of the depth distance in two directions under the motion offset of the smart car:

[0134]

[0135] Finally, the feature point, that is, the depth distance of the target point under the two norm is obtained:

[0136] d(P)=||d u (P),d v (P)||2

[0137] Using k-means to match the isomorphic features of the R3, R3′ region obtained by the above formula, the depth distance clustering of the feature points is verified to obtain the target class points and background class points, and the current (f current ,f previous ) i Target depth measurement d(P) of pedestrians / cars on the side of the smart car i .

[0138] If i=I, that is, the image / frame pair has been processed, the calculation is terminated. Otherwise, let i=i+1 and jump to S2 to use the improved ORB detection algorithm combined with FAST feature detection and BRIEF feature descriptor to detect the N feature points of the initial image / frame pair, that is, to use the improved ORB detection algorithm combined with FAST feature detection and BRIEF feature descriptor to detect the i-th image pair.

[0139] The present invention collects the side image of the vehicle through the embedded monocular camera installed directly below the left and right rearview mirrors of the smart car, constructs a stereoscopic geometric imaging model and a distortion correction model of the monocular camera time series, calibrates the monocular camera on the side of the smart car and calculates the distortion coefficient, constructs a graph isomorphism model, performs detection and verification of isomorphic feature points of image data and stereo matching, constructs a depth ranging model, estimates the absolute size of the smart car under the speed measurement, and can calculate the depth and three-dimensional coordinate estimation value of the corresponding target area, thereby obtaining the monocular depth ranging of the pedestrian / vehicle on the side of the vehicle. The reasonable position where the high-level features of the target area appear is screened, thereby improving the accuracy of stereo matching. The computational redundancy and time complexity caused by the low-level image feature algorithm are reduced, the real-time performance is guaranteed, the disadvantage of the monocular depth ranging lacking scale information is effectively overcome, and the obstacle avoidance of the smart car when meeting, parking, and changing lanes on the side is made up, and the basis for the information interaction of obstacles of intelligent networked vehicles is provided.

[0140] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A monocular depth ranging method for pedestrians or vehicles on the side of an intelligent vehicle based on absolute size, characterized in that: The steps include: S1: Calibrate the monocular camera on the side of the smart car and calculate the distortion coefficient; S2: Perform a detection test on the isomorphic matching feature point pairs of the collected data of the monocular camera to obtain a set of isomorphic feature point pairs; S3: Estimation of the absolute size of the smart car under speed measurement and depth measurement of pedestrians or vehicles on the side of the smart car for the homogeneous feature point pair set; The steps of detecting and testing the isomorphic matching feature point pairs on the collected data of the monocular camera to obtain the isomorphic feature point pair set include: Using the distortion coefficient and the distortion model, all images in the image / frame set to be processed are subjected to distortion correction, the image coordinates under the distortion nonlinear model are solved, and then the missing parts of the corrected image are filled using the bilinear interpolation method to obtain the final distortion-corrected image / frame set; All images of the distortion-corrected image / frame set are normalized and compressed according to a certain pixel ratio to obtain the image / frame set required for subsequent calculations; The image / frame sets required for subsequent calculations are arranged in time sequence to obtain the front and rear interval frame groups, and then the front and rear interval frame groups are converted into image / frame pairs in a post-feedback manner, and the initial image / frame pairs are set; Using the improved ORB detection algorithm that combines FAST feature detection and BRIEF feature descriptor, N feature points of the initial image / frame pair are detected; Use the trained Brute-force matcher to directly match the feature points to obtain the matching relationship set; Perform random consistency check on the matching relationship set; The data obtained after random consistency check is subjected to secondary matching check based on graph isomorphism model to obtain a set of isomorphic feature point pairs; The steps of estimating the absolute size of the isomorphic feature point pair set under the intelligent vehicle speed measurement and measuring the depth of the pedestrian or vehicle on the side of the intelligent vehicle include: Perform region division on the current image / frame pair; The smart car coordinate system is regarded as the current world coordinate system, and the motion displacement in the smart car coordinate system is calculated using the conversion relationship of the coordinate system, and the absolute size and depth ranging constraint model of the 3D world space point and its corresponding 2D feature point in the image pixel coordinate system are obtained; the feature points are verified by isomorphic feature matching of the corresponding area of ​​the image / frame, and the absolute size of the smart car motion offset is calculated; Use homogeneous feature matching of the area corresponding to the image / frame to verify the feature points and calculate the depth distance of the smart car's motion offset; K-means is used to cluster the depth distance of the motion offset of the smart car to obtain the target depth distance of the pedestrian or car on the side of the smart car in the current image / frame pair; The timing of the current image / frame pair is judged. If the timing is not the last one, the next image / frame pair of the current image / frame pair is returned to the improved ORB detection algorithm that combines FAST feature detection and BRIEF feature descriptor to recalculate the step of detecting N feature points of the initial image / frame pair. Otherwise, the result is output directly.

2. The method for measuring the depth of a pedestrian or vehicle on the side of an intelligent vehicle based on absolute size according to claim 1, characterized in that: The steps of calibrating the monocular camera of the smart car and calculating the distortion coefficient include: A monocular camera is embedded and installed just below the left and right rearview mirrors of the smart car; Prepare a checkerboard calibration plate; The checkerboard calibration plate is placed within the visual range of the monocular camera, the checkerboard calibration plate is evenly moved, and the monocular camera is used to collect images containing the checkerboard calibration plate at different positions and distances to obtain calibration data; Construct a geometric model of monocular camera imaging; Construct the distortion model of the monocular camera optical lens based on the aberration concept; Calibration and distortion coefficient calculation.

3. The method for monocular depth ranging of a pedestrian or vehicle on the side of an intelligent vehicle based on absolute size as claimed in claim 2, characterized in that: The steps to construct the geometric model of monocular camera imaging are: Based on four coordinate systems, the world coordinate system, the camera coordinate system, the image physical coordinate system and the image pixel coordinate system, the coordinate system transformation relationship from the two-dimensional image to the three-dimensional world is established according to the pinhole model.

4. The method for monocular depth ranging of pedestrians or vehicles on the side of an intelligent vehicle based on absolute size as claimed in claim 2, characterized in that: The steps for calibration and distortion coefficient calculation include: Process each image of the collected calibration data, input the size of the calibration board checkerboard, extract the corner points of the checkerboard in the calibration board in the image, and calculate the coordinates of the corner points; Choose to use two-parameter, shear, and barrel distortion correction; Using Zhang Zhengyou's calibration method and the geometric model of monocular camera imaging, the camera parameters including the intrinsic matrix, extrinsic matrix, and distortion coefficients are calculated; The difference between the reprojection error and the average error of each image is calculated to determine the outlier data. Based on the 3D position information of the calibration plate and the camera, the calibration data images with too large position differences are cleaned to delete the outlier data. The camera parameters including the intrinsic parameter matrix, extrinsic parameter matrix and distortion coefficients are calculated by recalibration.