Joint calibration method, device and equipment for 2D camera and 3D camera

By using multiple solid dots of different sizes, non-overlapping and non-uniform distribution as calibration plates, extracting and matching the dot features of 2D cameras and 3D cameras, the stability of the calibration method in the prior art in complex environments and Applicability issues achieve higher accuracy and success rate.

CN118887299AActive Publication Date: 2024-11-01SIXTH MIRROR VISION TECH (XIAN) CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411354748.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-11-01
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

The existing joint calibration methods of 2D cameras and 3D cameras are poor in environments with more interference and complex backgrounds, and the calibration plate based on simple features leads to a high matching failure rate.

Method used

Using multiple solid dots of different sizes, non-overlapping and non-uniform distribution as calibration plates, the dot features in the image and point cloud data are extracted through the dot detection algorithm, and feature matching is performed to determine the transformation matrix to improve calibration accuracy and stability. sex.

Benefits of technology

In complex environments, the stability and applicability of calibration are improved, the demand for feature matching is reduced, the success rate of matching calibration is improved, and the accuracy and complexity of calibration is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887299A_ABST
    Figure CN118887299A_ABST
Patent Text Reader

Abstract

The invention discloses a combined calibration method, device and equipment for a 2D camera and a 3D camera, and relates to the technical field of camera calibration. The invention provides a combined calibration method for a 2D camera and a 3D camera, and the method comprises the steps: obtaining image data and point cloud data collected by the 2D camera, the 3D camera and a preset calibration plate, enabling the preset calibration plate to comprise a plurality of solid dots which are different in size, are not overlapped, and are not uniformly distributed, carrying out the dot extraction of the image data and the point cloud data through a dot detection algorithm, and obtaining a dot extraction result; the dot features can comprise more complex features preset based on the preset calibration plate, so that feature matching can be performed according to the dot features corresponding to the image data and the point cloud data, and matched dots in the image data and the point cloud data are determined; and determining a transformation matrix between the image data and the point cloud data according to the plurality of groups of matched dots. The stability and applicability of the calibration method are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of camera calibration, and in particular to a joint calibration method, device and equipment for a 2D camera and a 3D camera. Background Art

[0002] At present, the combined imaging method of 2D cameras and 3D cameras has gradually become a research hotspot. 3D cameras can obtain high-density, discrete 3D point clouds on the surface of target objects, but cannot obtain information such as color, brightness and texture. 2D cameras can obtain high-resolution images with features such as color, brightness and texture, but cannot obtain depth information of images. Therefore, the fusion of 2D images and 3D point clouds can effectively make up for the lack of feature information of single sensor data and obtain more comprehensive data of target objects. The joint calibration of 3D cameras and 2D cameras is one of the key technologies to realize the fusion of 3D point clouds and 2D image data and complement each other's advantages. The main purpose of joint calibration is to solve the transformation matrix between 2D cameras and 3D cameras, and convert 2D and 3D data to the same coordinate system through the solved transformation matrix, so as to realize the data fusion of the two.

[0003] The existing technical solutions mainly use 2D cameras and 3D cameras to obtain 2D images and 3D point clouds of static calibration objects in the same field of view, and then establish feature point matching relationships between 2D images and 3D point clouds through feature extraction and feature matching. Then, geometric constraints are established based on the feature point matching relationships, thereby achieving parameter calibration of 2D cameras and 3D cameras. The specific process is generally to first place target objects such as checkerboards, jagged objects, or cylinders as calibration objects in the common field of view of 2D cameras and 3D cameras, and then obtain 2D images and 3D point clouds of the calibration objects. Then extract features such as points, lines, and surfaces in the 2D images and 3D point clouds. Feature matching is performed on 2D images and 3D point clouds based on the features, so as to establish geometric constraint calibration based on the feature matching relationship between 2D images and 3D point clouds.

[0004] However, the existing calibration plates are generally fixed-size and evenly distributed dots or checkerboards. The features of the dot or checkerboard calibration plates are the same. Only in a simple background and without interference, 2D cameras and 3D cameras can obtain accurate and effective images or point clouds of the calibration plates. It is difficult to apply them under conditions of more interference and complex backgrounds. Moreover, the features that can be extracted based on this calibration plate are also relatively simple. Taking the dot calibration plate as an example, it is usually necessary to fully inspect the dots and reconstruct the grid for matching, and the matching failure rate is high. Therefore, the joint calibration method of 2D cameras and 3D cameras based on the existing calibration plate has poor stability and poor applicability. Summary of the invention

