A parameter calibration method and related device

By using N non-coplanar calibration plates, images, and point cloud data, the external parameters of the lidar and camera are automatically calculated, which solves the problem of complex manual participation in the calibration process in the existing technology, realizes automated calibration, and improves efficiency and accuracy.

CN111815716BActive Publication Date: 2024-09-13BEIJING AIBI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010668397.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-13
Publication Date
2024-09-13
Estimated Expiration
2040-07-13

AI Technical Summary

Technical Problem

In the existing technology, the external parameter calibration process of calibrating lidar and cameras requires manual participation. The operation is complex, time-consuming and labor-intensive, and there is a lack of automated solutions.

Method used

Use N non-coplanar calibration plates, use camera images and lidar point cloud data to establish plane equations in the coordinate systems of the camera and lidar, and use closed-form solutions and nonlinear optimization methods to automatically calculate the distance between lidar and camera of external reference.

Benefits of technology

It realizes automated external parameter calibration between lidar and camera, saves labor costs, improves calibration efficiency and accuracy, and avoids the complexity of manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111815716B
    Figure CN111815716B
Patent Text Reader

Abstract

The present application discloses a parameter calibration method and related devices. The method includes: obtaining an image captured by a camera on a calibration component and point cloud data detected by a laser radar on the calibration component, the calibration component includes N non-coplanar calibration plates, N is an integer greater than 2; obtaining a first plane equation of each calibration plate in the coordinate system of the camera according to the image, and obtaining a second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data; using the first plane equation and the second plane equation of each calibration plate in the calibration component to obtain the external parameters between the laser radar and the camera. The present application can automatically realize the external parameter calibration by using plane constraints through N non-coplanar calibration plates. Since no manual intervention is required during the calibration process, it saves labor costs and is convenient and fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of instrument and equipment calibration, and in particular to a parameter calibration method and related devices. Background Art

[0002] LiDAR is usually used for positioning and mapping in larger scenes. It can obtain sparse three-dimensional point clouds within the scanning range. Because each sensor has its own limitations, multi-sensor fusion methods are usually used for positioning and mapping in practical applications.

[0003] For example, images collected by cameras can be used for positioning in scenes with a simple spatial structure but with visual textures, while lidar can be used for positioning in scenes without visual textures but with obvious three-dimensional structures. For another example, by identifying pedestrians in an image and then projecting the lidar point cloud onto the image, pedestrians can be removed from the lidar point cloud, resulting in a cleaner point cloud stitching result.

[0004] However, a prerequisite for using the above-mentioned multi-type sensor fusion method is to know the external parameters of the lidar and camera in a module (or system) that is bound to the lidar and camera. Due to assembly errors and module packaging, it is currently impossible to obtain accurate external parameters through direct measurement or from design drawings. Under normal circumstances, the observation matching method is generally used to match the observations of the lidar and camera in some way, and then calculate the external parameters. This process is called external parameter calibration.

[0005] There are many solutions for calibrating LiDAR and cameras, but the calibration process requires manual participation and is complex. With the widespread use of LiDAR and cameras, there is an urgent need to provide an automated external parameter calibration solution. Summary of the invention

[0006] Based on the above problems, the present application provides a parameter calibration method and related devices to automatically realize the external parameter calibration between the lidar and the camera.

[0007] The embodiments of the present application disclose the following technical solutions:

[0008] In a first aspect, the present application provides a parameter calibration method, comprising:

[0009] Obtaining an image captured by a camera of a calibration component and point cloud data detected by a laser radar of the calibration component; the calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2;

[0010] Obtaining a first plane equation of each calibration plate in the coordinate system of the camera according to the image, and obtaining a second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data;

[0011] The external parameters between the laser radar and the camera are obtained by using the first plane equation and the second plane equation of each calibration plate in the calibration component.

[0012] Optionally, each calibration plate includes a preset pattern;

[0013] The step of obtaining a first plane equation of each calibration plate in the coordinate system of the camera according to the image specifically includes:

[0014] Detecting a preset pattern on each calibration plate from the image to obtain measured feature information of the preset pattern;

[0015] According to the intrinsic parameters of the camera, the known feature information of the preset pattern and the measured feature information of the preset pattern, the pose information of the camera in the spatial coordinate system where the calibration component is located is obtained; the pose information includes: rotation information and displacement information;

[0016] According to the posture information and the plane expression of each calibration plate in the spatial coordinate system, a first plane equation of each calibration plate in the coordinate system of the camera is obtained.

[0017] Optionally, obtaining the second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data specifically includes:

[0018] Segmenting a point cloud set corresponding to each calibration plate from the point cloud data;

[0019] The plane where each point cloud set is located is fitted to obtain the second plane equation of each calibration plate in the coordinate system of the laser radar.

[0020] Optionally, the N calibration plates are made of different materials, and the N calibration plates respectively have unique corresponding identification information and reflection values;

[0021] The step of segmenting the point cloud set corresponding to each calibration plate from the point cloud data specifically includes:

[0022] Segmenting N point cloud sets from the point cloud data;

[0023] Calculate respectively according to the N point cloud sets to obtain N average reflection values;

[0024] According to the N average reflection values, identification information corresponding to the N point cloud sets is determined respectively to determine the point cloud set corresponding to each calibration plate.

[0025] Optionally, obtaining the external parameters between the laser radar and the camera by using the first plane equation and the second plane equation of each calibration plate in the calibration component specifically includes:

