Extracting feature points of checkerboard calibration plate using camera and corresponding joint calibration method
The camera extracts the feature points of the checkerboard calibration plate, and uses dedistortion and Harris algorithm to detect corner points, which solves the problem in the existing technology that requires special transformation of the calibration plate, realizes automatic joint calibration of lidar and camera, simplifies operations and Improve accuracy and generality.
Patent Information
- Application Number
- CN202011487885.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-16
AI Technical Summary
In the existing technology, the corner points of the checkerboard calibration plate are directly used as plane features for joint calibration of lidar and cameras. This requires special modifications to the checkerboard calibration plate, which is complex to operate and not universally applicable.
The camera captures the image of the checkerboard calibration board, uses dedistortion and the Harris algorithm to detect corner points, and calculates the two-dimensional coordinates of the feature points on the checkerboard calibration board in the pixel coordinate system. Feature points can be extracted without special modifications, simplifying operations. and improve universality.
It is possible to accurately extract the feature points of the checkerboard calibration plate without making special modifications to the calibration plate, simplifying the operation process and improving the accuracy and universality of the automated joint calibration of lidar and cameras.
Smart Images

Figure CN114638899B
Abstract
Description
Technical Field
[0001] The invention relates to a method for extracting characteristic points of a chessboard calibration plate by using a camera and a corresponding joint calibration method, belonging to the technical field of multi-sensor joint calibration. Background Art
[0002] LiDAR and camera are two common sensors in driverless vehicles. They have their own advantages and disadvantages. LiDAR can accurately perceive the three-dimensional spatial information of the surrounding environment, and the camera can accurately obtain the color and texture information of the surrounding environment. In order to better perceive the surrounding environment, LiDAR and camera are usually fused, and the joint calibration of LiDAR and camera is the premise of their information fusion. The joint calibration of LiDAR and camera is to solve the rotation and translation matrix between the two (that is, the external parameters between the two). The solution method is generally to first find multiple groups of corresponding spatial feature points and plane feature points, and then use the PNP algorithm to solve the rotation and translation matrix between them. Among them, the spatial feature point is the three-dimensional coordinate of the calibration plate feature point in the LiDAR coordinate system, and the plane feature point is the two-dimensional coordinate of the calibration plate feature point in the pixel coordinate system.
[0003] The automated joint calibration technology of LiDAR and camera is crucial for the construction of unmanned calibration stations, which can save a lot of manpower and material resources. In the existing automated joint calibration of LiDAR and camera, there are generally two methods for extracting plane feature points: the first is to directly use the corner points of the checkerboard calibration plate as the plane features to be extracted, but because the LiDAR is not sensitive to color information, it is impossible to directly extract the spatial features of the corner points, so the checkerboard calibration plate needs to be specially modified; the second is to make special calibration objects to facilitate the extraction of plane features and spatial features, such as the box-based radar and camera joint calibration method disclosed in the Chinese invention patent application document with patent application publication number CN109978954 A. Although the above two plane feature extraction methods can meet the needs of joint calibration of LiDAR and camera, they both require the production of special calibration plates, and the operation process is relatively complicated and not universal. Summary of the invention
[0004] The purpose of the present invention is to provide a method for extracting feature points of a chessboard calibration plate using a camera and a corresponding joint calibration method, so as to solve the problem that in the prior art, the corner points of the chessboard calibration plate are directly used as plane features for the joint calibration of lidar and camera, which requires special modification of the chessboard calibration plate, is relatively complicated to operate and has low universality.
[0005] In order to achieve the above object, the present invention provides a method for extracting feature points of a checkerboard calibration plate using a camera, the method comprising the following steps:
[0006] Using a camera to capture an image of a checkerboard calibration plate, and calculating the two-dimensional coordinates of each feature point on the checkerboard calibration plate in a pixel coordinate system based on the obtained image data; the checkerboard calibration plate is placed obliquely in an area that can be sensed by the camera, and the feature points are vertices of the checkerboard calibration plate;
[0007] The calculation process of the two-dimensional coordinates of the feature point in the pixel coordinate system includes:
[0008] (1) Dedistorting the captured chessboard calibration plate image to obtain a dedistorted image;
[0009] (2) detecting the checkerboard corner points in the dedistorted image to obtain the coordinates of each corner point in the dedistorted image in a pixel coordinate system, and finding the top, bottom, leftmost and rightmost corner points as point a, point b, point c and point d according to the coordinates of point a, point b, point c and point d, and calculating the straight line equations of ac, cb, bd and ad respectively according to the coordinates of point a, point b, point c and point d;
[0010] (3) respectively calculating the distances d1, d3, d2, and d4 from the straight lines where ac, cb, bd, and ad are located to the boundaries L1, L3, L2, and L4, where the boundaries L1, L3, L2, and L4 are the boundaries of the checkerboard calibration plate in the dedistorted image corresponding to the straight lines where ac, cb, bd, and ad are located;
[0011] The distances d1, d3, d2, and d4 are calculated based on the actual distances from the straight lines ac, cb, bd, and ad to the boundaries of the corresponding checkerboard calibration plates and the proportional coefficients, respectively. The proportional coefficients are determined based on the actual side lengths of the checkerboard squares and the side lengths of the checkerboard squares in the dedistorted image.
[0012] (4) The straight line equations of ac, cb, bd, and ad are translated by distances d1, d3, d2, and d4, respectively, to obtain the straight line equations of the boundaries L1, L3, L2, and L4. Based on the coordinates of the intersections of the straight line equations of the boundaries L1, L3, L2, and L4, the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system are obtained.
[0013] The method for extracting feature points of a checkerboard calibration plate using a camera has the following beneficial effects: the method uses the vertices of the checkerboard calibration plate as feature points, and based on the coordinates of the corner points of the checkerboard on the dedistorted image in the pixel coordinate system, finds the top, bottom, leftmost and rightmost corner points (i.e., point a, point b, point c and point d) on the dedistorted image, and obtains the line equation of the boundary of the checkerboard calibration plate in the dedistorted image by translating the line equations where ac, cb, bd and ad are located, and then obtains the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system based on the intersection coordinates of the line equation of the boundary of the checkerboard calibration plate in the dedistorted image. It can be seen that the method can extract the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system without special modification of the checkerboard calibration plate, and is simple to operate and has strong universality.
[0014] Furthermore, in the above method of extracting feature points of a checkerboard calibration plate using a camera, the calculation formula of the proportional coefficient is: r = L picture / s0, where r is the proportionality coefficient, L picture is the side length of the chessboard square in the dedistorted image, s0 is the actual side length of the chessboard square; the actual distance from the straight lines where ac, cb, bd, and ad are located to the corresponding chessboard calibration board boundaries = the actual distance from the corresponding chessboard calibration board boundaries to the nearest chessboard squares + the actual side length of the chessboard squares.
[0015] Furthermore, in the above method of extracting feature points of a checkerboard calibration plate using a camera, the checkerboard calibration plate is in a rectangular shape, and the inclined placement is diagonal placement.
[0016] Furthermore, in the above method of extracting feature points of a chessboard calibration plate using a camera, the Zhang calibration method is used to dedistort the captured chessboard calibration plate image to obtain a dedistorted image.
[0017] Furthermore, in the above method of extracting feature points of a checkerboard calibration plate using a camera, the checkerboard corner points in the dedistorted image are detected using a Harris algorithm to obtain the coordinates of each corner point on the dedistorted image in a pixel coordinate system.
[0018] The present invention also provides a joint calibration method of a camera and a laser radar, the method comprising the following steps:
[0019] The image of the checkerboard calibration plate is captured by a camera, and the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system are calculated based on the obtained image data; the checkerboard calibration plate is placed obliquely in an area that can be sensed by the camera and the laser radar at the same time, and the feature points are the vertices of the checkerboard calibration plate, and there are at least 3 feature points;
[0020] The checkerboard calibration plate is scanned by a laser radar, and the three-dimensional coordinates of each feature point on the checkerboard calibration plate in the laser radar coordinate system are calculated based on the scanned point cloud data;
[0021] The two-dimensional coordinates and three-dimensional coordinates corresponding to each feature point are combined into a set of point pair data, and the external parameters between the camera and the lidar are obtained based on the PNP method using at least three sets of point pair data obtained;
[0022] The calculation process of the two-dimensional coordinates of the feature point in the pixel coordinate system includes:
[0023] (1) Dedistorting the captured chessboard calibration plate image to obtain a dedistorted image;
[0024] (2) detecting the checkerboard corner points in the dedistorted image to obtain the coordinates of each corner point in the dedistorted image in a pixel coordinate system, and finding the top, bottom, leftmost and rightmost corner points as point a, point b, point c and point d according to the coordinates of point a, point b, point c and point d, and calculating the straight line equations of ac, cb, bd and ad respectively according to the coordinates of point a, point b, point c and point d;
[0025] (3) respectively calculating the distances d1, d3, d2, and d4 from the straight lines where ac, cb, bd, and ad are located to the boundaries L1, L3, L2, and L4, where the boundaries L1, L3, L2, and L4 are the boundaries of the checkerboard calibration plate in the dedistorted image corresponding to the straight lines where ac, cb, bd, and ad are located;
[0026] The distances d1, d3, d2, and d4 are calculated based on the actual distances from the straight lines ac, cb, bd, and ad to the boundaries of the corresponding checkerboard calibration plates and the proportional coefficients, respectively. The proportional coefficients are determined based on the actual side lengths of the checkerboard squares and the side lengths of the checkerboard squares in the dedistorted image.
[0027] (4) The straight line equations of ac, cb, bd, and ad are translated by distances d1, d3, d2, and d4, respectively, to obtain the straight line equations of the boundaries L1, L3, L2, and L4. Based on the coordinates of the intersections of the straight line equations of the boundaries L1, L3, L2, and L4, the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system are obtained.
[0028] The beneficial effects of the joint calibration method of the camera and the laser radar are as follows: first, based on the detected coordinates of the corner points of the chessboard on the dedistorted image in the pixel coordinate system, the present invention finds the top, bottom, leftmost and rightmost corner points (i.e., point a, point b, point c and point d) on the dedistorted image, and obtains the straight line equation of the boundary of the chessboard calibration plate in the dedistorted image by translating the straight line equations where ac, cb, bd and ad are located, and then obtains the coordinates of the intersection of the straight line equations of the boundary of the chessboard calibration plate in the dedistorted image based on the pixel coordinate system. The two-dimensional coordinates in the coordinate system are used as the plane features in the joint calibration of the laser radar and the camera. The operation is simple, and the plane features required for the joint calibration can be extracted without special modification of the calibration plate, so that the automatic joint calibration of the laser radar and the camera can be completed using an ordinary checkerboard calibration plate; and, the present invention uses the vertices of the checkerboard calibration plate as feature points, and by tilting the checkerboard calibration plate in an area that can be sensed by the camera and the laser radar at the same time, the spatial features of the vertices of the calibration plate are easier to accurately extract, which can improve the accuracy of the joint calibration.
[0029] Furthermore, in the above-mentioned joint calibration method of camera and laser radar, the calculation formula of the proportional coefficient is: r = L picture / s0, where r is the proportionality coefficient, L picture is the side length of the chessboard square in the dedistorted image, s0 is the actual side length of the chessboard square; the actual distance from the straight lines where ac, cb, bd, and ad are located to the corresponding chessboard calibration board boundaries = the actual distance from the corresponding chessboard calibration board boundaries to the nearest chessboard squares + the actual side length of the chessboard squares.
[0030] Furthermore, in the above-mentioned joint calibration method of the camera and the laser radar, the shape of the checkerboard calibration plate is a rectangle, and the inclined placement is a diagonal placement.
[0031] Furthermore, in order to further improve the accuracy of the joint calibration, in the above-mentioned joint calibration method of the camera and the laser radar, the checkerboard calibration plate is tilted and fixed on a movable calibration bracket. During the calibration process, the checkerboard calibration plate is moved to multiple positions along with the calibration bracket. For each position, the two-dimensional coordinates and three-dimensional coordinates corresponding to each feature point on the checkerboard calibration plate are extracted, and the external parameters between the camera and the laser radar are obtained based on the PNP method using the point pair data corresponding to all the feature points.
[0032] Furthermore, in the joint calibration method of the above-mentioned camera and lidar, the Zhang calibration method is used to dedistort the captured chessboard calibration plate image to obtain a dedistorted image; the Harris algorithm is used to detect the chessboard corner points in the dedistorted image to obtain the coordinates of each corner point on the dedistorted image in the pixel coordinate system. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a comparison diagram of vertex fitting effects of a checkerboard calibration plate in different placement modes in an embodiment of the combined calibration method of the present invention;
[0034] Figure 2 is a schematic diagram of a joint calibration scenario in an embodiment of the joint calibration method of the present invention;
[0035] Figure 3 is a flow chart of a method for extracting feature points of a chessboard calibration plate using a camera in an embodiment of the joint calibration method of the present invention;
[0036] Figure 4 is a schematic diagram of the corner point detection result of the Harris algorithm in the embodiment of the joint calibration method of the present invention;
[0037] Figure 5 is a schematic diagram of measuring a checkerboard calibration plate in an embodiment of the combined calibration method of the present invention;
[0038] Figure 6 It is a schematic diagram of solving and translating the straight line equation of the chessboard calibration plate in the embodiment of the joint calibration method of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0040] Joint calibration method embodiment:
[0041] The joint calibration method of the camera and the laser radar of this embodiment includes the following steps:
[0042] The image of the checkerboard calibration plate is captured by a camera, and the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system are calculated based on the obtained image data; wherein the checkerboard calibration plate is rectangular in shape, and the checkerboard calibration plate is tilted (wherein the diagonal placement is a special case of the tilted placement). In the area that can be sensed by the camera and the laser radar at the same time, the feature points are the vertices of the checkerboard calibration plate, and there are at least 3 feature points;
[0043] The checkerboard calibration plate is scanned by a laser radar, and the three-dimensional coordinates of each feature point on the checkerboard calibration plate in the laser radar coordinate system are calculated based on the scanned point cloud data;
[0044] The two-dimensional coordinates and three-dimensional coordinates corresponding to each feature point are combined into a set of point pair data, and the external parameters between the camera and the lidar are solved based on the PNP method using at least three sets of point pair data.
[0045] In order to solve the problem in the prior art that the corner points of the checkerboard calibration plate are directly used as plane features for the joint calibration of the laser radar and the camera, the checkerboard calibration plate needs to be specially modified, the operation is relatively complicated, and the universality is not strong. In this embodiment, when performing the automatic joint calibration of the laser radar and the camera, the vertices of the checkerboard calibration plate are used as feature points, and the checkerboard calibration plate is tilted and fixed on a movable calibration bracket. The advantage of this is that the tilted fixation of the calibration plate can make it easier to accurately extract the spatial features of the vertices of the calibration plate, especially for low-beam laser radars. The reason is that the vertical resolution of the laser radar is much lower than the horizontal resolution. If the calibration plate is placed vertically, the laser radar may not be able to scan the upper and lower edges of the checkerboard. At this time, the vertices fitted by the point cloud data scanned on the checkerboard are quite different from the actual checkerboard vertices. Figure 1 As shown on the left, the gray solid points are the fitted vertices, and the black solid points are the required spatial feature points. Although the upper and lower vertices of the tilted calibration plate are not easily scanned by the laser radar, the vertices fitted by the point cloud data scanned on the chessboard are the real chessboard vertices, as shown in Figure 1. Figure 1 As shown on the right, the black solid dots and the gray solid dots coincide.
[0046] Generally, in order to obtain better joint calibration results and improve the accuracy of joint calibration, the checkerboard calibration plate will be moved to multiple positions along with the calibration bracket during the calibration process. For each position, the planar features and spatial features of each feature point on the calibration plate need to be extracted (that is, the two-dimensional coordinates and three-dimensional coordinates corresponding to each feature point on the calibration plate need to be calculated). The point pair data corresponding to all feature points are used to obtain the external parameters between the camera and the lidar based on the PNP method.
[0047] Joint calibration scenarios such as Figure 2 As shown, plan the calibration site in advance, fix the checkerboard calibration plate on the calibration bracket at an angle, and ensure that the checkerboard calibration plate does not shake easily when the calibration bracket moves. Before the joint calibration starts, the vehicle needs to be parked at a designated position and remain still to ensure that the calibration site is in the vehicle's camera field of view. The position where the calibration bracket moves needs to be designed in advance, and the image of the checkerboard calibration plate is captured and saved every time the calibration bracket moves to a certain position.
[0048] In the joint calibration, the prior art can accurately detect the coordinates of the checkerboard corner points in the checkerboard calibration plate image captured by the camera in the pixel coordinate system, but cannot accurately detect the coordinates of the checkerboard calibration plate vertices in the checkerboard calibration plate image in the pixel coordinate system. In this embodiment, the vertices of the checkerboard calibration plate are used as feature points. Therefore, how to accurately obtain the coordinates of the checkerboard calibration plate vertices in the checkerboard calibration plate image in the pixel coordinate system (that is, how to obtain the two-dimensional coordinates of the feature points in the pixel coordinate system) is the key. Figure 3 As shown, the method for extracting feature points of a checkerboard calibration plate using a camera in this embodiment includes the following steps:
[0049] Step 1: Dedistort the captured chessboard calibration plate image to obtain a dedistorted image;
[0050] In this embodiment, the Zhang calibration method is used to calculate the distortion coefficient of the camera, and the captured chessboard calibration plate image is dedistorted according to the calculated distortion coefficient; as other implementation methods, other methods in the prior art can also be used to dedistort the captured chessboard calibration plate image.
[0051] Step 2: Detect the checkerboard corner points in the dedistorted image to obtain the coordinates of each corner point in the dedistorted image in a pixel coordinate system (hereinafter referred to as pixel coordinates for short).
[0052] like Figure 4 As shown, in this embodiment, a pixel coordinate system is established to calculate the pixel coordinates of each corner point on the dedistorted image in the pixel coordinate system. In the pixel coordinate system, the upper left corner is the origin, the right is the X-axis direction, and the downward is the Y-axis direction. The detection results of the corner points are shown in the circles in the figure.
[0053] In this embodiment, the Harris algorithm is used to detect the checkerboard corner points in the dedistorted image; as other implementation methods, other methods in the prior art can also be used to achieve the detection of checkerboard corner points.
[0054] Step 3: Based on the pixel coordinates of each corner point on the dedistorted image, the pixel coordinates of the vertices of the checkerboard calibration plate in the dedistorted image are obtained. Since the vertices of the calibration plate are used as feature points in this embodiment, the two-dimensional coordinates of the vertices of the checkerboard calibration plate in the pixel coordinate system are also the two-dimensional coordinates of the feature points on the calibration plate in the pixel coordinate system.
[0055] The specific process of solving the pixel coordinates of the vertices of the checkerboard calibration plate in the dedistorted image is as follows:
[0056] (1) Find the equation of the line where the outermost corner points of the chessboard are located in the dedistorted image;
[0057] like Figure 4 As shown, the top, bottom, leftmost and rightmost corner points on the dedistorted image are represented by point a, point b, point c and point d respectively. Since the checkerboard calibration plate is placed at an angle, the vertical coordinate of point a is the smallest, the vertical coordinate of point b is the largest, the horizontal coordinate of point c is the smallest, and the horizontal coordinate of point d is the largest among the pixel coordinates of all the detected corner points. Based on these features, the pixel coordinates of points a, b, c and d can be obtained; the equations of the lines where ac, cb, bd and ad are located (i.e., the equations of the lines where the outermost corner points of the checkerboard are located) are calculated respectively according to the coordinates of points a, b, c and d;
[0058] (2) Find the scale factor and calculate the pixel distance to be translated;
[0059] like Figure 5 As shown in Figure 2, before joint calibration, the distance measurement tool is used to measure the real side length s0 of a chessboard square in the chessboard calibration plate in the real world, as well as the real distances from the four boundaries of the chessboard calibration plate to the nearest chessboard square in the real world. Figure 5 In the real world, the actual distances from the four boundaries of the checkerboard calibration plate to the nearest checkerboard square are s1, s2, s3, and s4. Since the checkerboard calibration plate is fixed after selection, it only needs to be measured once.
[0060] However, since the distance between the calibration bracket and the camera varies when it moves, a proportional coefficient r needs to be calculated for the current image to be processed to describe the distance relationship between the pixel coordinate system and the world coordinate system. Figure 6 Taking the number of chessboard squares in the image shown as an example, since point a to point c corresponds to 5 chessboard squares, the proportional coefficient r can be obtained by the formula It is calculated that |ac| represents the Euclidean pixel distance between point a and point c. As another implementation method, the side length L of a chessboard square in the dedistorted image can also be calculated: picture , directly use r = L picture / s0 Calculate the scaling factor.
[0061] like Figure 6 As shown in the figure, since the pixel coordinates of the vertices of the checkerboard calibration plate in the dedistorted image need to be obtained, the straight line equations of ac, cb, bd, and ad need to be translated to the boundaries L1, L3, L2, and L4, and the pixel distances required for translation are d1, d3, d2, and d4, respectively; where the boundaries L1, L3, L2, and L4 are the boundaries of the checkerboard calibration plate in the dedistorted image corresponding to the straight lines where ac, cb, bd, and ad are located, respectively; the calculation formulas for the pixel distances d1, d3, d2, and d4 required for translation are as follows:
[0062] d1=r*(s1+s0)
[0063] d2=r*(s2+s0)
[0064] d3=r*(s3+s0)
[0065] d4=r*(s4+s0)
[0066] Among them, s1+s0 represents the actual distance from the straight line where ac is located to the boundary of the corresponding chessboard calibration board, and s1 is the actual distance from the boundary of the chessboard calibration board corresponding to the straight line where ac is located to the nearest chessboard square; the meanings of s2+s0, s3+s0, s4+s0, s2, s3, and s4 can be obtained similarly and will not be repeated here.
[0067] (3) The straight line equations where the outermost corner points of the chessboard are located are translated to the boundaries L1, L3, L2, and L4 of the calibration plate in the dedistorted image. That is, the straight line equations where ac, cb, bd, and ad are located are translated by distances d1, d3, d2, and d4, respectively, and the straight line equations of the boundaries L1, L3, L2, and L4 are calculated.
[0068] (4) The coordinates of the intersection of the straight line equations of the boundaries of the calibration plate in the dedistorted image are obtained as the pixel coordinates of the vertices of the calibration plate. That is, the coordinates of the intersection of the straight line equations of the boundaries L1, L3, L2, and L4 are obtained as the pixel coordinates of the vertices of the checkerboard calibration plate in the dedistorted image.
[0069] Calibration plate feature point extraction method embodiment:
[0070] The method of this embodiment of using a camera to extract feature points of a chessboard calibration plate is as follows: Figure 3 As shown, this method is the same as the method of using a camera to extract feature points of a checkerboard calibration plate in the embodiment of the joint calibration method. Since this method has been described in detail in the embodiment of the joint calibration method, it will not be repeated here.
Claims
1. A method for extracting feature points of a chessboard calibration plate using a camera, It is characterized in that The method comprises the following steps: Using a camera to capture an image of a checkerboard calibration plate, and calculating the two-dimensional coordinates of each feature point on the checkerboard calibration plate in a pixel coordinate system based on the obtained image data; the checkerboard calibration plate is placed obliquely in an area that can be sensed by the camera, and the feature points are vertices of the checkerboard calibration plate; The calculation process of the two-dimensional coordinates of the feature point in the pixel coordinate system includes: (1) Dedistorting the captured chessboard calibration plate image to obtain a dedistorted image; (2) detecting the checkerboard corner points in the dedistorted image to obtain the coordinates of each corner point in the dedistorted image in a pixel coordinate system, and finding the top, bottom, leftmost and rightmost corner points as point a, point b, point c and point d according to the coordinates of point a, point b, point c and point d, and calculating the straight line equations of ac, cb, bd and ad respectively according to the coordinates of point a, point b, point c and point d; (3) respectively calculating the distances d1, d3, d2, and d4 from the straight lines where ac, cb, bd, and ad are located to the boundaries L1, L3, L2, and L4, where the boundaries L1, L3, L2, and L4 are the boundaries of the checkerboard calibration plate in the dedistorted image corresponding to the straight lines where ac, cb, bd, and ad are located; The distances d1, d3, d2, and d4 are calculated based on the actual distances from the straight lines ac, cb, bd, and ad to the boundaries of the corresponding checkerboard calibration plates and the proportional coefficients, respectively. The proportional coefficients are determined based on the actual side lengths of the checkerboard squares and the side lengths of the checkerboard squares in the dedistorted image. (4) The straight line equations of ac, cb, bd, and ad are translated by distances d1, d3, d2, and d4, respectively, to obtain the straight line equations of the boundaries L1, L3, L2, and L4. Based on the coordinates of the intersections of the straight line equations of the boundaries L1, L3, L2, and L4, the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system are obtained.
2. The method for extracting feature points of a checkerboard calibration plate using a camera according to claim 1, It is characterized in that The calculation formula of the proportional coefficient is: r = L picture / s0, where r is the proportionality coefficient, L picture is the side length of the chessboard square in the dedistorted image, s0 is the actual side length of the chessboard square; the actual distance from the straight lines where ac, cb, bd, and ad are located to the corresponding chessboard calibration board boundaries = the actual distance from the corresponding chessboard calibration board boundaries to the nearest chessboard squares + the actual side length of the chessboard squares.
3. The method for extracting feature points of a checkerboard calibration plate using a camera according to claim 1 or 2, It is characterized in that The chessboard calibration plate is in a rectangular shape, and the inclined placement is diagonal placement.
4. The method for extracting feature points of a checkerboard calibration plate using a camera according to claim 3, It is characterized in that The Zhang calibration method is used to dedistort the captured chessboard calibration plate image to obtain a dedistorted image.
5. The method for extracting feature points of a checkerboard calibration plate using a camera according to claim 3, It is characterized in that The checkerboard corner points in the dedistorted image are detected using the Harris algorithm to obtain the coordinates of each corner point on the dedistorted image in a pixel coordinate system.
6. A joint calibration method for camera and lidar, It is characterized in that The method comprises the following steps: The image of the checkerboard calibration plate is captured by a camera, and the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system are calculated based on the obtained image data; the checkerboard calibration plate is placed obliquely in an area that can be sensed by the camera and the laser radar at the same time, and the feature points are the vertices of the checkerboard calibration plate, and there are at least 3 feature points; The checkerboard calibration plate is scanned by a laser radar, and the three-dimensional coordinates of each feature point on the checkerboard calibration plate in the laser radar coordinate system are calculated based on the scanned point cloud data; The two-dimensional coordinates and three-dimensional coordinates corresponding to each feature point are combined into a set of point pair data, and the external parameters between the camera and the lidar are obtained based on the PNP method using at least three sets of point pair data obtained; The calculation process of the two-dimensional coordinates of the feature point in the pixel coordinate system includes: (1) Dedistorting the captured chessboard calibration plate image to obtain a dedistorted image; (2) detecting the checkerboard corner points in the dedistorted image to obtain the coordinates of each corner point in the dedistorted image in a pixel coordinate system, and finding the top, bottom, leftmost and rightmost corner points as point a, point b, point c and point d according to the coordinates of point a, point b, point c and point d, and calculating the straight line equations of ac, cb, bd and ad respectively according to the coordinates of point a, point b, point c and point d; (3) respectively calculating the distances d1, d3, d2, and d4 from the straight lines where ac, cb, bd, and ad are located to the boundaries L1, L3, L2, and L4, where the boundaries L1, L3, L2, and L4 are the boundaries of the checkerboard calibration plate in the dedistorted image corresponding to the straight lines where ac, cb, bd, and ad are located; The distances d1, d3, d2, and d4 are calculated based on the actual distances from the straight lines ac, cb, bd, and ad to the boundaries of the corresponding checkerboard calibration plates and the proportional coefficients, respectively. The proportional coefficients are determined based on the actual side lengths of the checkerboard squares and the side lengths of the checkerboard squares in the dedistorted image. (4) The straight line equations of ac, cb, bd, and ad are translated by distances d1, d3, d2, and d4, respectively, to obtain the straight line equations of the boundaries L1, L3, L2, and L4. Based on the coordinates of the intersections of the straight line equations of the boundaries L1, L3, L2, and L4, the two-dimensional coordinates of each feature point on the checkerboard calibration plate in the pixel coordinate system are obtained.
7. The joint calibration method of camera and laser radar according to claim 6, It is characterized in that The calculation formula of the proportional coefficient is: r = L picture / s0, where r is the proportionality coefficient, L picture is the side length of the chessboard square in the dedistorted image, s0 is the actual side length of the chessboard square; the actual distance from the straight lines where ac, cb, bd, and ad are located to the corresponding chessboard calibration board boundaries = the actual distance from the corresponding chessboard calibration board boundaries to the nearest chessboard squares + the actual side length of the chessboard squares.
8. The joint calibration method of camera and laser radar according to claim 6 or 7, It is characterized in that The chessboard calibration plate is in a rectangular shape, and the inclined placement is diagonal placement.
9. The joint calibration method of camera and laser radar according to claim 8, It is characterized in that The checkerboard calibration plate is tilted and fixed on a movable calibration bracket. During the calibration process, the checkerboard calibration plate is moved to multiple positions along with the calibration bracket. For each position, the two-dimensional coordinates and three-dimensional coordinates corresponding to each feature point on the checkerboard calibration plate are extracted. The external parameters between the camera and the lidar are obtained based on the PNP method using the point pair data corresponding to all the feature points.
10. The joint calibration method of camera and laser radar according to claim 9, It is characterized in that The Zhang calibration method is used to dedistort the chessboard calibration plate image obtained by shooting to obtain a dedistorted image; the Harris algorithm is used to detect the chessboard corner points in the dedistorted image to obtain the coordinates of each corner point on the dedistorted image in a pixel coordinate system.
Citation Information
Cited By
Camera inclination angle calibration method based on high-precision thermocompression bonding equipment
CN121962278A
A camera tilt angle calibration method based on a high-precision thermal compression bonding device
CN121962278B