[0005] Based on this, it is necessary to provide a joint calibration method, device and equipment for 2D camera and 3D camera to address the above technical problems.

[0006] The present invention adopts the following technical solutions: The present invention provides a joint calibration method for a 2D camera and a 3D camera. The method first obtains image data and point cloud data collected by the 2D camera and the 3D camera and a preset calibration plate, wherein the preset calibration plate includes a plurality of solid dots of different sizes, no overlap and non-uniform distribution, and then respectively extracts first dot data of each dot in the image data and second dot data of each dot in the point cloud data through a dot detection algorithm, thereby determining first dot features of each dot in the image data according to the first dot data, and determining second dot features of each dot in the point cloud data according to the second dot data. Both the first dot features and the second dot features may include some more complex features preset based on the preset calibration plate, thereby subsequently performing feature matching according to the first dot features and the second dot features to determine matching dots in the image data and the point cloud data, and determining a transformation matrix between the image data and the point cloud data according to a plurality of groups of matching dots.

[0007] The present invention provides a joint calibration device for a 2D camera and a 3D camera, comprising: An acquisition module, used to acquire image data acquired by a 2D camera from a preset calibration plate and point cloud data acquired by a 3D camera from a preset calibration plate; wherein the preset calibration plate is marked with a plurality of solid dots of different sizes, non-overlapping and non-uniform distribution; An extraction module, used to extract first dot data of each dot in the image data and second dot data of each dot in the point cloud data; wherein the first dot data and the second dot data include the position and size of each dot; a determination module, configured to determine a first dot feature according to the first dot data, and to determine a second dot feature according to the second dot data; wherein the first dot feature and the second dot feature include at least one of a dot radius of each dot, a distance between each dot and the center of the largest dot, and an angle between a line connecting each dot and the center of the largest dot and a line connecting the largest dot and the center of the second largest dot; The calibration module is used to perform feature matching based on the first dot feature and the second dot feature, determine the matching dots in the image data and the point cloud data, determine the transformation matrix between the image data and the point cloud data based on multiple groups of matching dots, and realize the joint calibration of the 2D camera and the 3D camera.

[0008] The present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the combined calibration method of the 2D camera and the 3D camera is implemented.

[0009] The present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned joint calibration method of a 2D camera and a 3D camera when executing the program.

[0010] At least one of the above technical solutions adopted by the present invention can achieve the following beneficial effects: The present invention collects data from a calibration plate including multiple solid dots of different sizes, non-overlapping and non-uniform distribution through a 2D camera and a 3D camera, which increases the complexity of the calibration plate and makes the feature information contained in the calibration plate richer. In an environment with more interference and complex background, the larger dots can resist interference and ensure the stability of calibration, and the numerous non-uniformly distributed small dots can ensure the accuracy of calibration, providing better support for subsequent feature extraction. In the subsequent feature extraction, the feature of each dot is a personalized feature. Therefore, when solving the transformation matrix between image data and point cloud data, only a small number of dot matching pairs are needed to obtain a more accurate transformation matrix, which reduces the demand for dot matching pairs, improves the success rate of matching calibration, and improves the stability and applicability of the calibration method. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 A schematic flow chart of a joint calibration method for a 2D camera and a 3D camera provided by the present invention; Figure 2 A schematic diagram of a preset calibration plate provided by the present invention; Figure 3 A schematic diagram of a joint calibration device for a 2D camera and a 3D camera provided by the present invention. DETAILED DESCRIPTION

[0012] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0013] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0014] Figure 1 The figure is a flow chart of a joint calibration method of a 2D camera and a 3D camera in the present invention, which specifically includes the following steps: S101: Acquire image data acquired by a 2D camera from a preset calibration plate and point cloud data acquired by a 3D camera from a preset calibration plate; wherein the preset calibration plate is marked with a plurality of solid dots of different sizes, non-overlapping and non-uniform distribution.