[0026] Solving the first plane equation and the second plane equation of each calibration plate by a closed-form solution method, and using the solution result as the initial value of the external parameter between the laser radar and the camera;

[0027] Nonlinear optimization is performed on the initial value of the extrinsic parameter to obtain the extrinsic parameter between the laser radar and the camera after optimization.

[0028] Optionally, the initial value of the external parameter includes: a first rotation matrix and a first translation vector of the laser radar relative to the camera;

[0029] The method of solving the first plane equation and the second plane equation of each calibration plate by a closed-form solution method, and using the solution result as the initial value of the external parameter between the laser radar and the camera, specifically includes:

[0030] According to the first plane parameters and the second plane parameters corresponding to the N calibration plates respectively, the first rotation matrix is ​​obtained by using the singular value decomposition (SVD) method; the first plane parameters are extracted according to the first plane equation of the calibration plate, and the second plane parameters are extracted according to the second plane equation of the calibration plate;

[0031] Constructing a linear equation system using first plane parameters and second plane parameters respectively corresponding to the N calibration plates and the first rotation matrix;

[0032] The first translation vector is obtained by solving the linear equations.

[0033] Optionally, performing nonlinear optimization on the initial value of the extrinsic parameter to obtain the optimized extrinsic parameter between the laser radar and the camera specifically includes:

[0034] Using the initial value of the external parameter to transform each point cloud set into the coordinate system of the camera, to obtain a transformed point set;

[0035] Obtaining the sum of the distances from each point in the set of all transformed points in the coordinate system of the camera to the corresponding calibration plate;

[0036] Nonlinear optimization is performed using the sum of the distances as a cost function to obtain an optimized second rotation matrix and a second translation vector of the laser radar relative to the camera.

[0037] Optionally, the preset pattern includes characteristic graphics arranged according to preset specifications, such as a QR code.

[0038] In a second aspect, the present application provides a parameter calibration device, the device comprising:

[0039] A data acquisition module, used to obtain an image captured by a camera on a calibration component and point cloud data detected by a laser radar on the calibration component; the calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2;

[0040] An equation building module, used to obtain a first plane equation of each calibration plate in the coordinate system of the camera according to the image, and to obtain a second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data;

[0041] The parameter solving module is used to obtain the external parameters between the laser radar and the camera by using the first plane equation and the second plane equation of each calibration plate in the calibration component.

[0042] The device can automatically realize external parameter calibration by using N non-coplanar calibration plates and plane constraints. Since no manual intervention is required during the calibration process, it saves labor costs and is convenient and fast.

[0043] Optionally, each calibration plate includes a preset pattern. As an example, the preset pattern includes a characteristic pattern arranged according to a preset specification. The characteristic pattern includes: a QR code.

[0044] Optionally, the equation building module comprises a first building unit, the first building unit comprising:

[0045] A measured feature information acquisition subunit, used to detect the preset pattern on each calibration plate from the image to obtain the measured feature information of the preset pattern;

[0046] A posture information acquisition subunit, used to obtain the posture information of the camera in the space coordinate system where the calibration component is located according to the internal parameters of the camera, the known feature information of the preset pattern and the measured feature information of the preset pattern; the posture information includes: rotation information and displacement information;

[0047] The first equation construction subunit is used to obtain the first plane equation of each calibration plate in the coordinate system of the camera according to the posture information and the plane expression of each calibration plate in the spatial coordinate system.

[0048] Optionally, the equation building module further includes a second building unit, the second building unit including:

[0049] A point cloud segmentation subunit, used to segment a point cloud set corresponding to each calibration plate from the point cloud data;

[0050] The plane fitting subunit is used to fit the plane where each point cloud set is located to obtain the second plane equation of each calibration plate in the coordinate system of the laser radar.

[0051] Optionally, the N calibration plates are made of different materials, and the N calibration plates respectively have unique corresponding identification information and reflection values;

[0052] The point cloud segmentation subunit is specifically used to segment N point cloud sets from the point cloud data; calculate respectively according to the N point cloud sets to obtain N average reflection values; determine the identification information corresponding to the N point cloud sets respectively according to the N average reflection values, so as to determine the point cloud set corresponding to each calibration plate.

[0053] Optionally, the parameter solving module includes:

[0054] A parameter initial value solving unit, used for solving the first plane equation and the second plane equation of each calibration plate by a closed-form solution, and using the solution result as the initial value of the external parameter between the laser radar and the camera;

[0055] The parameter optimization unit is used to perform nonlinear optimization on the initial value of the external parameter to obtain the external parameter between the laser radar and the camera after optimization.

[0056] Optionally, the initial value of the external parameter includes: a first rotation matrix and a first translation vector of the laser radar relative to the camera;

[0057] The above parameter initial value solving unit includes:

[0058] The first rotation matrix solving subunit is used to solve the first rotation matrix using the singular value decomposition (SVD) method according to the first plane parameters and the second plane parameters corresponding to the N calibration plates respectively; the first plane parameters are extracted according to the first plane equation of the calibration plate, and the second plane parameters are extracted according to the second plane equation of the calibration plate;

[0059] An equation group construction subunit, used to construct a linear equation group using the first plane parameters and the second plane parameters respectively corresponding to the N calibration plates and the first rotation matrix;

