Evaluation method, system and electronic device for evaluating RGB-D camera module calibration results
Through feature point detection and matching, the calibration results of the RGB-D camera module are quantitatively evaluated, solving the problems of low efficiency and high cost in the existing technology, and achieving high efficiency for RGB-D camera modules of different models and configurations. Calibration verification.
Patent Information
- Application Number
- CN201911410900.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-12-31
AI Technical Summary
The existing RGB-D camera module calibration and evaluation methods are inefficient, costly and susceptible to human factors. They are difficult to conduct quantitative analysis and cannot be applied to RGB-D camera modules of different models or configurations.
By obtaining the source image and RGB image of the measured target plate, feature point detection and matching are performed, the feature point cloud in the depth point cloud is extracted, and projected to the RGB camera coordinate system, and the error between the projected point and the feature point is calculated. , to quantitatively evaluate the calibration results of the RGB-D camera module.
It achieves quantitative evaluation of the calibration results of RGB-D camera modules, simplifies the calibration verification process, reduces costs, improves efficiency, and is suitable for RGB-D camera modules of different models and configurations.
Smart Images

Figure CN113129380B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of 3D imaging, and in particular to an evaluation method, system and electronic equipment for evaluating calibration results of an RGB-D camera module. Background Art
[0002] In recent years, depth cameras (e.g., RGB-D depth cameras) have been widely used in the field of 3D vision technology.
[0003] The RGB-D camera includes a depth camera module and an RGB camera module, wherein the depth camera module is used to obtain a depth image of the target scene, and the color image of the measured scene is collected through the RGB camera module. Common depth information camera modules include depth camera modules based on the TOF (Time of Flight) principle and camera modules based on the triangulation principle, wherein the depth camera module based on the triangulation principle includes a depth camera module based on speckle structured light and a depth camera module based on coded structured light, as well as active binocular and passive binocular depth camera modules.
[0004] In the process of combining the depth image with the color image to obtain the RGB-D image, since the depth image and the color image are not in the same coordinate system, it is necessary to calibrate the RGB-D depth camera (in order to obtain the intrinsic and extrinsic parameters of the RGB-D depth camera). In other words, the imaging quality of the RGB-D image is related to the calibration accuracy of the RGB-D depth camera. Therefore, it is of great significance to evaluate the calibration accuracy of the RGB-D depth camera.
[0005] The existing evaluation method generally uses a standard CAD model to subjectively evaluate the registration effect of the RGB-D camera to evaluate the quality of the calibration results of the RGB-D depth camera. This evaluation method requires high manpower and material costs, is inefficient, and is easily affected by human factors. It is difficult to quantitatively analyze and is not suitable for the verification of the calibration results of RGB-D depth cameras.
[0006] Therefore, there is a need for an optimized evaluation method, system and electronic device for evaluating the calibration results of an RGB-D camera module. Summary of the invention
[0007] A major advantage of the present invention is that it provides an evaluation method, system and electronic device for evaluating the calibration results of an RGB-D camera module, which can quantitatively evaluate the calibration results of the RGB-D camera module, simplify the calibration verification process, meet the calibration verification requirements of mass-produced RGB-D camera modules, and have low cost and high efficiency.
[0008] Another advantage of the present invention is to provide an evaluation method, system and electronic device for evaluating the calibration results of an RGB-D camera module, which is suitable for RGB-D camera modules of different camera distances, different models or different configurations and has high applicability.
[0009] Other advantages and features of the present invention will become more apparent from the following detailed description and may be realized by means of the instrumentalities and combinations particularly pointed out in the appended claims.
[0010] According to one aspect of the present invention, there is provided a method for evaluating a calibration result of an RGB-D camera module, comprising:
[0011] Acquire a source image, an RGB image, and a depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured;
[0012] Performing feature point detection and feature point matching on the source image and the RGB image, so as to extract first feature points from the source image that match the feature points of the RGB image and second feature points from the RGB image that match the feature points of the source image;
[0013] Extracting a feature point cloud corresponding to the first feature point in the depth point cloud;
[0014] Based on the calibration result of the RGB-D camera module, projecting the feature point cloud to the RGB camera coordinate system to obtain corresponding projection points; and
[0015] Based on the projection point and the second feature point, an error of a calibration result of the RGB-D camera module is determined.
[0016] In one embodiment of the present application, the source image is an IR image captured by an IR camera;
[0017] The method of performing feature point detection and feature point matching on the source image and the RGB image to extract first feature points from the source image that match the feature points of the RGB image and extracting second feature points from the RGB image that match the feature points of the source image includes:
[0018] Performing flag bit detection on the IR image and the RGB image, wherein the flag bit is a specific mark preset on the target plate to be tested; and
[0019] Based on the flag bit, mutually matching feature points are extracted from the IR image and the RGB image respectively, wherein the feature points in the IR image that match the feature points of the RGB image are the first feature points, and the feature points in the RGB image that match the feature points of the IR image are the second feature points.
[0020] In one embodiment of the present application, the target plate to be measured is a circular grid including circles and the specific marks arranged in an array;
[0021] The step of extracting mutually matching feature points from the IR image and the RGB image based on the flag bit includes:
[0022] Based on the flag bit, mutually matching IR circle centers and RGB circle centers are extracted from the IR image and the RGB image respectively, wherein the IR circle center is the first feature point, and the RGB circle center is the second feature point.
[0023] In one embodiment of the present application, the target plate to be measured is a chessboard including squares and specific markings arranged in an array;
[0024] The step of extracting mutually matching feature points from the IR image and the RGB image based on the flag bit includes:
[0025] Based on the flag bit, mutually matching IR checkerboard corner points and RGB checkerboard corner points are extracted from the IR image and the RGB image respectively, wherein the IR checkerboard corner points are the first feature points, and the RGB checkerboard corner points are the second feature points.
[0026] In an embodiment of the present application, extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes:
[0027] Performing plane fitting on a circular point cloud region with a point cloud corresponding to the IR circle center as the center and a preset radius to obtain a ROI point cloud plane;
[0028] Dedistorting the IR circle center;
[0029] Determine a ray starting from the center of the dedistorted IR circle and passing through the optical center of the RGB-D camera module; and
[0030] The intersection point of the ray and the ROI point cloud plane is obtained, wherein the intersection point is a feature point cloud corresponding to the IR point in the depth point cloud.
[0031] In an embodiment of the present application, extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes:
[0032] Performing plane fitting on the square area surrounded by the corner points of the IR chessboard to obtain the ROI point cloud plane;
[0033] Dedistorting the IR checkerboard corner points;
[0034] Determine a ray starting from the dedistorted IR checkerboard corner point and passing through the optical center of the RGB-D camera module; and
[0035] The intersection point of the ray and the ROI point cloud plane is obtained, wherein the intersection point is a feature point cloud corresponding to the IR checkerboard corner point in the depth point cloud.
[0036] In one embodiment of the present application, the source image includes a first image and a second image respectively captured by two monochrome cameras;
[0037] The method of performing feature point detection and feature point matching on the source image and the RGB image to extract first feature points from the source image that match the feature points of the RGB image and extracting second feature points from the RGB image that match the feature points of the source image includes:
[0038] Based on intrinsic and extrinsic parameters between the monochrome cameras, performing stereoscopic correction on the first image and the second image;
[0039] Performing flag detection on the corrected first image, the second image, and the RGB image, wherein the flag is the specific mark preset on the target plate to be tested;
[0040] Based on the flag bit, mutually matching feature points are extracted from the corrected first image, the second image and the RGB image respectively, wherein the matching feature points in the first image and the second image are the first feature points, and the matching feature points in the RGB image are the second feature points.
[0041] In an embodiment of the present application, extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes:
[0042] Based on the internal and external parameters between the first feature point in the first image and the second image and the monochrome camera, a depth point cloud corresponding to the first feature point is determined as the feature point point cloud.
[0043] In an embodiment of the present application, determining an error of a calibration result of the RGB-D camera module based on the projection point and the second feature point includes:
[0044] The average value and standard deviation of the offset between the projection point and the second feature point are determined as the error of the calibration result of the RGB-D camera module.
[0045] According to another aspect of the present application, there is also provided an evaluation system for evaluating the calibration result of an RGB-D camera module, comprising:
[0046] An image acquisition unit, used to acquire a source image, an RGB image and a depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured;
[0047] a feature point extraction unit, performing feature point detection and feature point matching on the source image and the RGB image, so as to extract first feature points from the source image that match the feature points of the RGB image and second feature points from the RGB image that match the feature points of the source image;
[0048] A feature point cloud extraction unit, used to extract a feature point cloud corresponding to the first feature point in the depth point cloud;
[0049] A projection unit, configured to project the feature point cloud to an RGB camera coordinate system based on a calibration result of the RGB-D camera module to obtain corresponding projection points; and
[0050] An error determination unit is used to determine the error of the calibration result of the RGB-D camera module based on the projection point and the second feature point.
[0051] According to another aspect of the present application, there is also provided an electronic device, including:
[0052] Processor; and
[0053] A memory stores computer program instructions, which, when executed by the processor, cause the processor to perform the evaluation method.
[0054] Further objects and advantages of the present invention will be fully apparent from an understanding of the following description and the accompanying drawings.
[0055] These and other objects, features and advantages of the present invention will be more fully understood from the following detailed description, accompanying drawings and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 The figure illustrates a method flow chart of an evaluation method for evaluating RGB-D camera module calibration results according to a preferred embodiment of the present application.
[0057] Figure 2The figure shows a schematic plan view of a target plate to be tested according to a first specific example of the evaluation method according to a preferred embodiment of the present application.
[0058] Figure 3 The figure illustrates a flow chart of a method for obtaining a first feature point and a second feature point according to a first specific example of the evaluation method in a preferred embodiment of the present application.
[0059] Figure 4 The figure illustrates a flow chart of a method for extracting feature point cloud according to a first specific example of the evaluation method in a preferred embodiment of the present application.
[0060] Figure 5 The figure shows a schematic plan view of a target plate to be tested according to a second specific example of the evaluation method according to a preferred embodiment of the present application.
[0061] Figure 6 A flowchart of a method for obtaining first feature points and second feature points according to a second specific example of the evaluation method according to a preferred embodiment of the present application is illustrated.
[0062] Figure 7 The figure illustrates a flow chart of a method for extracting feature point cloud according to a second specific example of the evaluation method according to a preferred embodiment of the present application.
[0063] Figure 8 The figure illustrates a flow chart of a method for obtaining the first feature point and the second feature point according to a third specific example of the evaluation method of a preferred embodiment of the present application.
[0064] Fig. 9 The figure illustrates a module block diagram of an evaluation system for evaluating RGB-D camera module calibration results according to a preferred embodiment of the present application.
[0065] Fig.10 The figure illustrates a structural block diagram of an electronic device for evaluating the calibration results of an RGB-D camera module according to a preferred embodiment of the present application. DETAILED DESCRIPTION
[0066] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.
[0067] Those skilled in the art should understand that, in the disclosure of the present invention, the terms "longitudinal", "laterally", "upward", "downward", "forward", "backward", "left", "right", "vertical", "straight horizontal", "flat top", "flat bottom", "flat inside", "flat outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the above terms should not be understood as limiting the present invention.
[0068] It is to be understood that the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, while in another embodiment, the number of the element may be multiple, and the term "one" should not be understood as a limitation on the quantity.
[0069] Example evaluation method for evaluating RGB-D camera module calibration results
[0070] like Figure 1 The flowchart of the method for evaluating the calibration result of the RGB-D camera module according to the preferred embodiment of the present application is shown. Figure 1 As shown, the evaluation method according to the preferred embodiment of the present application includes:
[0071] Acquire a source image, an RGB image, and a depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured;
[0072] Performing feature point detection and feature point matching on the source image and the RGB image, so as to extract first feature points from the source image that match the feature points of the RGB image and second feature points from the RGB image that match the feature points of the source image;
[0073] Extracting a feature point cloud corresponding to the first feature point in the depth point cloud;
[0074] Based on the calibration result of the RGB-D camera module, projecting the feature point cloud to the RGB camera coordinate system to obtain corresponding projection points; and
[0075] Based on the projection point and the second feature point, an error of a calibration result of the RGB-D camera module is determined.
[0076] It should be noted that the RGB-D camera module includes a depth camera module and an RGB camera module, wherein the depth camera module is used to capture and obtain the source image and depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured, wherein the RGB camera module is used to capture and obtain the RGB image of the target plate to be measured, such as an RGB camera module or an RGB camera. In this embodiment, D in the RGB-D camera module represents the depth camera module, wherein the depth camera module can be an IR camera based on TOF technology (or an IR camera module, or an infrared camera / camera module, etc.) or an IR camera and a monochrome camera based on the principle of triangulation (such as speckle structured light, binocular depth camera or camera module), etc., to collect the source image and depth point cloud of the target plate to be measured. The IR camera includes but is not limited to a TOF depth information camera module, a speckle structured light depth information camera module, and a coded structured light depth camera module, etc., which are not limited here.
[0077] In this embodiment, the target plate to be measured has a specific mark 101, and the target plate to be measured is a plane target plate, wherein the front end surface of the RGB-D camera module is substantially parallel to the target plate to be measured, and the optical center connection line between the depth camera module and the RGB camera module is roughly aligned with the specific mark 101 of the target plate to be measured. Further, the specific mark is located at the center of the target plate to be measured, wherein the optical center connection line is roughly aligned with the center of the target plate to be measured. Furthermore, there is a preset measurement distance between the RGB-D camera module and the target plate to be measured, and the measurement distance is preset according to the effective shooting distance of the RGB-D camera module. Furthermore, the measuring distance is adjustable, that is, the distance between the RGB-D camera module and the measured target plate can be adjusted to adapt to RGB-D camera modules of different camera distances, different models or different configurations, and has high universality, such as moving the RGB-D camera module or the measured target plate by movable devices such as slide rails and stepper motors, etc., which is not limited here.
[0078] Furthermore, during the process of the RGB-D camera module collecting data, one or more fill lights can be used for fill light. For example, the fill lights can be set around the measured target plate or around the RGB-D camera module. Furthermore, the measured target plate can be attached to a white wall or a white background to ensure the quality of the collected data of the RGB-D camera module.
[0079] It should be pointed out that the depth camera module of the RGB-D camera module can collect and obtain the source image and the depth point cloud and the RGB camera module can collect and obtain the RGB image at the same time, that is, the source image and the depth point cloud are collected and obtained by the depth camera module, and the RGB image is collected and obtained by the RGB camera module. Alternatively, the depth camera module collects and obtains the source image and the depth point cloud and the RGB camera module collects and obtains the RGB image separately. For example, turn off the fill light, and the depth camera module collects and obtains the depth point cloud of the measured target plate. Then, turn on the fill light, and the depth camera module collects and obtains the source image of the measured target plate, and the RGB camera module collects and obtains the RGB image.
[0080] In the first specific example of the present application, in the evaluation method, the source image is an IR image captured by an IR camera, the depth camera module is an IR camera or an IR camera module, and the IR camera is used to acquire an IR image (or infrared image) of the target plate to be measured, that is, the source image is the IR image acquired by the IR camera. For example, in the first specific example, the IR camera includes a TOF depth information camera module (or a TOF depth information camera module or camera), which acquires the IR image by projecting laser through a projector.
[0081] The method of performing feature point detection and feature point matching on the source image and the RGB image to extract first feature points from the source image that match the feature points of the RGB image and extracting second feature points from the RGB image that match the feature points of the source image includes:
[0082] Performing flag bit detection on the IR image and the RGB image, wherein the flag bit is a specific mark preset on the target plate to be tested; and
[0083] Based on the flag bit, mutually matching feature points are extracted from the IR image and the RGB image respectively, wherein the feature points in the IR image that match the feature points of the RGB image are the first feature points, and the feature points in the RGB image that match the feature points of the IR image are the second feature points.
[0084] In the first specific example of the present application, Figure 3 As shown, in the evaluation method, the target plate to be measured is a circular grid including circles arranged in an array and the specific markings;
[0085] The step of extracting mutually matching feature points from the IR image and the RGB image based on the flag bit includes:
[0086] Based on the flag bit, mutually matching IR circle centers and RGB circle centers are extracted from the IR image and the RGB image respectively, wherein the IR circle center is the first feature point, and the RGB circle center is the second feature point.
[0087] In one embodiment of the present application, in the evaluation method, if Figure 2 As shown, further, the measured target plate is a circular grid including circles 102 and the specific identification 101 arranged in an array. The overall size of the measured target plate and the size, arrangement and number of the circles 101 in the grid can be adjusted in proportion according to the distance to be measured of the RGB-D camera module, and are not limited here. Further, the specific identification 101 can also be a circle of a preset size, and the specific identification 101 is preferably located at the center of the circular grid.
[0088] For example, the growth method is used to extract mutually matching IR center and RGB center from the IR image and the RGB image by region by taking the flag as the starting point. In detail, the centers of all the circles 102 are searched in the IR image and the RGB image by region (such as by regions in four directions of up, down, left, and right) by taking the flag as the starting point, and then the centers of the circles 102 in corresponding positions are matched according to the number of centers of the circles 102 in the detected rows and columns, so as to obtain mutually matching IR center and RGB center. In other words, the center of the flag is extracted, and then the center of the flag is taken as the midpoint as the center of the coordinate system, and the X-direction deviation of the center of the flag is taken as the initial search angle, and the IR center and RGB center are sequentially grown in four directions of up, down, left, and right to obtain mutually matching IR center and RGB center in the IR image and the RGB image with sub-pixel accuracy.
[0089] In the first specific example of the present application, Figure 4 As shown, in the evaluation method, extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes:
[0090] Performing plane fitting on a circular point cloud region with a point cloud corresponding to the IR circle center as the center and a preset radius to obtain a ROI point cloud plane;
[0091] Dedistorting the IR circle center;
[0092] Determine a ray starting from the center of the dedistorted IR circle and passing through the optical center of the RGB-D camera module; and
[0093] The intersection of the ray and the ROI point cloud plane is obtained, wherein the intersection is a feature point cloud corresponding to the IR point in the depth point cloud. Alternatively, the feature point cloud may include point cloud information corresponding to the feature point and the feature point cloud calculated based on the point cloud information.
[0094] It can be understood that by presetting the radius size of the circular point cloud area with a preset radius, the area size of the ROI point cloud plane can be preset.
[0095] In the first specific example, specifically, based on the calibration result of the RGB-D camera module, the feature point cloud is projected to the RGB camera coordinate system to obtain the corresponding projection point, and a camera projection model (as shown in the following formula 1) is used to project the feature point cloud to the RGB camera coordinate system, that is, the feature point cloud is projected to the RGB image coordinate system to obtain the corresponding projection point coordinates.
[0096]
[0097]
[0098] Formula 1
[0099] Furthermore, in determining the error of the calibration result of the RGB-D camera module based on the projection point and the second feature point, the coordinate deviation between the projection point and the second feature point is used to determine the error of the calibration result of the RGB-D camera module, thereby achieving quantitative evaluation of the calibration result of the RGB-D camera module, simplifying the calibration verification process, meeting the calibration verification requirements of mass-produced RGB-D camera modules, and having low cost and high efficiency.
[0100] Furthermore, the average value and standard deviation of the offset (coordinate offset) between the projection point and the second feature point are determined as the error of the calibration result of the RGB-D camera module, so as to evaluate the quality of the overall calibration result of the RGB-D camera module, the system alignment error and the stability between different image areas.
[0101] In the second specific example of the present application, the depth camera module is an IR camera or an IR camera module, and the IR camera is used to acquire an IR image (or infrared image) of the target plate to be measured, that is, the source image is the IR image acquired by the IR camera. For example, in the second specific example, the IR camera includes a speckle structured light depth information camera module (or a monocular speckle structured light depth information camera module or camera), which acquires the IR image of the target plate to be measured by projecting speckle structured light processed by a specific optical system through a projector. Alternatively, the IR camera includes a coded structured light depth information camera module (or a coded structured light depth information camera module or camera), which acquires the IR image of the target plate to be measured by projecting coded structured light processed by a specific optical system through a projector.
[0102] Wherein, when obtaining the source image, RGB image and depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured, the IR image and the depth point cloud collected by the IR camera, wherein the IR image is used to determine the depth point cloud, and the RGB image collected by the RGB camera module.
[0103] Performing marker detection on the IR image and the RGB image, wherein the marker is the specific mark preset on the target plate to be measured, and extracting mutually matching feature points from the IR image and the RGB image based on the marker, wherein the feature points in the IR image that match the feature points of the RGB image are the first feature points, and the feature points in the RGB image that match the feature points of the IR image are the second feature points.
[0104] In the second specific example, if Figure 5 As shown, the target plate to be measured is a chessboard including squares 103 and the specific identification 101 arranged in an array manner. The overall size of the target plate to be measured and the size, arrangement and number of the squares 103 in the grid can be adjusted in proportion according to the distance to be measured of the RGB-D camera module, without limitation here. Furthermore, the specific identification 101 can be a circle of a preset size, and the specific identification 101 is preferably located at the center of the chessboard. Personnel familiar with the art will know that the target plate to be measured can also be implemented as a graphic structure of circles, squares, polygons or irregular figures arranged in a non-array manner, without limitation here.
[0105] Furthermore, if Figure 6As shown, the IR image and the RGB image are subjected to marker detection, wherein the marker is a specific mark 101 preset on the target plate to be tested, and mutually matching IR checkerboard corner points and RGB checkerboard corner points are extracted from the IR image and the RGB image respectively based on the marker, wherein the IR checkerboard corner points are the first feature points, and the RGB checkerboard corner points are the second feature points.
[0106] For example, the growing method is used to extract mutually matching IR checkerboard corner points and RGB checkerboard corner points from the IR image and the RGB image by region by taking the flag as the starting point. In detail, the IR image and the RGB image are searched for all corner points of the squares 103 by region (such as by regions in four directions of up, down, left, and right) by taking the flag as the starting point, and then matching the corner points of the corresponding positions is performed according to the number of corner points of the squares 103 in the detected rows and columns, so as to obtain mutually matching IR checkerboard corner points and RGB checkerboard corner points. In other words, the center of the circle of the flag is extracted, and then the center of the circle of the flag is taken as the midpoint as the center of the coordinate system, and the X-direction deviation of the center of the circle of the flag is taken as the initial search angle, and the four directions of up, down, left, and right are sequentially grown to obtain mutually matching IR checkerboard corner points and RGB checkerboard corner points in the IR image and the RGB image with sub-pixel accuracy.
[0107] In the evaluation method, such as Figure 7 As shown, wherein extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes:
[0108] Performing plane fitting on the square area surrounded by the corner points of the IR chessboard to obtain the ROI point cloud plane;
[0109] Dedistorting the IR checkerboard corner points;
[0110] Determine a ray starting from the dedistorted IR checkerboard corner point and passing through the optical center of the RGB-D camera module; and
[0111] The intersection point of the ray and the ROI point cloud plane is obtained, wherein the intersection point is a feature point cloud corresponding to the IR checkerboard corner point in the depth point cloud.
[0112] It is worth mentioning that in the method, the ROI quadrilateral area is drawn according to the corner point coordinates corresponding to the upper left, upper right, lower left and lower right positions of the square 103 on the IR image returned according to the IR checkerboard corner points, and then the point cloud in the ROI quadrilateral area is extracted for plane fitting to obtain the ROI point cloud plane.
[0113] In the process of projecting the feature point cloud to the RGB camera coordinate system based on the calibration result of the RGB-D camera module to obtain the corresponding projection point, specifically, the feature point cloud is projected to the RGB camera coordinate system using a camera projection model (as shown in Formula 1), that is, the feature point cloud is projected to the RGB image coordinate system to obtain the corresponding projection point coordinates. Based on the projection point and the second feature point, the error of the calibration result of the RGB-D camera module is determined for quantitative evaluation of the calibration result of the RGB-D camera module.
[0114] In the third specific example of the present application, the depth camera module is two monochrome cameras, such as a binocular depth camera, and the source image includes a first image and a second image respectively captured by the two monochrome cameras. For example, the front end surfaces of the two monochrome cameras are parallel to the target plate to be measured, and the optical centers of the monochrome camera and the RGB camera are roughly aligned with the identification position of the target plate to be measured. Optionally, a fill light can be used to fill light the monochrome camera, wherein the fill light is placed around the monochrome camera, or the fill light is placed around the target plate to be measured.
[0115] like Figure 8 As shown, in the evaluation method, in acquiring the source image, RGB image and depth point cloud of the target plate to be measured, the source image is the first image and the second image captured by the two monochrome cameras, and the first image and the second image are used to determine the depth point cloud of the target plate to be measured. That is, the first image and the second image captured by the two monochrome cameras, wherein the first image and the second image are used to determine the depth point cloud, and the RGB image captured by the RGB camera module.
[0116] In the method, feature point detection and feature point matching are performed on the source image and the RGB image, so as to extract first feature points from the source image that match the feature points of the RGB image and second feature points from the RGB image that match the feature points of the source image. Specifically, based on the internal and external parameters between the two monochrome cameras, stereoscopic correction is performed on the first image and the second image, and the mark position detection is performed on the corrected first image, the second image and the RGB image, wherein the mark position is the specific mark preset on the target plate to be measured, and based on the mark position, mutually matching feature points are extracted from the corrected first image, the second image and the RGB image, respectively, wherein the matching feature points in the first image and the second image are the first feature points, and the matching feature points in the RGB image are the second feature points.
[0117] It should be noted that, in the method, distortion correction and epipolar line correction are performed on the first image and the second image so that the epipolar lines of the first image and the second image are aligned to obtain the corrected first image and the second image.
[0118] In the third specific example, the target plate to be measured is a circular grid including circles 102 arranged in an array and the specific identification 101. The overall size of the target plate to be measured and the size, arrangement and number of the circles 101 in the grid can be adjusted in proportion to the distance to be measured of the RGB-D camera module, and are not limited here. Furthermore, the specific identification 101 can also be a circle of a preset size, and the specific identification 101 is preferably located at the center of the circular grid.
[0119] Furthermore, based on the flag bit, a first circle center, a second circle center and an RGB circle center that match each other are extracted from the corrected image and the RGB image respectively, wherein the first circle center and the second circle center that match each other in a common area of the first image and the second image are the first feature point, and the RGB circle center is the second feature point.
[0120] For example, the first center of the circle, the second center of the circle and the RGB center that match each other are extracted from the first image, the second image and the RGB image by using the growth method in different regions with the flag as the starting point. In detail, the centers of all the circles 102 are searched in the first image, the second image and the RGB image by using the flag as the starting point (such as by the four directions of up, down, left and right), and then the centers of the circles in the corresponding positions are matched according to the number of the centers of the circles 102 in the detected rows and columns, so as to obtain the first center of the circle, the second center of the circle and the RGB center that match each other. In other words, the center of the circle is extracted from the flag, and then the center of the circle of the flag is taken as the midpoint as the center of the coordinate system, and the X-direction deviation of the center of the circle of the flag is taken as the initial search angle, and the first center of the circle, the second center of the circle and the RGB center that match each other are obtained in the first image, the second image and the RGB image with sub-pixel accuracy.
[0121] It is worth mentioning that, after the first image and the second image are rectified, the first circle center and the second circle center that match each other in the common area of the first image and the second image are defined as the first feature point.
[0122] In the method, based on the internal and external parameters between the first feature point in the first image and the second image and the monochrome camera, the depth point cloud corresponding to the first feature point is determined as the feature point point cloud. Specifically, based on the internal and external parameters between the first feature point in the first image and the second image and the monochrome camera, the disparity corresponding to the first feature point is converted into a corresponding depth point cloud using the binocular triangulation principle.
[0123] Optionally, the target plate to be measured is a chessboard including squares 103 and the specific identification 101 arranged in an array. The overall size of the target plate to be measured and the size, arrangement and number of the squares 103 in the grid can be adjusted in proportion according to the distance to be measured of the RGB-D camera module, without limitation here. Furthermore, the specific identification 101 can be a circle of a preset size, and the specific identification 101 is preferably located at the center of the chessboard. It is known to those familiar with the art that the target plate to be measured can also be implemented as a graphic structure of circles, ellipses, squares, polygons or irregular figures arranged in a non-array manner, without limitation here.
[0124] Furthermore, in the method, first chessboard corner points, second chessboard corner points and RGB chessboard corner points that match each other are extracted from the first image, the second image and the RGB image respectively based on the flag bits, wherein the first chessboard corner points and the second chessboard corner points that match each other in the common area of the first image and the second image are the first feature points, and the RGB chessboard corner points are the second feature points.
[0125] For example, the first checkerboard corner point, the second checkerboard corner point and the RGB checkerboard corner point that match each other are extracted from the first image, the second image and the RGB image by using the growth method in different regions with the flag as the starting point. In detail, the first image, the second image and the RGB image are searched for all the corner points of the square 103 by using the flag as the starting point in different regions (such as by different regions in four directions of up, down, left and right), and then the corner points of the corresponding positions are matched according to the number of corner points of the square 103 in the detected rows and columns, so as to obtain the first checkerboard corner point, the second checkerboard corner point and the RGB checkerboard corner point that match each other. In other words, the center of the circle of the flag is extracted, and then the center of the circle of the flag is taken as the midpoint as the center of the coordinate system, and the X-direction deviation of the center of the circle of the flag is taken as the initial search angle, and the first checkerboard corner point, the second checkerboard corner point and the RGB checkerboard corner point that match each other are obtained in the first image, the second image and the RGB image with sub-pixel accuracy.
[0126] It is worth mentioning that, after the first image and the second image are rectified, the first checkerboard corner points and the second checkerboard corner points that match each other in the common area of the first image and the second image are defined as the first feature points.
[0127] In the method, based on the internal and external parameters between the first feature point in the first image and the second image and the monochrome camera, the depth point cloud corresponding to the first feature point is determined as the feature point point cloud. Specifically, based on the internal and external parameters between the first feature point in the first image and the second image and the monochrome camera, the disparity corresponding to the first feature point is converted into a corresponding depth point cloud using the binocular triangulation principle.
[0128] In the method, based on the calibration result of the RGB-D camera module, the feature point cloud is projected to the RGB camera coordinate system to obtain the corresponding projection point. Specifically, the feature point cloud is projected to the RGB camera coordinate system using a camera projection model (as shown in Formula 1), that is, the feature point cloud is projected to the RGB image coordinate system to obtain the corresponding projection point coordinates.
[0129] In the method, based on the projection point and the second feature point, the error of the calibration result of the RGB-D camera module is determined for quantitative evaluation of the calibration result of the RGB-D camera module. In other words, the coordinate deviation between the projection point and the second feature point is used to determine the error of the calibration result of the RGB-D camera module, thereby achieving quantitative evaluation of the calibration result of the RGB-D camera module, simplifying the calibration verification process, meeting the calibration verification requirements of mass-produced RGB-D camera modules, and having low cost and high efficiency.
[0130] Furthermore, in the method, the average value and standard deviation of the offset (coordinate offset) between the projection point and the second feature point are determined as the error of the calibration result of the RGB-D camera module, so as to evaluate the quality of the overall calibration result of the RGB-D camera module, the system alignment error and the stability between different image areas.
[0131] Example evaluation system for RGB-D camera module calibration results
[0132] Fig. 9 A block diagram of an evaluation system for RGB-D camera module calibration results according to a preferred embodiment of the present application is shown. Fig. 9As shown, the evaluation system according to the preferred embodiment of the present application includes: an image acquisition unit 10, a feature point extraction unit 20, a feature point cloud extraction unit 30, a projection unit 40 and an error determination unit 50, which are used to realize quantitative evaluation of the calibration results of the RGB-D camera module.
[0133] The image acquisition unit 10 is used to acquire a source image, an RGB image and a depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured;
[0134] The feature point extraction unit 20 performs feature point detection and feature point matching on the source image and the RGB image, so as to extract first feature points from the source image that match the feature points of the RGB image and second feature points from the RGB image that match the feature points of the source image;
[0135] The feature point cloud extraction unit 30 is used to extract the feature point cloud corresponding to the first feature point in the depth point cloud;
[0136] The projection unit 40 is used to project the feature point cloud to the RGB camera coordinate system based on the calibration result of the RGB-D camera module to obtain corresponding projection points; and
[0137] The error determination unit 50 is used to determine the error of the calibration result of the RGB-D camera module based on the projection point and the second feature point.
[0138] In a specific example of the present application, the source image is an IR image captured by an IR camera.
[0139] The target plate to be measured is a circular grid including circles arranged in an array and the specific marks. The feature point extraction unit 20 is used to extract mutually matching IR circle centers and RGB circle centers from the IR image and the RGB image respectively based on the flag bits, wherein the IR circle center is the first feature point and the RGB circle center is the second feature point.
[0140] Among them, the feature point cloud extraction unit 30 is used to perform plane fitting on a circular point cloud area with the point cloud corresponding to the IR circle center as the center and a preset radius to obtain a ROI point cloud plane; dedistort the IR circle center; determine a ray with the dedistorted IR circle center as the starting point and passing through the optical center of the RGB-D camera module; and obtain the intersection of the ray and the ROI point cloud plane, wherein the intersection is a feature point cloud corresponding to the IR point in the depth point cloud.
[0141] In a specific example of the present application, the target plate to be measured is a chessboard including squares and specific markings arranged in an array;
[0142] The feature point extraction unit 20 is used to extract mutually matching IR checkerboard corner points and RGB checkerboard corner points from the IR image and the RGB image respectively based on the flag bit, wherein the IR checkerboard corner points are the first feature points and the RGB checkerboard corner points are the second feature points.
[0143] Among them, the feature point cloud extraction unit 30 is used to perform plane fitting on the square area surrounded by the IR checkerboard corner points to obtain the ROI point cloud plane; dedistort the IR checkerboard corner points; determine the ray starting from the dedistorted IR checkerboard corner points and passing through the optical center of the RGB-D camera module; and obtain the intersection of the ray and the ROI point cloud plane, wherein the intersection is the feature point cloud corresponding to the IR checkerboard corner points in the depth point cloud.
[0144] In a specific example of the present application, the source image includes a first image and a second image respectively captured by two monochrome cameras.
[0145] Among them, the feature point extraction unit 20 includes a function for performing stereo correction on the first image and the second image based on the internal and external parameters between the monochrome cameras; performing marker detection on the corrected first image, the second image and the RGB image, wherein the marker is the specific mark preset on the measured target plate; based on the marker, mutually matching feature points are extracted from the corrected first image, the second image and the RGB image, respectively, wherein the matching feature points in the first image and the second image are the first feature points, and the matching feature points in the RGB image are the second feature points.
[0146] The feature point cloud extraction unit 30 is used to determine the depth point cloud corresponding to the first feature point as the feature point cloud based on the internal and external parameters between the first feature point in the first image and the second image and the monochrome camera.
[0147] In the evaluation method, the error determination unit is used to determine the average value and standard deviation of the offset between the projection point and the second feature point as the error of the calibration result of the RGB-D camera module.
[0148] Exemplary Electronic Devices
[0149] like Fig.10 An electronic device provided by the present application is shown, such as Fig.10As shown, the electronic device includes:
[0150] Processor 201; and
[0151] A memory 202, in which computer program instructions are stored. When the computer program instructions are executed by the processor 201, the processor 201 executes the evaluation method for evaluating the calibration result of the RGB-D camera module.
[0152] The processor 201 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0153] The memory 202 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 201 may execute the program instructions to implement the methods of the various embodiments of the present invention described above and / or other desired functions.
[0154] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0155] For example, the input device may be a camera module for collecting image data or video data, etc.
[0156] The output device can output various information to the outside, including classification results, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0157] Of course, for simplicity, the figure only shows some of the components related to the present invention in the electronic device, omitting components such as bus, input / output interface, etc. In addition, according to specific application conditions, the electronic device may also include any other appropriate components.
[0158] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0159] The block diagrams of the devices, devices, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0160] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0161] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0162] It should be understood by those skilled in the art that the embodiments of the present invention described above and shown in the accompanying drawings are only examples and do not limit the present invention. The purpose of the present invention has been fully and effectively achieved. The functional and structural principles of the present invention have been demonstrated and explained in the embodiments, and the embodiments of the present invention may be deformed or modified in any way without departing from the principles.
Claims
1. A method for evaluating the calibration results of an RGB-D camera module, characterized in that: include: Acquire a source image, an RGB image, and a depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured; Performing feature point detection and feature point matching on the source image and the RGB image, so as to extract first feature points from the source image that match the feature points of the RGB image and second feature points from the RGB image that match the feature points of the source image; Extracting a feature point cloud corresponding to the first feature point in the depth point cloud; Based on the calibration result of the RGB-D camera module, projecting the feature point cloud to the RGB camera coordinate system to obtain corresponding projection points; and Based on the projection point and the second feature point, an error of a calibration result of the RGB-D camera module is determined.
2. The evaluation method according to claim 1, wherein: The source image is an IR image captured by an IR camera; The method of performing feature point detection and feature point matching on the source image and the RGB image to extract first feature points from the source image that match the feature points of the RGB image and extracting second feature points from the RGB image that match the feature points of the source image includes: Performing flag bit detection on the IR image and the RGB image, wherein the flag bit is a specific mark preset on the target plate to be tested; and Based on the flag bit, mutually matching feature points are extracted from the IR image and the RGB image respectively, wherein the feature points in the IR image that match the feature points of the RGB image are the first feature points, and the feature points in the RGB image that match the feature points of the IR image are the second feature points.
3. The evaluation method according to claim 2, wherein: The target plate to be measured is a circular grid including circles arranged in an array and the specific marks; The step of extracting mutually matching feature points from the IR image and the RGB image based on the flag bit includes: Based on the flag bit, mutually matching IR circle centers and RGB circle centers are extracted from the IR image and the RGB image respectively, wherein the IR circle center is the first feature point, and the RGB circle center is the second feature point.
4. The evaluation method according to claim 2, wherein: The target plate to be measured is a chessboard including squares arranged in an array and specific markings; The step of extracting mutually matching feature points from the IR image and the RGB image based on the flag bit includes: Based on the flag bit, mutually matching IR checkerboard corner points and RGB checkerboard corner points are extracted from the IR image and the RGB image respectively, wherein the IR checkerboard corner points are the first feature points, and the RGB checkerboard corner points are the second feature points.
5. The evaluation method according to claim 3, wherein: Extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes: Performing plane fitting on a circular point cloud region with a point cloud corresponding to the IR circle center as the center and a preset radius to obtain a ROI point cloud plane; Dedistorting the IR circle center; Determine a ray starting from the center of the dedistorted IR circle and passing through the optical center of the RGB-D camera module; and The intersection point of the ray and the ROI point cloud plane is obtained, wherein the intersection point is a feature point cloud corresponding to the IR point in the depth point cloud.
6. The evaluation method according to claim 4, wherein: Extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes: Performing plane fitting on the square area surrounded by the corner points of the IR chessboard to obtain the ROI point cloud plane; Dedistorting the IR checkerboard corner points; Determine a ray starting from the dedistorted IR checkerboard corner point and passing through the optical center of the RGB-D camera module; and The intersection point of the ray and the ROI point cloud plane is obtained, wherein the intersection point is a feature point cloud corresponding to the IR checkerboard corner point in the depth point cloud.
7. The evaluation method according to claim 1, wherein: The source image includes a first image and a second image respectively captured by two monochrome cameras; The method of performing feature point detection and feature point matching on the source image and the RGB image to extract first feature points from the source image that match the feature points of the RGB image and extracting second feature points from the RGB image that match the feature points of the source image includes: Based on intrinsic and extrinsic parameters between the monochrome cameras, performing stereoscopic correction on the first image and the second image; Performing flag detection on the corrected first image, the second image, and the RGB image, wherein the flag is a specific mark preset on the target plate to be tested; Based on the flag bit, mutually matching feature points are extracted from the corrected first image, the second image and the RGB image respectively, wherein the matching feature points in the first image and the second image are the first feature points, and the matching feature points in the RGB image are the second feature points.
8. The evaluation method according to claim 7, wherein: Extracting a feature point cloud corresponding to the first feature point in the depth point cloud includes: Based on the internal and external parameters between the first feature point in the first image and the second image and the monochrome camera, a depth point cloud corresponding to the first feature point is determined as the feature point point cloud.
9. The evaluation method according to any one of claims 1 to 8, wherein: Determining an error of a calibration result of the RGB-D camera module based on the projection point and the second feature point includes: The average value and standard deviation of the offset between the projection point and the second feature point are determined as the error of the calibration result of the RGB-D camera module.
10. An evaluation system for evaluating RGB-D camera module calibration results, characterized in that: include: An image acquisition unit, used to acquire a source image, an RGB image and a depth point cloud of the target plate to be measured, wherein the source image is used to determine the depth point cloud of the target plate to be measured; a feature point extraction unit, performing feature point detection and feature point matching on the source image and the RGB image, so as to extract first feature points from the source image that match the feature points of the RGB image and second feature points from the RGB image that match the feature points of the source image; A feature point cloud extraction unit, used to extract a feature point cloud corresponding to the first feature point in the depth point cloud; A projection unit, configured to project the feature point cloud to an RGB camera coordinate system based on a calibration result of the RGB-D camera module to obtain corresponding projection points; and An error determination unit is used to determine the error of the calibration result of the RGB-D camera module based on the projection point and the second feature point.
11. An electronic device, characterized in that: include: processor; as well as A memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the evaluation method according to any one of claims 1 to 9.