[0015] When jointly calibrating a 2D camera and a 3D camera, the server of the business platform usually needs to first obtain image data collected by the 2D camera on a preset calibration plate and point cloud data collected by the 3D camera on the preset calibration plate.

[0016] Traditional calibration plates are generally fixed-size and evenly distributed dots or checkerboards. The basic features of the dot or checkerboard calibration plates are the same, and only 2D and 3D cameras in a simple background and without interference can obtain accurate and effective calibration plate features. However, in actual applications, it is often in an environment with a lot of interference and complex background. At this time, it is difficult for 2D cameras and 3D cameras to obtain the correct calibration plate features, which can easily lead to 2D feature and 3D feature recognition errors, resulting in low feature matching accuracy and calibration failure.

[0017] In this regard, in one or more embodiments of the present invention, the server may be based on Figure 2 The preset calibration plate shown is used to collect image data and point cloud data. Figure 2 Schematic diagram of a preset calibration plate in the present invention. Figure 2 It can be seen that the preset calibration plate in the present invention includes a plurality of solid dots of different sizes, non-overlapping and non-uniform distribution. Preferably, a sufficient number of dots can be set. When the transformation matrix between the image data and the point cloud data is subsequently solved, the more matching dots are used, the more equations can be constructed, and the higher the final calibration accuracy (for example, the minimum number is not less than 40). The radius of each dot in the preset calibration plate is different and has a significant difference, so that the radius of the dot can be used as a significant feature for subsequent identification. Of course, different dots in the preset calibration plate do not intersect to avoid dot recognition errors.

[0018] The server mentioned in the present invention may be a server set on a business platform, or a device such as a desktop computer, a notebook computer, etc. that can execute the solution of the present invention. For the convenience of description, the following description is only based on the server as the execution subject.

[0019] S102: extracting first dot data of each dot in the image data and second dot data of each dot in the point cloud data respectively; wherein the first dot data and the second dot data include the position and size of each dot.

[0020] After acquiring the image data collected by the 2D camera on the preset calibration plate and the point cloud data collected by the 3D camera on the preset calibration plate, the server can extract dots from the image data and the point cloud data respectively through the dot detection algorithm. At present, there are relatively mature dot detection algorithms for extracting dots based on image data and dot detection algorithms for extracting dots based on point cloud data, which will not be described in detail in the present invention.

[0021] Furthermore, when directly extracting dots based on point cloud data, due to the difficulty in obtaining point cloud features, it is usually necessary to carefully design calibration objects to make the point cloud features easy to identify, which often limits the number of feature points and results in poor calibration accuracy. At the same time, the point cloud features are quite different from the image features, making matching difficult and prone to matching failures.

[0022] Based on this, in one or more embodiments of the present invention, the server may first normalize the point cloud data based on the grayscale value range (0-255) according to the point cloud intensity of the point cloud data to determine the grayscale image corresponding to the point cloud data. Then, the second dot data of each dot in the point cloud data is extracted through the dot detection algorithm according to the grayscale image corresponding to the point cloud data. This makes the calibration plate feature extraction simpler (the calibration plate can also be designed to be more complex with more dots), the calibration plate features of the image data and the point cloud data are more unified, and the subsequent matching is more robust.

[0023] S103: Determine the first dot feature of each dot in the image data according to the first dot data, and determine the second dot feature of each dot in the point cloud data according to the second dot data; wherein the first dot feature and the second dot feature both include at least one of the dot radius of each dot, the distance between each dot and the center of the largest dot, and the angle between the line connecting each dot and the center of the largest dot and the line connecting the largest dot and the center of the second largest dot.

[0024] After obtaining the first dot feature corresponding to the image data and the second dot feature corresponding to the point cloud data as described above, the server can further perform dot feature extraction to subsequently determine the transformation matrix between the image data and the point cloud data through feature matching.

[0025] Assume the image data is , the point cloud data is , the center coordinates of each point in the point cloud data can be expressed as C 3d = [ C 3d1 , C 3d2 , …, C 3dn ], In the formula, C 3d Represents the center coordinates of each point in the point cloud data.C 3di Indicates the point cloud data i The coordinates of the center of a circle. n Indicates the total number of dots in the point cloud data. If the second point data is directly obtained from the point cloud data, the corresponding center coordinates here are three-dimensional vectors. If the second point data is obtained from the grayscale image corresponding to the point cloud data, the corresponding center coordinates here are two-dimensional vectors.