[0060] The first translation vector solving subunit is used to solve the linear equation group to obtain the first translation vector.

[0061] Optionally, the parameter optimization unit specifically includes:

[0062] A point cloud conversion subunit, used to convert each point cloud set into the coordinate system of the camera using the initial value of the external parameter to obtain a converted point set;

[0063] A distance summing subunit, used to obtain the sum of the distances from each point in the set of all transformed points in the coordinate system of the camera to the corresponding calibration plate;

[0064] The nonlinear optimization subunit is used to perform nonlinear optimization using the sum of the distances as a cost function to obtain a second rotation matrix and a second translation vector of the laser radar relative to the camera after optimization.

[0065] Compared with the prior art, this application has the following beneficial effects:

[0066] The parameter calibration method and related device provided in the present application obtain the image captured by the camera on the calibration component and the point cloud data detected by the laser radar on the calibration component. The calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2; the first plane equation of each calibration plate in the coordinate system of the camera is obtained according to the image, and the second plane equation of each calibration plate in the coordinate system of the laser radar is obtained according to the point cloud data; the external parameters between the laser radar and the camera are obtained by using the first plane equation and the second plane equation of each calibration plate in the calibration component. In this scheme, the external parameter calibration can be automatically realized by plane constraints through N non-coplanar calibration plates. Since no manual intervention is required during the calibration process, it saves labor costs and is convenient and fast. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0068] Figure 1A A schematic diagram of a calibration component provided in an embodiment of the present application;

[0069] Figure 1B A flow chart of a parameter calibration method provided in an embodiment of the present application;

[0070] Figure 2 A flow chart of another parameter calibration method provided in an embodiment of the present application;

[0071] Figure 3 A schematic diagram of a preset pattern on a calibration plate provided in an embodiment of the present application;

[0072] Figure 4A A schematic diagram of a point cloud scanned and detected by a laser radar for a calibration component provided in an embodiment of the present application;

[0073] Figure 4B A schematic diagram of projecting a point cloud onto an image captured by a camera according to an initial value of an external parameter obtained through calibration provided in an embodiment of the present application;

[0074] Figure 5A schematic diagram of the structure of a parameter calibration device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] At present, the technical solution for calibrating the external parameters of the lidar and camera requires manual participation in the calibration process. For example, some features that can be identified using both point clouds and images are artificially created: a circular area is dug out in the center of the checkerboard calibration plate, and then the hollow circular area is extracted from the point cloud, and the position of the center of the circle is calculated by fitting, and the pixel at the center of the hole is found on the image, and finally the external parameters of the lidar relative to the camera are calculated through the projection relationship. In addition, an external parameter calibration solution based on point matching can also be applied: find the point cloud corresponding to the four corners of the calibration plate, and then manually match it with the pixels at the four corners of the calibration plate in the image. Obviously, the above two calibration methods are complicated to operate, both require manual intervention, and are time-consuming and labor-intensive.

[0076] Based on the above problems, the inventor has provided a parameter calibration method and related device after research. Using N non-coplanar calibration plates and plane constraints, the external parameter calibration between the laser radar and the camera can be automatically realized without manual intervention, which is convenient and fast, saving labor costs.

[0077] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0078] First, the implementation scenarios of the technical solution of this application are introduced. The technical solution of this application is applied to scenarios that contain both laser radar and camera. In practical applications, the scenarios can be: 1) Driving scenario, laser radar and camera are installed on the same vehicle; 2) Parking scenario, laser radar and camera are installed in the same parking lot; 3) Shopping mall scenario, laser radar and camera are installed on the same floor of the shopping mall. The above three scenarios are only examples, and the application scenarios of this solution are not limited here.

[0079] In order to calibrate the external parameters of the laser radar and the camera, the technical solution of the present application is applied to the calibration component. The calibration component is located in the scanning field of view of the laser radar whose external parameters are to be calibrated, and is located in the field of view of the camera whose external parameters are to be calibrated. The calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2. In other words, the calibration component contains 3 or more non-coplanar calibration plates. For ease of description, in the following embodiments, it is assumed that the calibration component includes 3 non-coplanar calibration plates, namely calibration plate 001, calibration plate 002 and calibration plate 003.

[0080] Non-coplanar means that the three calibration plates are not parallel to each other, and each of them is at a certain angle to each other. In a possible implementation, calibration plate 001, calibration plate 002 and calibration plate 003 are perpendicular to each other, such as Figure 1A The present application does not specifically limit the angle between the calibration plates.

[0081] Method Embodiment

[0082] See also Figure 1B , which is a flow chart of a parameter calibration method provided in an embodiment of the present application.

[0083] like Figure 1B As shown, the calibration method includes:

[0084] Step 101: Obtain an image captured by a camera of a calibration component and point cloud data detected by a laser radar of the calibration component; the calibration component includes three non-coplanar calibration plates.

[0085] When the camera photographs the calibration assembly, since the calibration assembly includes three non-coplanar calibration plates, an image including the three non-coplanar calibration plates 001 to 003 can be photographed.

[0086] The laser radar transmits a detection signal, i.e., a laser beam, to the calibration component; and then receives a signal reflected from the calibration component, i.e., the target echo. By scanning and detecting the calibration component with the laser radar, point cloud data can be obtained. These point cloud data include the point cloud data obtained by scanning and detecting the three calibration plates separately.