[0026] The radius of each point in the point cloud data can be expressed as , , where R 3d Indicates the radius of each dot in the second dot feature, R 3di Indicates the point cloud data i The radius of the dots.

[0027] The center coordinates of each point in the image data can be expressed as , In the formula, C 2d Represents the center coordinates of each point in the image data, C 2di Indicates the image data i The coordinates of the center of the circle, m Represents the total number of dots in the image data.

[0028] The radius of each dot in the image data can be expressed as , , where R 2d Indicates the radius of each point in the first point feature, R 2di Indicates the point cloud data i The radius of the dots.

[0029] The subsequent construction can be based on the radius of the circle and the coordinates of the center of the circle. The descriptor of the first point feature Des 2d ( R 2d , dist 2d , θ 2d ), Des 2d = [ Des 2d1 , Des 2d2 , …, Des 2dm ], where dist2d Represents the distance between the center of each dot in the image data and the center of the largest dot. θ 2d It represents the angle between the line connecting each dot and the center of the largest dot and the line connecting the largest dot and the center of the second largest dot in the image data. Des 2dm Indicates the image data m Here, it is just an example, and the present invention does not limit the specific content of the first dot feature.

[0030] For based on The descriptor of the second dot feature constructed is the same as above and can be expressed as Des 3d ( R 3d , dist 3d , θ 3d ), Des 3d = [ Des 3d1 , Des 3d2 , …, Des 3dn ], where dist 3d Indicates the distance between the center of each point in the point cloud data and the center of the largest point. θ 3d It represents the angle between each point in the point cloud data and the line connecting the center of the largest point and the line connecting the center of the largest point and the center of the second largest point. Des 3dn Indicates the point cloud data n Here is just an example, and the present invention does not limit the specific content of the second dot feature.

[0031] Furthermore, in one or more embodiments of the present invention, the server may also normalize the radius of each dot in the first dot data by the radius of the largest dot in the first dot data, and determine the normalized dot radius of each dot in the first dot data. For each dot in the second dot data, the radius of the dot is normalized by the radius of the largest dot in the second dot data, and determine the normalized dot radius of each dot in the second dot data. This allows all circle radii to be at the same scale, that is, the use of the maximum dot radius for normalization is to reduce the impact of different scales of the 2D camera and the 3D camera, and ensure that the descriptors of the dot features corresponding to the two are at the same scale. Similarly, the distance between the center of each dot and the center of the largest dot can also be normalized by the maximum distance.

[0032] For the angles between each dot and the line connecting the center of the largest dot and the line connecting the center of the largest dot and the second largest dot, take image data as an example to illustrate. For each dot in the image data, the server can determine the angles between the dot and the line connecting the center of the largest dot and the line connecting the center of the largest dot and the second largest dot by the following formula: , .

[0033] in, θ i Indicates the image data i The angle between the line connecting the largest point and the center of the largest point and the line connecting the largest point and the center of the second largest point, Represents the vector connecting the center of the largest circle and the second largest circle in the image data. Indicates the image data i The vector connecting the points and the center of the largest point, | | represents the modulo operation, C second Represents the coordinates of the center of the second largest circle in the image data, C max Represents the coordinates of the center of the largest circle in the image data. C i Indicates the image data i The processing of point cloud data is similar to that of image data, so I will not go into details here.

[0034] S104: Perform feature matching based on the first dot feature and the second dot feature to determine matching dots in the image data and the point cloud data, determine a transformation matrix between the image data and the point cloud data based on multiple groups of matching dots, and implement joint calibration of the 2D camera and the 3D camera.

[0035] After obtaining the first dot feature of each dot in the image data and the second dot feature of each dot in the point cloud data, the server can traverse the second dot feature of each dot in the point cloud data for the first dot feature of each dot in the image data to determine the matching error between each dot in the point cloud data and the dot in the image data. Then, according to the preset error threshold, determine the dot in the point cloud data that matches the dot in the image data, as shown in the following formula: err i = pow ( R 2di - R 3di , 2)+ pow ( θ 2di - θ 3di , 2).

[0036] In the formula,err i It represents the matching error between each point in the point cloud data and the i-th point in the image data. pow() represents the power operation function. The first term in the brackets is the base and the second term is the exponent.

[0037] The matching error can be minimized and satisfy abs ( dist 2di - dist 3dindex )< feature_dist The dot pair is regarded as a dot matching pair .in, dist 2di The image data i The distance between the center of the circle and the center of the largest circle, dist 3dindex Point cloud data index The distance between the center of the circle and the center of the largest circle, The preset threshold for distance can be adjusted according to the visual feature matching in different scenarios to achieve the optimal threshold in different scenarios. i The image data i Dots, index Point cloud data index Dots.

[0038] Finally, the server can establish a 3D to 2D projection transformation model based on the center coordinates of the matching points in the image data and point cloud data, and determine the transformation matrix between the image data and the point cloud data based on the center coordinates of at least 6 groups of matching points in the image data and point cloud data and the 3D to 2D projection transformation model.

[0039] Assume that at most k For the feature matching pair of the first dot feature and the second dot feature, i.e., the dot matching pair, the center coordinates of the corresponding dots can be found according to the dot matching pair: for the image data center coordinates C 2d = [ C 2d1 ( u 1, v 1), C 2d2 ( u 2, v 2), …, C 2dk ( u k , v k )], for the point cloud data center coordinates C 3d= [ C 3d1 ( x 1, y 1, z 1), C 3d2 ( x 2, y 2, z 2),…, C 3dk ( x k , y k , z k )]. In the formula, ( u k , v k ) indicates the k Match the circle points to the center coordinates of the circle points in the image data, ( x k , y k , z k ) indicates the k Match the circle points to the center coordinates of the circle points in the point cloud data.

[0040] According to C 2d = [ C 2d1 ( u 1, v 1), C 2d2 ( u 2, v 2), …, C 2dk ( u k , v k )] and C 3d = [ C 3d1 ( x 1, y 1, z 1), C 3d2 ( x 2, y 2, z 2), …, C 3dk ( x k , y k ,z k )], establish a 3D to 2D projection transformation model: .

[0041] In the formula, is the scale coefficient, which is related to each dot matching pair. After expansion, we can get: , using homogeneous terms to eliminate : .

[0042] There are 12 unknowns in total, and at least 6 matching pairs are needed to calculate the corresponding transformation matrix. k Unify the matching dots in the image data and point cloud data into a matrix form ,in: , .

[0043] Solved by Singular Value Decomposition (SVD) : , we can get the transformation matrix between image data and point cloud data, where: U For the matrix F The unit orthogonal matrix obtained by singular value decomposition is D For the matrix F The diagonal matrix obtained by singular value decomposition is V T For the matrix F The transpose of the identity orthogonal matrix obtained by singular value decomposition.

[0044] Then any point in the point cloud data ( x , y , z ) is transformed to the corresponding point in the image ( u , v )hour: , , .

[0045] based on Figure 1The joint calibration method of the 2D camera and the 3D camera shown in the figure first obtains the image data and the point cloud data collected by the 2D camera and the 3D camera and a preset calibration plate, wherein the preset calibration plate includes a plurality of solid dots of different sizes, non-overlapping and non-uniform distribution, and then respectively extracts the first dot data of each dot in the image data and the second dot data of each dot in the point cloud data through a dot detection algorithm, thereby determining the first dot feature of each dot in the image data according to the first dot data, and determining the second dot feature of each dot in the point cloud data according to the second dot data, wherein both the first dot feature and the second dot feature may include some more complex features preset based on the preset calibration plate, thereby subsequently performing feature matching according to the first dot feature and the second dot feature to determine the matching dots in the image data and the point cloud data, so as to determine the transformation matrix between the image data and the point cloud data according to the plurality of groups of matching dots.

[0046] The present invention uses a 2D camera and a 3D camera to collect data from a calibration plate including multiple solid dots of different sizes, non-overlapping and non-uniform distribution, which increases the complexity of the calibration plate and makes the feature information contained in the calibration plate richer. In an environment with more interference and complex background, the larger dots can resist interference and ensure the stability of calibration, and the numerous non-uniformly distributed small dots can ensure the accuracy of calibration, which provides better support for subsequent feature extraction and improves the stability and applicability of the calibration method.