[0087] The above-mentioned image and point cloud data are respectively obtained by the camera and the laser radar to perform their own functions on the calibration component. Since the three calibration plates in the calibration component are not coplanar, among the above-mentioned data, the data associated with each calibration plate can be used to establish the plane equation corresponding to each calibration plate. The following is a detailed description in conjunction with step 102.

[0088] Step 102: Obtain a first plane equation of each calibration plate in the coordinate system of the camera according to the image, and obtain a second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data.

[0089] In specific implementation, by identifying the calibration plate 001 in the image and performing relevant operations, the first plane equation of the calibration plate 001 can be obtained. Similarly, by identifying the calibration plate 002 in the image and performing relevant operations, the first plane equation of the calibration plate 002 can be obtained, and by identifying the calibration plate 003 in the image and performing relevant operations, the first plane equation of the calibration plate 003 can be obtained. It should be noted that the first plane equations are all established in the coordinate system of the camera.

[0090] In addition, since the calibration plates 001 to 003 are not coplanar, based on this feature, the point cloud sets corresponding to the calibration plates 001, 002 and 003 can be distinguished and determined from the point cloud data obtained in step 101. For example, point cloud set 011 is obtained by laser radar detection of calibration plate 001, point cloud set 022 is obtained by laser radar detection of calibration plate 002, and point cloud set 033 is obtained by laser radar detection of calibration plate 003. The second plane equations of calibration plates 001, 002 and 003 can be obtained using point cloud set 011, point cloud set 022 and point cloud set 033 respectively. For example, the plane where each point in the point cloud set is located is fitted using the point cloud set to obtain the second plane equation. It should be noted that the second plane equations are all established in the coordinate system of the laser radar.

[0091] Step 103: Obtain the external parameters between the laser radar and the camera using the first plane equation and the second plane equation of each calibration plate in the calibration assembly.

[0092] Since the first plane equation of each calibration plate is established in the coordinate system of the camera, and the second plane equation of each calibration plate is established in the coordinate system of the laser radar, the first plane equation and the second plane equation can be solved together to obtain the external parameters between the laser radar and the camera. That is, the rotation and translation of the laser radar relative to the camera. In the solution process, the parameters related to the calibration plate in the first plane equation, such as the coefficients in the first plane equation, are used, and the parameters related to the calibration plate in the second plane equation, such as the coefficients in the second plane equation, are used.

[0093] In one possible solution method, a closed-form solution method is used to combine each first plane equation and each second plane equation to solve the external parameters of the laser radar relative to the camera. The solved external parameters are relatively stable.

[0094] The above is the parameter calibration method provided by the present application. The method first obtains the image taken by the camera on the calibration component and the point cloud data detected by the laser radar on the calibration component. The calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2; then the first plane equation of each calibration plate in the coordinate system of the camera is obtained according to the image, and the second plane equation of each calibration plate in the coordinate system of the laser radar is obtained according to the point cloud data; finally, the first plane equation and the second plane equation of each calibration plate in the calibration component are used to obtain the external parameters between the laser radar and the camera. In this method, the external parameter calibration can be automatically realized by plane constraints through N non-coplanar calibration plates. Since no manual intervention is required during the calibration process, it saves labor costs and is convenient and fast.

[0095] In order to improve the accuracy of external parameter calibration of the laser radar and the camera and make the external parameters more accurate, the application further provides the following embodiments.

[0096] See also Figure 2 , which is a flow chart of another parameter calibration method provided in an embodiment of the present application.

[0097] like Figure 2 As shown, the method includes:

[0098] Step 201: Obtain an image captured by a camera of a calibration component and point cloud data detected by a lidar of the calibration component. The calibration component includes three non-coplanar calibration plates, each of which includes a preset pattern. The three calibration plates are made of different materials, and each of the three calibration plates has unique corresponding identification information and reflection values.

[0099] The method of acquiring image and point cloud data is basically the same as that in the aforementioned embodiment, which will not be described again here, and reference may be made to the aforementioned embodiment.

[0100] In one possible implementation, the preset patterns of each calibration plate are the same. In another possible implementation, the preset patterns of each calibration plate are different. Before shooting and scanning detection, the preset patterns of the calibration plates are all known. Specifically, the preset patterns include feature patterns arranged according to preset specifications, and the specifications of these feature patterns are known. For example, the specifications of the feature patterns include: size, shape, and quantity.

[0101] As an example, the characteristic graphic in the preset pattern is a QR code. Figure 3 , which is a schematic diagram of the preset pattern on the calibration board, such as Figure 3 As shown in , the preset pattern includes a regularly arranged QR code. The characteristic graphics in the preset pattern present corresponding features in the captured image, and the information of these features can be extracted by image detection and recognition.

[0102] The materials of the three non-coplanar calibration plates are different. For example, the roughness of the surfaces of the three calibration plates is different, some are relatively smooth, and some are relatively rough. Or, the brightness of the three calibration plates is different, some are relatively high, and some are relatively low. During laser radar detection, the reflection value of the laser can be obtained while receiving the reflected light beam. The size of the reflection value is different from the material of the object reflecting the laser. Therefore, the material difference of the three calibration plates can be used to distinguish the point cloud sets corresponding to different calibration plates in the point cloud data.

[0103] In order to distinguish different calibration plates, identification information (ID) is set for each calibration plate in advance. For example, the identification information of the three calibration plates are 001, 002 and 003 respectively. Since the material is also known and the reflection value is related to the material, the corresponding relationship between the identification information of the calibration plate and the reflection value of the reflected light beam can be constructed in advance. For example, calibration plate 001 corresponds to reflection value R1, calibration plate 002 corresponds to reflection value R2, and calibration plate 003 corresponds to reflection value R3.

[0104] Step 202: Detect the preset pattern on each calibration plate from the image to obtain measured feature information of the preset pattern.

[0105] For those skilled in the art, how to detect characteristic graphics such as QR codes from images is a relatively mature technology, and there are many mature algorithms. Therefore, the specific implementation method of detecting the measured characteristic information of the preset pattern is not limited here, nor is it elaborated.

[0106] The measured feature information may be the positions and position associations of the center points and corner points of the feature figures in the preset pattern extracted from the image captured by the camera in step 201 .

[0107] Step 203: Obtain the position and posture information of the camera in the space coordinate system where the calibration component is located according to the intrinsic parameters of the camera, the known feature information of the preset pattern and the measured feature information of the preset pattern.

[0108] Since the characteristic patterns in the preset pattern are known, the present application can also obtain the known characteristic information of the preset pattern, such as the real arrangement information of the center point and corner point positions and position associations of the characteristic patterns in the preset pattern. These known characteristic information are not affected by the shooting environment, shooting method, shooting distance and shooting angle, and are inherent.

[0109] The camera's internal parameters may include but are not limited to at least one of the following: lens distortion model, equivalent focal length, and principal point coordinates. After obtaining the camera's internal parameters, known feature information of the preset pattern, and measured feature information, the camera's position information in the spatial coordinate system where the calibration component is located can be obtained by mathematical transformation (e.g., solvePnP method). The solvePnP method is a relatively mature method and will not be described in detail here.

[0110] The pose information includes rotation information and displacement information. The pose information can be expressed as: c ,t c ] where R c is a 3*3 rotation matrix, t c It is a 3*1 displacement vector.

[0111] Step 204: Obtain a first plane equation of each calibration plate in the camera's coordinate system based on the position and posture information and the plane expression of each calibration plate in the spatial coordinate system.

[0112] In practical applications, the plane expression of ax+by+cz=d can be used to express the plane in three-dimensional space, and the parameters are abbreviated as (a, b, c, d). Combined with the camera's position information in the spatial coordinate system where the calibration plate is located [R c ,t c ], we can get the expression of the calibration plate in the camera coordinate system as:

[0113] [a,b,c] T =(R c -1 *[0,0,1] T ), d = [a, b, c] * (-R c -1 )t c

[0114] The above expression can be used as the parameter of the first plane equation of the calibration plate in the camera's coordinate system.

[0115] In order to distinguish the first plane equations of different calibration plates in the camera coordinate system, the corresponding relationship between the calibration plate and the parameters is expressed as follows:

[0116] Parameters of the first plane equation of calibration plate 001 (a1, b1, c1, d1);

[0117] Parameters of the first plane equation of calibration plate 002 (a2, b2, c2, d2);

[0118] Parameters (a3, b3, c3, d3) of the first plane equation of calibration plate 003.

[0119] Step 205: Segment the point cloud set corresponding to each calibration plate from the point cloud data.

[0120] The specific implementation of this step is described below:

[0121] First, N point cloud sets are segmented from the point cloud data (N=3 in this example). Then, N average reflection values ​​are calculated based on the N point cloud sets. Finally, the identification information corresponding to the N point cloud sets is determined based on the N average reflection values ​​to determine the point cloud set corresponding to each calibration plate.

[0122] Figure 4A The following is a schematic diagram of the point cloud detected by the laser radar for the calibration component. Figure 4AAs shown in FIG. 1 , the point cloud obtained by laser radar scanning generally includes a calibration plate and a background. The purpose of point cloud segmentation is to cut the point cloud corresponding to each calibration plate out of the overall point cloud.

[0123] When scanning, each line of the multi-line laser radar is scanned sequentially in a fixed clockwise direction and at a fixed angular resolution (e.g. 0.4 degrees) within a 360-degree range. The points scanned by each line on the same plane are approximately on the same straight line. The straight lines scanned by different lines on the same plane are approximately parallel.

[0124] In order to segment three point cloud sets from the point cloud data, for each laser radar point, first determine whether it is in the area where the calibration plate may exist based on the distance. If the distance is appropriate (for example, it meets the preset distance condition), then calculate the direction of the line where the point is located based on the previous point scanned by the laser line corresponding to this point. After the calculation is completed, for each point cloud within the appropriate distance, its corresponding line direction is obtained, and then all the line directions are clustered into three categories using the k-means method, each corresponding to a calibration plate plane. Each type of line is associated with the corresponding point cloud data, and at this point, three different point cloud sets are obtained.

[0125] In the above operation, although three different point cloud sets are obtained, it is still difficult to associate each point cloud set with the calibration plate, that is, it is impossible to confirm the correspondence between the point cloud set and the calibration plate. To solve the above problem, the average reflection value is calculated for each point cloud set. Since the identification information of the calibration plate has a corresponding relationship with the reflection value, the identification information of the calibration plate corresponding to the point cloud set can also be determined accordingly in combination with the average reflection value of the point cloud set. Finally, as an example, it is determined that calibration plate 001 corresponds to point cloud set 011, calibration plate 002 corresponds to point cloud set 022, and calibration plate 003 corresponds to point cloud set 033. In this way, a one-to-one correspondence between the calibration plate and the point cloud set is constructed.