[0047] In traditional calibration methods, due to the uniform distribution of the calibration plate, the features that can be extracted are often relatively simple and not personalized enough. Taking the traditional dot calibration plate as an example, it is usually necessary to reconstruct the grid of all dots before matching, and the matching failure rate is high. However, the present invention uses a calibration plate with uneven distribution of size and position. In the subsequent feature extraction, the features of each dot are personalized features. Therefore, when solving the transformation matrix between image data and point cloud data, only a small number (at least 6 groups) of dot matching pairs are needed to obtain a more accurate transformation matrix, which reduces the demand for dot matching pairs and improves the success rate of matching calibration. More dot matching pairs can further improve the accuracy of the transformation matrix.

[0048] When applying the joint calibration method of the 2D camera and the 3D camera provided by the present invention, it is not necessary to Figure 1 The steps are executed in the order shown. The specific execution order of the steps can be determined according to needs, and the present invention does not limit this.

[0049] The above is a joint calibration method of a 2D camera and a 3D camera provided by one or more embodiments of the present invention. Based on the same idea, the present invention also provides a corresponding joint calibration device of a 2D camera and a 3D camera, such as Figure 3 shown.

[0050] Figure 3A schematic diagram of a joint calibration device for a 2D camera and a 3D camera provided by the present invention includes: The acquisition module 201 is used to acquire image data acquired by a 2D camera from a preset calibration plate and point cloud data acquired by a 3D camera from a preset calibration plate; wherein the preset calibration plate is marked with a plurality of solid dots of different sizes, non-overlapping and non-uniform distribution; An extraction module 202 is used to extract first dot data of each dot in the image data and second dot data of each dot in the point cloud data; wherein the first dot data and the second dot data include the position and size of each dot; The determination module 203 is used to determine the first dot feature according to the first dot data, and to determine the second dot feature according to the second dot data; wherein the first dot feature and the second dot feature include at least one of the dot radius of each dot, the distance between each dot and the center of the largest dot, and the angle between the line connecting each dot and the center of the largest dot and the line connecting the largest dot and the center of the second largest dot; The calibration module 204 is used to perform feature matching based on the first dot feature and the second dot feature, determine the matching dots in the image data and the point cloud data, determine the transformation matrix between the image data and the point cloud data based on multiple groups of matching dots, and realize the joint calibration of the 2D camera and the 3D camera.

[0051] For the specific definition of the joint calibration device of 2D camera and 3D camera, please refer to the definition of the joint calibration method of 2D camera and 3D camera in the above text, which will not be repeated here. Each module in the above-mentioned joint calibration device of 2D camera and 3D camera can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0052] The present invention also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A joint calibration method for 2D and 3D cameras is provided.

[0053] The present invention also provides a computer device. At the hardware level, the computer device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory. Of course, it may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 A joint calibration method for 2D and 3D cameras is provided.

[0054] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0055] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present invention.

Claims

1. A joint calibration method for 2D camera and 3D camera, It is characterized in that include: Acquire image data acquired by a 2D camera from a preset calibration plate and point cloud data acquired by a 3D camera from a preset calibration plate; wherein the preset calibration plate is marked with a plurality of solid dots of different sizes, non-overlapping and non-uniform distribution; Extracting first dot data of each dot in the image data and second dot data of each dot in the point cloud data respectively; wherein the first dot data and the second dot data include the position and size of each dot; Determine a first dot feature of each dot in the image data according to the first dot data, and determine a second dot feature of each dot in the point cloud data according to the second dot data; wherein the first dot feature and the second dot feature both include at least one of a dot radius of each dot, a distance between each dot and the center of the largest dot, and an angle between a line connecting each dot and the center of the largest dot and a line connecting the largest dot and the center of the second largest dot; Feature matching is performed based on the first dot feature and the second dot feature to determine matching dots in the image data and the point cloud data, and a transformation matrix between the image data and the point cloud data is determined based on multiple groups of matching dots to achieve joint calibration of the 2D camera and the 3D camera.