[0126] Step 206: Fit the plane where each point cloud set is located to obtain the second plane equation of each calibration plate in the laser radar coordinate system.

[0127] In one possible implementation, the plane where each point cloud set is located is fitted using the RANdom Sampling Consensus (RANSAC) algorithm. The RANSAC method has a certain denoising effect while fitting the plane.

[0128] Specifically, the plane where the point cloud set 011 is located is fitted to obtain the second plane equation of the calibration plate 001, with parameters (a1', b1', c1', d1');

[0129] Fit the plane where the point cloud set 022 is located to obtain the second plane equation of the calibration plate 002, with parameters (a2', b2', c2', d2');

[0130] The plane where the point cloud set 033 is located is fitted to obtain the second plane equation of the calibration plate 003 and the parameters (a3', b3', c3', d3').

[0131] The above steps 202-204 introduce the process of establishing the first plane equation, and steps 205-206 introduce the process of establishing the second plane equation. Figure 2 In the method flow chart shown, only the example of first establishing the first plane equation and then establishing the second plane equation is taken. In actual application, there is no limitation on the order of establishing the two types of equations.

[0132] Step 207: Solve the first plane equation and the second plane equation of each calibration plate by a closed-form solution, and use the solution result as the initial value of the external parameter between the laser radar and the camera.

[0133] The specific implementation of this step is described below:

[0134] First, the first rotation matrix is ​​obtained by using the singular value decomposition (SVD) method according to the first plane parameters and the second plane parameters corresponding to the N calibration plates. Then, a linear equation system is constructed using the first plane parameters and the second plane parameters corresponding to the N calibration plates and the first rotation matrix. Finally, the linear equation system is solved to obtain the first translation vector. The initial value of the external parameter includes the above-mentioned first rotation matrix and the first translation vector.

[0135] Here, the first plane parameter is a parameter extracted according to the first plane equation of the calibration plate, and the second plane parameter is a parameter extracted according to the second plane equation of the calibration plate.

[0136] In the above operation of solving the first rotation matrix, the first plane parameters (a1, b1, c1), (a2, b2, c2) and (a3, b3, c3), and the second plane parameters (a1', b1', c1'), (a2', b2', c2') and (a3', b3', c3') are applied.

[0137] In the operation of constructing a system of linear equations, the first plane parameters (a1, b1, c1, d1), (a2, b2, c2, d2) and (a3, b3, c3, d3), and the second plane parameters (a1', b1', c1', d1'), (a2', b2', c2', d2') and (a3', b3', c3', d3') are applied.

[0138] The advantage of the closed-form solution is stability, but the disadvantage is that it is limited by the accuracy of the parameters of the previously fitted plane. If there is a small error in the plane parameters, it may cause a large difference in the closed-form solution. Therefore, after using the closed-form solution to solve the external parameters, in order to improve the solution accuracy and the accuracy of the external parameter calibration, in this embodiment, the solved external parameters can be used as initial values ​​(i.e., the initial values ​​of the external parameters mentioned in step 207), and then further solved by using the nonlinear optimization method in the following step 208 to calibrate more accurate external parameters.

[0139] Step 208: Perform nonlinear optimization on the initial values ​​of the external parameters to obtain the optimized external parameters between the laser radar and the camera.

[0140] In the specific implementation of this step, the plane parameters fitted by the point cloud are no longer used. Instead, each point is directly multiplied by the external parameters and converted to the camera coordinate system. Then, the distance from the point to the calibration plate plane in the corresponding camera coordinate system is calculated. Finally, the sum of the distances from all points multiplied by the external parameters to the corresponding QR code plane is used as the cost function for optimization. The external parameters that minimize the cost function are solved through the iterative nonlinear optimization method of the Levenberg-Marquardt (LM) method.

[0141] The explanation is given with examples to facilitate understanding.

[0142] Use the initial value of the external parameter to transform each point cloud set into the camera's coordinate system to obtain the transformed point set. For example, the point cloud set before transformation is 011, 022 and 033, and the point set after transformation is 111, 222 and 333. Figure 4B , which is a schematic diagram of a point cloud provided by an embodiment of the present application, projected onto an image captured by a camera according to the initial value of the external parameter obtained by calibration. There may be a distance between the converted point projected onto the image captured by the camera and the corresponding calibration plate. The sum of the distances from each point in the set of all converted points to the corresponding calibration plate in the coordinate system of the camera is obtained. For example, the sum of the distances from each point in the converted point set 111 to the calibration plate 001 is L1, the sum of the distances from each point in the converted point set 222 to the calibration plate 002 is L2, and the sum of the distances from each point in the converted point set 333 to the calibration plate 003 is L3. The sum of the distances used as the cost function in this step is L1+L2+L3. Nonlinear optimization is performed using L1+L2+L3 as the cost function to obtain the second rotation matrix and second translation vector of the optimized laser radar relative to the camera.

[0143] The advantage of the nonlinear optimization method is that it has high solution accuracy and is not affected by the point cloud plane fitting accuracy. This method of first using a closed-form solution to solve the external parameters and then using the closed-form solution as the initial value for nonlinear optimization can stably obtain an accurate solution. In the end, the second rotation matrix and the second translation vector have higher precision and accuracy than the first rotation matrix and the first translation vector, and their stability is also guaranteed.

[0144] In the technical solution of the above embodiment, the tool used for calibration is simple, and only three calibration plates of different materials and non-coplanarity are required to be combined, and there is no high requirement for the manufacturing accuracy of the calibration plates. Only plane information is used, and the entire calibration process does not require manual operation, manual point selection, or manual feature matching, which is very suitable for automated calibration.

[0145] Based on the parameter calibration method provided in the above-mentioned embodiment, the present application also provides a parameter calibration device accordingly.

[0146] Device Embodiment

[0147] See also Figure 5 , which is a structural schematic diagram of a parameter calibration device provided in an embodiment of the present application.

[0148] like Figure 5 As shown, the parameter calibration device includes:

[0149] The data acquisition module 501 is used to obtain the image captured by the camera of the calibration component and the point cloud data detected by the laser radar of the calibration component; the calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2;

[0150] An equation building module 502, used to obtain a first plane equation of each calibration plate in the coordinate system of the camera according to the image, and to obtain a second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data;

[0151] The parameter solving module 503 is used to obtain the external parameters between the laser radar and the camera by using the first plane equation and the second plane equation of each calibration plate in the calibration component.

[0152] The device can automatically realize external parameter calibration by using N non-coplanar calibration plates and plane constraints. Since no manual intervention is required during the calibration process, it saves labor costs and is convenient and fast.

[0153] Optionally, each calibration plate includes a preset pattern. As an example, the preset pattern includes a characteristic pattern arranged according to a preset specification. The characteristic pattern includes: a QR code.

[0154] The equation building module 502 includes a first building unit, which includes:

[0155] A measured feature information acquisition subunit, used to detect the preset pattern on each calibration plate from the image to obtain the measured feature information of the preset pattern;

[0156] A posture information acquisition subunit, used to obtain the posture information of the camera in the space coordinate system where the calibration component is located according to the internal parameters of the camera, the known feature information of the preset pattern and the measured feature information of the preset pattern; the posture information includes: rotation information and displacement information;

[0157] The first equation construction subunit is used to obtain the first plane equation of each calibration plate in the coordinate system of the camera according to the posture information and the plane expression of each calibration plate in the spatial coordinate system.

[0158] The equation building module 502 also includes a second building unit, the second building unit including:

[0159] A point cloud segmentation subunit, used to segment a point cloud set corresponding to each calibration plate from the point cloud data;

[0160] The plane fitting subunit is used to fit the plane where each point cloud set is located to obtain the second plane equation of each calibration plate in the coordinate system of the laser radar.

[0161] Optionally, the N calibration plates are made of different materials, and the N calibration plates respectively have unique corresponding identification information and reflection values;

[0162] The point cloud segmentation subunit is specifically used to segment N point cloud sets from the point cloud data; calculate respectively according to the N point cloud sets to obtain N average reflection values; determine the identification information corresponding to the N point cloud sets respectively according to the N average reflection values, so as to determine the point cloud set corresponding to each calibration plate.

[0163] In order to improve the accuracy of the external parameter calibration of the laser radar and the camera and make the external parameters more accurate, the external parameters can be used as initial values ​​after they are obtained, and further optimized. Optionally, the parameter solving module 503 includes:

[0164] A parameter initial value solving unit, used for solving the first plane equation and the second plane equation of each calibration plate by a closed-form solution, and using the solution result as the initial value of the external parameter between the laser radar and the camera;

[0165] The parameter optimization unit is used to perform nonlinear optimization on the initial value of the external parameter to obtain the external parameter between the laser radar and the camera after optimization.

[0166] The advantage of the nonlinear optimization method is that it has high solution accuracy and is not affected by the accuracy of the point cloud plane fitting. This method of first using a closed-form solution to solve the external parameters and then using the closed-form solution result as the initial value for nonlinear optimization can stably obtain an accurate solution. Ultimately, the solved external parameters have higher precision, higher accuracy, and guaranteed stability.

[0167] Optionally, the initial value of the external parameter includes: a first rotation matrix and a first translation vector of the laser radar relative to the camera;

[0168] The above parameter initial value solving unit includes:

[0169] The first rotation matrix solving subunit is used to solve the first rotation matrix using the singular value decomposition (SVD) method according to the first plane parameters and the second plane parameters corresponding to the N calibration plates respectively; the first plane parameters are extracted according to the first plane equation of the calibration plate, and the second plane parameters are extracted according to the second plane equation of the calibration plate;

[0170] An equation group construction subunit, used to construct a linear equation group using the first plane parameters and the second plane parameters respectively corresponding to the N calibration plates and the first rotation matrix;

[0171] The first translation vector solving subunit is used to solve the linear equation group to obtain the first translation vector.

[0172] Optionally, the parameter optimization unit specifically includes:

[0173] A point cloud conversion subunit, used to convert each point cloud set into the coordinate system of the camera using the initial value of the external parameter to obtain a converted point set;

[0174] A distance summing subunit, used to obtain the sum of the distances from each point in the set of all transformed points in the coordinate system of the camera to the corresponding calibration plate;

[0175] The nonlinear optimization subunit is used to perform nonlinear optimization using the sum of the distances as a cost function to obtain a second rotation matrix and a second translation vector of the laser radar relative to the camera after optimization.

[0176] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0177] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A parameter calibration method, characterized in that: include: Obtaining an image captured by a camera of a calibration component and point cloud data detected by a laser radar of the calibration component; the calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2; Obtaining a first plane equation of each calibration plate in the coordinate system of the camera according to the image, and obtaining a second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data; Obtaining the external parameters between the laser radar and the camera using the first plane equation and the second plane equation of each calibration plate in the calibration assembly; The step of obtaining the second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data specifically includes: Segmenting a point cloud set corresponding to each calibration plate from the point cloud data; Fitting the plane where each point cloud set is located to obtain the second plane equation of each calibration plate in the coordinate system of the laser radar; The N calibration plates are made of different materials, and each of the N calibration plates has unique corresponding identification information and reflection values; The step of segmenting the point cloud set corresponding to each calibration plate from the point cloud data specifically includes: Segmenting N point cloud sets from the point cloud data; Calculate respectively according to the N point cloud sets to obtain N average reflection values; According to the N average reflection values, identification information corresponding to the N point cloud sets is determined respectively to determine the point cloud set corresponding to each calibration plate.