2. The joint calibration method of a 2D camera and a 3D camera as claimed in claim 1, It is characterized in that The extracting first dot data of each dot in the image data and second dot data of each dot in the point cloud data respectively specifically includes: Extracting first dot data of each dot in the image data by using a dot detection algorithm; Normalizing the point cloud data based on the grayscale value interval according to the point cloud intensity of the point cloud data to determine the grayscale image corresponding to the point cloud data; The second dot data of each dot in the point cloud data is extracted by a dot detection algorithm according to the grayscale image corresponding to the point cloud data.

3. The joint calibration method of a 2D camera and a 3D camera as claimed in claim 1, It is characterized in that The determining of the first dot feature according to the first dot data and the determining of the second dot feature according to the second dot data specifically include: For each dot in the first dot data, normalize the dot radius by the radius of the largest dot in the first dot data to determine the normalized dot radius of each dot in the first dot data; For each dot in the second dot data, the dot radius is normalized by the radius of the largest dot in the second dot data, so as to determine the normalized dot radius of each dot in the second dot data.

4. The joint calibration method of a 2D camera and a 3D camera as claimed in claim 1, It is characterized in that The determining the first dot feature of each dot in the image data according to the first dot data specifically includes: For each dot in the image data, the angle between the line connecting the dot and the center of the largest dot and the line connecting the largest dot and the center of the second largest dot is determined by the following formula: , ; in, θ i Indicates the image data i The angle between the line connecting the largest point and the center of the largest point and the line connecting the largest point and the center of the second largest point, Represents the vector connecting the center of the largest circle and the second largest circle in the image data. Indicates the image data i The vector connecting the points and the center of the largest point, | | represents the modulo operation, m Represents the total number of dots in the image data, C second Represents the coordinates of the center of the second largest circle in the image data, C max Represents the coordinates of the center of the largest circle in the image data. C i Indicates the image data i The coordinates of the center of a circle.

5. The joint calibration method of a 2D camera and a 3D camera as claimed in claim 1, It is characterized in that The performing feature matching according to the first dot feature and the second dot feature to determine matching dots in the image data and the point cloud data specifically includes: For each dot in the image data, the second dot features of each dot in the point cloud data are traversed to determine the matching error between each dot in the point cloud data and the dot in the image data; According to a preset error threshold, a point in the point cloud data that matches the point in the image data is determined.

6. The joint calibration method of a 2D camera and a 3D camera as claimed in claim 1, It is characterized in that The step of determining the transformation matrix between the image data and the point cloud data according to the multiple groups of matched dots specifically includes: A three-dimensional to two-dimensional projection transformation model is established based on the center coordinates of the matching points in the image data and the point cloud data; The transformation matrix between the image data and the point cloud data is determined according to the center coordinates of at least 6 groups of matching points in the image data and the point cloud data and a three-dimensional to two-dimensional projection transformation model.

7. A joint calibration device for a 2D camera and a 3D camera, It is characterized in that include: An acquisition module, used to acquire image data acquired by a 2D camera from a preset calibration plate and point cloud data acquired by a 3D camera from a preset calibration plate; wherein the preset calibration plate is marked with a plurality of solid dots of different sizes, non-overlapping and non-uniform distribution; An extraction module, used to extract first dot data of each dot in the image data and second dot data of each dot in the point cloud data; wherein the first dot data and the second dot data include the position and size of each dot; a determination module, configured to determine a first dot feature according to the first dot data, and to determine a second dot feature according to the second dot data; wherein the first dot feature and the second dot feature include at least one of a dot radius of each dot, a distance between each dot and the center of the largest dot, and an angle between a line connecting each dot and the center of the largest dot and a line connecting the largest dot and the center of the second largest dot; The calibration module is used to perform feature matching based on the first dot feature and the second dot feature, determine the matching dots in the image data and the point cloud data, determine the transformation matrix between the image data and the point cloud data based on multiple groups of matching dots, and realize the joint calibration of the 2D camera and the 3D camera.

8. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. A computer device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • A camera internal reference and relative attitude calibration method and device, an drone and a storage device

    CN111699514A

  • Automatic method for external parameter joint calibration of vehicle-mounted three-dimensional laser radar and camera

    CN111754583A

  • AI eyeball fusing image and laser radar

    CN113792645A

  • Road pit detection method and device based on 3D point cloud semantic segmentation

    CN115131360A

  • Multi-sensor joint calibration method and system

    CN117665730A