2. The parameter calibration method according to claim 1, characterized in that: Each calibration plate includes a preset pattern; The step of obtaining a first plane equation of each calibration plate in the coordinate system of the camera according to the image specifically includes: Detecting a preset pattern on each calibration plate from the image to obtain measured feature information of the preset pattern; According to the intrinsic parameters of the camera, the known feature information of the preset pattern and the measured feature information of the preset pattern, the pose information of the camera in the spatial coordinate system where the calibration component is located is obtained; the pose information includes: rotation information and displacement information; According to the posture information and the plane expression of each calibration plate in the spatial coordinate system, a first plane equation of each calibration plate in the coordinate system of the camera is obtained.

3. The parameter calibration method according to claim 1, characterized in that: The method of obtaining the external parameters between the laser radar and the camera by using the first plane equation and the second plane equation of each calibration plate in the calibration component specifically includes: Solving the first plane equation and the second plane equation of each calibration plate by a closed-form solution method, and using the solution result as the initial value of the external parameter between the laser radar and the camera; Nonlinear optimization is performed on the initial value of the extrinsic parameter to obtain the extrinsic parameter between the laser radar and the camera after optimization.

4. The parameter calibration method according to claim 3, characterized in that: The initial values ​​of the external parameters include: a first rotation matrix and a first translation vector of the laser radar relative to the camera; The method of solving the first plane equation and the second plane equation of each calibration plate by a closed-form solution method, and using the solution result as the initial value of the external parameter between the laser radar and the camera, specifically includes: According to the first plane parameters and the second plane parameters corresponding to the N calibration plates respectively, the first rotation matrix is ​​obtained by using the singular value decomposition (SVD) method; the first plane parameters are extracted according to the first plane equation of the calibration plate, and the second plane parameters are extracted according to the second plane equation of the calibration plate; Constructing a linear equation system using first plane parameters and second plane parameters respectively corresponding to the N calibration plates and the first rotation matrix; The first translation vector is obtained by solving the linear equations.

5. The parameter calibration method according to claim 3, characterized in that: The nonlinear optimization of the initial value of the external parameter to obtain the optimized external parameter between the laser radar and the camera specifically includes: Using the initial value of the external parameter to transform each point cloud set into the coordinate system of the camera, to obtain a transformed point set; Obtaining the sum of the distances from each point in the set of all transformed points in the coordinate system of the camera to the corresponding calibration plate; Nonlinear optimization is performed using the sum of the distances as a cost function to obtain an optimized second rotation matrix and a second translation vector of the laser radar relative to the camera.

6. The parameter calibration method according to claim 2, characterized in that: The preset pattern includes characteristic graphics arranged according to preset specifications.

7. A parameter calibration device, characterized in that: include: A data acquisition module, used to obtain an image captured by a camera on a calibration component and point cloud data detected by a laser radar on the calibration component; the calibration component includes N non-coplanar calibration plates, where N is an integer greater than 2; An equation building module, used to obtain a first plane equation of each calibration plate in the coordinate system of the camera according to the image, and to obtain a second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data; A parameter solving module, used for obtaining the external parameters between the laser radar and the camera by using the first plane equation and the second plane equation of each calibration plate in the calibration assembly; The step of obtaining the second plane equation of each calibration plate in the coordinate system of the laser radar according to the point cloud data specifically includes: Segmenting a point cloud set corresponding to each calibration plate from the point cloud data; Fitting the plane where each point cloud set is located to obtain the second plane equation of each calibration plate in the coordinate system of the laser radar; The N calibration plates are made of different materials, and each of the N calibration plates has unique corresponding identification information and reflection values; The step of segmenting the point cloud set corresponding to each calibration plate from the point cloud data specifically includes: Segmenting N point cloud sets from the point cloud data; Calculate respectively according to the N point cloud sets to obtain N average reflection values; According to the N average reflection values, identification information corresponding to the N point cloud sets is determined respectively to determine the point cloud set corresponding to each calibration plate.

8. The parameter calibration device according to claim 7, characterized in that: The equation building module includes: a second building unit; the second building unit specifically includes: A point cloud segmentation subunit, used to segment a point cloud set corresponding to each calibration plate from the point cloud data; The plane fitting subunit is used to fit the plane where each point cloud set is located to obtain the second plane equation of each calibration plate in the coordinate system of the laser radar.