A multi-view point cloud autonomous registration method based on a rotating table and its application
Through the multi-view point cloud autonomous registration method based on the rotating table, using the rotating disk calibration and point cloud transformation matrix set, the problems of low efficiency and insufficient accuracy of multi-view point cloud registration in the existing technology are solved, and efficient three-dimensional Model reconstruction.
Patent Information
- Application Number
- CN202210350267.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-04
AI Technical Summary
Existing 3D reconstruction technology requires complex coordinate system establishment and calculation in multi-view point cloud registration, and is limited by the complexity of the surface texture of the research object, resulting in high computational complexity and low efficiency.
A multi-view point cloud autonomous registration method based on a rotating platform is used to generate a 3D point cloud through one rotational disk calibration. The pixel mapping relationship between the color image and the depth image is used to obtain the rigid transformation matrix set of the rotating disk to achieve multi-viewing of the target object. Point clouds are autonomously registered, reducing coordinate system conversion and angle calculations.
It greatly improves the efficiency of point cloud data processing, reduces cumulative errors, is suitable for research objects of arbitrary shapes, and achieves efficient three-dimensional model reconstruction.
Smart Images

Figure CN115147463B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of omnidirectional three-dimensional reconstruction of a target object, and in particular to a multi-view point cloud autonomous registration method based on a rotating table and an application of the method. Background Art
[0002] In recent years, 3D reconstruction technology has transformed real scenes into mathematical models that conform to computer logic expression through processes such as deep data acquisition, point cloud registration and fusion. This model provides a basis for research such as plant growth monitoring, cultural relic protection, game development, and clinical medicine. Among them, how to register and fuse point cloud data collected from different perspectives to form a complete 3D model is one of the hot topics that experts and scholars are discussing.
[0003] However, current technology requires a complex coordinate system establishment and fitting process, has high computational complexity, and is limited by the complexity of the surface texture of the research object. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the above existing problems, the present invention is proposed.
[0006] Therefore, the technical problem solved by the present invention is to provide a multi-view point cloud autonomous registration method based on a rotating table, which can quickly realize the point cloud autonomous registration of multiple targets with only one rotating disk calibration, greatly improving the efficiency and accuracy of multi-view point cloud registration.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a multi-view point cloud autonomous registration method based on a rotating table, comprising the following steps: an acquisition module acquires a target image; an image working module uses the target image and generates a 3D point cloud according to the pixel mapping relationship between the color image and the depth image; determines the number of labels with different colors on the rotating disk and the ratio of the labels to the diameter of the rotating disk; performs point cloud calibration on the rotating disk to obtain a rigid transformation matrix set R of the point cloud slices before and after the rotating disk rotates continuously; places a target object on the rotating disk, and under the same conditions, the rotating disk is rotated 360° in an orderly manner, and the target object and the turntable point cloud slice have the same transformation matrix set R={R1, R2, ..., R n ; n∈Z +}, and then the target point cloud is autonomously registered after being input in order; after the registration, the point cloud is denoised and cropped to obtain a complete three-dimensional reconstructed model of the target object.
[0008] Preferably, the point cloud calibration of the rotating disk includes the following steps: the rotating disk with the label is rotated 360° in an orderly manner at a certain angle m to obtain n+1 continuous point cloud pieces PC to be registered, that is, PC = {PC1, PC2, PC3, ..., PC n+1 ,n∈Z +}; De-noise and crop the point cloud set according to the area of interest; identify the center coordinates of the label in each point cloud piece based on the color threshold; match at least three feature point pairs in two adjacent point cloud pieces to obtain the rigid transformation matrix set R = {R1, R2, ..., R n ; n∈Z +}.
[0009] Preferably, the rotating disk is composed of a precise rotating table and circular labels with different colors. When the diameter of the rotating table is determined, 6 calibration labels are evenly distributed, and the diameter ratio of the circular labels to the rotating disk is determined to be 5:1.
[0010] Preferably, the pixel mapping relationship between the color image and the depth image is as follows:
[0011]
[0012]
[0013] T ir2rgb =T rgb -R ir2rgb *T ir (3)
[0014] Where Z rgb *p rgb is the mapping of the color camera, Z ir *p ir is the mapping of the infrared camera, R rgb and T rgb is the color camera external parameter, R ir and T ir is the depth camera extrinsic parameter,
[0015] The pixel coordinates of the color image, is the pixel coordinate of the infrared image,
[0016] is the color camera intrinsic parameter matrix, is the infrared camera internal parameter matrix.
[0017] Preferably, the point cloud calibration of the rotating disk further includes the following steps: rotating the rotating disk with a colored circular label to 0° to obtain an initial point cloud piece PC1; obtaining a point cloud piece PC2 after the rotating disk rotates a certain angle m, and sequentially rotating 360° to obtain n+1 point cloud pieces; denoting the point cloud set of the rotating disk as PC turntable ={PC1,PC2,...,PC n+1 ; n∈Z +}; Based on the color threshold, obtain the point cloud coordinates of the circular label area of two adjacent point cloud slices, and identify the center coordinates of the complete label; PC n+1 For the reference point cloud, PC n To register the point cloud pieces, at least three feature point pairs in two adjacent point cloud pieces are registered one by one to obtain the rigid transformation matrix R n ; To improve the accuracy of point cloud registration, the n+1 point cloud slices are divided into q views, and then the final point cloud slice fusion is performed to obtain FPC turntable .
[0018] Preferably, the three-dimensional model of the target object includes the following reconstruction steps: rotating the rotating disk with the target object at the initial position by the same angle to obtain the original point cloud set PC object ={PC1,PC2,...,PC n+1 ; n∈Z +}; Input the transformation matrix set R in order = {R1, R2, ..., R n ; n∈Z +}Get the point cloud set PC after initial registration' object ={PC'1,PC'2,...,PC' n+1 ; n∈Z +}; Divide the target object point cloud set into views, and fuse all point cloud slices to obtain the final 3D point cloud model FPC object ={FPC1, FPC2, ..., FPC q ; q∈Z +}.
[0019] Preferably, the rotating disk rotates at an angle of m each time, then n=360° / m-1; if m=30°, n=11, q=3; then the target three-dimensional point cloud FPC={FPC1, FPC2, FPC3}:
[0020] FPC1={PC'1=(PC1*R1*R2*R3)*R 4-8 ,PC'2=(PC2*R2*R3)*R 4-8 ,PC'3=(PC3*R3)*R 4-8 ,PC4*R 4-8}, FPC2={PC'5=(PC5*R5*R6*R7), PC'6=(PC6*R6*R7), PC'7=(PC7*R7),PC8}, FPC3={PC'9=(PC9*R9*R 10 *R 11 )*R 12-8 ,PC' 10 =(PC 10 *R 10 *R 11 )*R 12-8 ,PC' 11 =(PC 11 *R 11 )*R 12-8 ,PC 12 *R 12-8}; Among them, PC4, PC8 and PC 12 is the reference point cloud under three views, R n is the rigid transformation matrix for the nth rotation, R 4-8 Point cloud PC4 is the registration point cloud, point cloud PC8 is the reference point cloud, and the obtained rigid transformation matrix is R 12-8 Similarly;
[0021] in represents the rotation matrix, Represents the translation matrix.
[0022] Preferably, the point cloud set is divided into multiple views V q Then perform fusion, where q = 2, 3 or 4, and there are two views V2 {FPC1: 0°, 45°, 90°, 135°; FPC2: 180°, 225°, 270°, 315°}; three views V3 {FPC1: 0°, 30°, 60°, 90°; FPC2: 120°, 150°, 180°, 210°; FPC3: 240°, 270°, 300°, 330°}; four views V4 {FPC1: 0°, 30°, 60°; FPC2: 90°, 120°, 150°; FPC3: 180°, 210°, 240°; FPC4: 270°, 300°, 330°}.
[0023] The invention discloses an application of a multi-view point cloud autonomous registration method based on a rotating stage, which is applied to the model reconstruction of a three-dimensional target object to be studied, such as the construction of a three-dimensional model of a corn plant or a model pig.
[0024] The beneficial effects of the present invention are as follows: first, with the help of a depth camera, there is no need to fix the camera position and angle, and only one rotating disk calibration is required to achieve autonomous point cloud registration of multiple targets, which greatly improves the point cloud data processing efficiency; second, the point cloud registration method based on a special rotating table does not require conversion of multiple coordinate systems and angle calculations, reducing the cumulative error; third, the multi-view point cloud autonomous registration method based on a rotating table is suitable for research objects of any shape and is universal. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0026] Figure 1 It is a schematic diagram of the process of the multi-view point cloud autonomous registration method based on a rotating stage according to the present invention;
[0027] Figure 2 This is a schematic diagram of the scene data acquisition device of the present invention;
[0028] Figure 3 A schematic diagram of a point cloud mapped by an RGB image and a depth image according to the present invention;
[0029] Figure 4 A schematic diagram of a rotating disk with colored circular labels according to the present invention;
[0030] Figure 5 This is a schematic diagram of the pre-registration of the rotating disk point cloud of the present invention;
[0031] Figure 6 The invention is a PC that rotates when m=30° turntable Schematic diagram of
[0032] Figure 7 A schematic diagram of the calibration result of the rotating disk point cloud of the present invention;
[0033] Figure 8 This is a schematic diagram of the point cloud registration process of the research object seedling when m=30° and q=3 according to the present invention;
[0034] Fig. 9 This is a schematic diagram of a three-dimensional reconstruction model of a corn plant, the research object of the present invention;
[0035] Fig.10 This is a schematic diagram of a three-dimensional reconstruction model of a model pig, the research object of the present invention;
[0036] Fig.11The distribution diagram of HMD when the research object of the present invention is m=30°;
[0037] Fig.12 The research object of the present invention is a distribution diagram of HMD when m=45°;
[0038] Fig.13 This is a distribution diagram of the standard deviation SD when the research object of the present invention is m=30°;
[0039] Fig.14 This is a distribution diagram of the standard deviation SD when the research object of the present invention is m=45°. DETAILED DESCRIPTION
[0040] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0041] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0042] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0043] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0044] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0045] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0046] Example 1
[0047] Reference Figure 1 As shown in the flowchart, in this embodiment, a multi-view point cloud autonomous registration method based on a rotating table is proposed. A special rotating disk is used for the target object point cloud autonomous registration method, so that only one rotating disk calibration is required to complete the point cloud autonomous registration of multiple research objects, thereby improving the efficiency and accuracy of object 3D reconstruction. Specifically, the following steps are included:
[0048] S1: The acquisition module acquires the target image;
[0049] S2: The image working module uses the target image and generates a 3D point cloud based on the pixel mapping relationship between the color image and the depth image;
[0050] S3: determining the number of labels with different colors on the rotating disk and the ratio of the labels to the diameter of the rotating disk;
[0051] S4: calibrate the point cloud of the rotating disk to obtain the rigid transformation matrix set R of the point cloud slices before and after the rotating disk continuously rotates;
[0052] S5: Place the target object on the rotating disk. Under the same conditions, rotate the rotating disk 360° in an orderly manner. The target object and the turntable point cloud have the same transformation matrix set R = {R1, R2, ..., R n ; n∈Z +}, after sequential input, the target point cloud is autonomously registered;
[0053] S6: After registration, the point cloud is denoised and cropped to obtain a complete 3D reconstructed model of the target object.
[0054] It should be noted that in this embodiment, the acquisition module is a device that can acquire images, such as a camera, a mobile phone or other devices with a camera. In this embodiment, a Kinect camera is used. Before step S1, the preparation and installation of the device should be included. Figure 2 As shown in the figure, it mainly includes a Kinect v2 camera, a precision rotating table, a controller, a graphics workstation and a research object. The graphics workstation is the image working module proposed in this embodiment, which is a device with image processing software.
[0055] More specifically, a Kinect v2 camera was installed on a tripod with a retractable height of 30-170 cm. The resolutions of the captured RGB images and depth images were 1920×1080 pixels and 512×424 pixels, respectively. The diameters of the rotating stage and the color label were 25 cm and 5 cm, respectively. The controller controlled the rotating stage to rotate 30° each time. The graphics workstation was configured with an Intel(R) Xeon(R) E-2134 CPU, 3.5 GHz, and 56.0 GB RAM. It was programmed in C++ and Python languages in conjunction with the PCL library under the Windows 10 operating system to achieve data acquisition, processing, and output.
[0056] Step S2: includes calibration of the Kinect camera, as follows:
[0057] The intrinsic and extrinsic parameters of the Kinect camera are calculated using Zhang Zhengyou's chessboard calibration method. The intrinsic and extrinsic parameters of the color camera are as follows:
[0058] Camera Intrinsics / / Camera Intrinsics:
[0059] IntrinsicMatrix:[3×3double]
[0060] FocalLength:[1035.2 1035.7] / / These two values are f x-rgb ,f y-rgb
[0061] PrincipalPoint:[957.6187 550.5878] / / These two values are c x-rgb ,c y-rgb
[0062] Skew:0
[0063] ImageSize:[1080 1920] / / RGB image resolution.
[0064] Camera Extrinsics / / Camera extrinsics:
[0065] RotationMatrices:[3×3×9double] / / rotation matrix R rgb
[0066] TranslationVectors:[9×3double] / / Translation matrix T rgb
[0067] The intrinsic and extrinsic parameters of the depth camera are:
[0068] Camera Intrinsics / / Camera Intrinsics
[0069] IntrinsicMatrix:[3×3double]
[0070] FocalLength:[359.1161 359.7100] / / These two values are f x-ir ,f y-ir
[0071] PrincipalPoint:[259.6018 208.2566] / / These two values are c x-ir ,c y-ir
[0072] Skew:0
[0073] ImageSize:[424 512] / / depth image resolution
[0074] Camera Extrinsics / / Camera extrinsics
[0075] RotationMatrices:[3×3×10double] / / rotation matrix R ir
[0076] TranslationVectors:[10×3double] / / Translation matrix T ir
[0077] Furthermore, according to the mapping relationship between the depth image and the color image, the RGB value corresponding to each pixel on the depth image is found. The pixel mapping relationship between the color image and the depth image is as follows: (1), (2), (3). The point cloud formed by the mapping is as follows: Figure 3 As shown, Figure 3 Af in the figure represents point cloud labels of different colors.
[0078]
[0079]
[0080] T ir2rgb =T rgb -R ir2rgb *T ir (3)
[0081] Where Z rgb *p rgb is the mapping of the color camera, Z ir *p ir is the mapping of the infrared camera, R rgb and T rgb is the color camera external parameter, R ir and T ir is the depth camera extrinsic parameter,
[0082] The pixel coordinates of the color image, is the pixel coordinate of the infrared image,
[0083] is the color camera intrinsic parameter matrix, is the infrared camera internal parameter matrix.
[0084] In step S3: It should be noted that the rotating disk is composed of a precise rotating table and circular labels with different colors. This embodiment does not exclude the possibility of applying labels of other shapes. Therefore, when the diameter of the rotating table is determined, 6 calibration labels (af) are evenly distributed, and the ratio of the diameter of the circular label to the rotating disk is determined to be 5:1. In this embodiment, the diameters of the rotating disk and the label are 25 cm and 5 cm respectively.
[0085] The specific determination process is as follows (refer to Figure 4 :
[0086] S31: When there are only 4 or fewer calibration tags evenly distributed around the turntable, there may be only 2 or 3 calibration tag point clouds with high integrity under a certain viewing angle. Fewer feature points are not conducive to point cloud registration, such as Figure 4 Left picture of (ad represents circular labels of different colors).
[0087] S32: When there are many calibration tags, such as 12 tags evenly distributed around the rotating table, the tag diameter will be appropriately reduced. When collecting rotating disk data at a long distance, the point cloud is likely to be sparse or missing. Figure 4 Right image (af indicates circular labels of different colors).
[0088] S33: It has been verified through experiments that when the diameter of the rotating stage is determined, 6 calibration tags are evenly distributed to ensure that at least 3 complete calibration tag point clouds appear within the camera's field of view, such as Figure 4 Middle figure (af represents circular labels of different colors).
[0089] S34: Determine the ratio of the circular label to the diameter of the rotating disk. According to experiments, the ratio of the rotating disk diameter to the label diameter of the present invention is preferably 5:1.
[0090] In step S4, it is the point cloud calibration of the rotating disk, which requires determining the rigid transformation matrix R of the point cloud slices before and after the turntable rotates continuously, which specifically includes the following steps:
[0091] The rotating disk with labels is rotated 360° in an orderly manner at a certain angle m to obtain n+1 continuous point cloud pieces PC to be registered, that is, PC = {PC1, PC2, PC3, ..., PC n+1 ,n∈Z +};
[0092] De-noising and cropping of point clouds according to the area of interest;
[0093] Identify the center coordinates of the labels in each point cloud slice based on the color threshold;
[0094] Match at least three feature point pairs in two adjacent point cloud slices to obtain a rigid transformation matrix set R = {R1, R2, ..., R n ; n∈Z +}.
[0095] In step S5 of this embodiment, under the same conditions, the same turntable starting position, camera position and each rotation angle m are rotated 360° in an orderly manner. Figure 5 The hint,
[0096] The point cloud calibration of the rotating disk also includes the following steps:
[0097] Turn the rotating disk with colored circular labels to 0° to obtain the initial point cloud PC1;
[0098] After the rotating disk rotates a certain angle m, the point cloud piece PC2 is obtained, and n+1 point cloud pieces are obtained by rotating 360° in order;
[0099] Let the point cloud of the rotating disk be PC turntable ={PC1,PC2,...,PC n+1 ; n∈Z +};
[0100] Obtain the point cloud coordinates of the circular label area of two adjacent point cloud slices based on the color threshold, and identify the center coordinates of the complete label;
[0101] PC n+1 For the reference point cloud, PC nTo register the point cloud pieces, at least three feature point pairs in two adjacent point cloud pieces are registered one by one to obtain the rigid transformation matrix R n ;
[0102] In order to improve the accuracy of point cloud registration, the n+1 point cloud slices are divided into q views, and then the final point cloud slice fusion is performed to obtain FPC turntable .
[0103] Further, in step S6:
[0104] The 3D model of the target object includes the following reconstruction steps:
[0105] The rotating disk with the target object is rotated at the same angle in sequence at the initial position to obtain the original point cloud set PC object ={PC1,PC2,...,PC n+1 ; n∈Z +};
[0106] Input the transformation matrix set R in order = {R1, R2, ..., R n ; n∈Z +}Get the point cloud set PC after initial registration' object ={PC'1,PC'2,...,PC' n+1 ; n∈Z +};
[0107] Divide the target point cloud set into q views, and fuse all point cloud slices to obtain the final 3D point cloud model FPC object ={FPC1, FPC2, ..., FPC q ; q∈Z +}.
[0108] Example 2
[0109] Based on the above embodiment, a multi-view point cloud autonomous registration method based on a rotating table is proposed. In this embodiment, the rotating disk rotates at an angle of m each time, and n = 360° / m-1. It is not difficult to find that since the target 3D point cloud model is collected multiple times at 360°, the adjacent point cloud slices are registered in sequence, and the final point cloud may have cumulative errors. Therefore, this embodiment divides the point cloud set into multiple views V q Then, fusion is performed to reduce the error accumulation. As a preferred method of this embodiment, the point cloud set is divided into multiple views V q Then, if q = 2, 3 or 4, we have
[0110] Second view V2 {FPC1: 0°, 45°, 90°, 135°; FPC2: 180°, 225°, 270°, 315°};
[0111] Three views V3 {FPC1: 0°, 30°, 60°, 90°; FPC2: 120°, 150°, 180°, 210°; FPC3: 240°, 270°, 300°, 330°};
[0112] Four views V4 {FPC1: 0°, 30°, 60°; FPC2: 90°, 120°, 150°; FPC3: 180°, 210°, 240°; FPC4: 270°, 300°, 330°}.
[0113] Based on this, in this embodiment, a specific implementation method for constructing a three-dimensional model when m=30°, n=11, and q=3 is provided, and the target three-dimensional point cloud FPC={FPC1, FPC2, FPC3}:
[0114] FPC1={PC'1=(PC1*R1*R2*R3)*R 4-8 ,PC'2=(PC2*R2*R3)*R 4-8 ,PC'3=(PC3*R3)*R 4-8 ,PC4*R 4-8},
[0115] FPC2={PC'5=(PC5*R5*R6*R7),PC'6=(PC6*R6*R7),PC'7=(PC7*R7),PC8},
[0116] FPC3={PC'9=(PC9*R9*R 10 *R 11 )*R 12-8 ,PC' 10 =(PC 10 *R 10 *R 11 )*R 12-8 ,PC' 11 =(PC 11 *R 11 )*R 12-8 ,PC 12 *R 12-8};
[0117] Among them, PC4, PC8 and PC 12 is the reference point cloud under three views, R n is the rigid transformation matrix for the nth rotation, R 4-8 Point cloud PC4 is the registration point cloud, point cloud PC8 is the reference point cloud, and the obtained rigid transformation matrix is R 12-8 Similarly;
[0118] in represents the rotation matrix, Represents the translation matrix.
[0119] Example 3
[0120] This embodiment provides a specific implementation process description of the multi-view point cloud autonomous registration method based on a rotating table proposed in the above embodiment when m=30° and rotates 360° in an orderly manner.
[0121] First, determine the rigid transformation matrix R of the point cloud before and after the rotating table continuously rotates.
[0122] The rotating table with circular labels is rotated m = 30° at a time, and rotated 360° in an orderly manner to obtain 12 consecutive point cloud pieces PC to be calibrated. turntable ={PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC 10 ,PC 11 ,PC 12}; Then, the point cloud is denoised and cropped according to the area of interest, and the following is obtained: Figure 6 The rotating disk point cloud data shown (af in the figure also represents point cloud labels of different colors).
[0123] Then, the center coordinates of the circular labels in each point cloud patch are identified based on the color threshold. Figure 6 The center point cloud coordinates of each circular label in the 12 images are (the center point cloud coordinates of the d label are the first value, counterclockwise):
[0124] 0°(PC1): {(0.058558,-0.371953,0.989000), (-0.005984,-0.351678,1.023000), (-0.003430,-0.316566,1.092 000), (0.060769,-0.296279,1.127000), (0.126278,-0.317576,1.086000), (0.121482,-0.353965,1.022000)};
[0125] 30°(PC2): {(0.021264,-0.368020,1.000000), (-0.014806,-0.335211,1.058000), (0.023868,-0.303540,1.120 000), (0.099374,-0.301804,1.114000), (0.133278,-0.335011,1.049000), (0.094067,-0.369178,0.996000)};
[0126] 60°(PC3):{(-0.005995,-0.355127,1.025000),(-0.003421,-0.315696,1.089000),(0.060764,-0.299320,1.127000),(0.123454,-0.314945,1.087000),(0.121007,-0.352579,1.018000),(0.055877,-0.371955,0.989000)};
[0127] 90°(PC4):{(-0.017643,-0.337421,1.056000),(0.023696,-0.304371,1.112000),(0.096610,-0.302624,1.117000),(0.133659,-0.335969,1.052000),(0.091188,-0.365758,0.994000),(0.018572,-0.365691,1.001000)};
[0128] 120°(PC5):{(-0.006395,-0.319508,1.092000),(0.057498,-0.298262,1.123000),(0.123454,-0.314945,1.087000),(0.121007,-0.352579,1.018000),(0.053251,-0.372333,0.990000),(-0.008776,-0.352366,1.025000)};
[0129] 150°(PC6):{(0.020768,-0.305741,1.117000),(0.096437,-0.302082,1.115000),(0.133532,-0.335649,1.051000),(0.093881,0.365754,0.994000),(0.018517,-0.364595,0.998000),(-0.017694,-0.335527,1.059000)};
[0130] 180°(PC7):{(0.057857,-0.300121,1.130000),(0.123454,-0.314945,1.087000),(0.121245,-0.353272,1.020000),(0.055593,-0.372730,0.984000),(-0.008776,-0.352366,1.025000),(-0.003433,-0.316856,1.093000)};
[0131] 210°(PC8):{(0.096870,-0.303436,1.120000),(0.133666,-0.333132,1.052000),(0.091280,-0.366125,0.995000),(0.018516,-0.367285,0.998000),(-0.017694,-0.335527,1.059000),(0.023826,-0.302998,1.118000)};
[0132] 240°(PC9):{(0.124136,-0.316683,1.093000),(0.121245,-0.353272,1.020000),(0.055934,-0.372331,0.990000),(-0.008741,-0.353741,1.021000),(-0.006413,-0.317435,1.095000),(0.060656,-0.298789,1.125000)};
[0133] 270°(PC 10 ):{(0.131436,-0.334722,1.057000),(0.091650,-0.364902,0.666000),(0.018534,-0.367653,0.999000),(-0.017644,-0.334576,1.056000),(0.023847,-0.303269,1.119000),(0.099278,-0.304535,1.113000)};
[0134] 300°(PC 11):{(0.124500,-0.351890,1.024000),(0.055764,-0.371203,0.987000),(-0.008758,-0.351678,1.023000),(-0.006396,-0.316565,1.092000),(0.063887,-0.296538,1.128000),(0.126161,-0.317283,1.085000)};
[0135] 330°(PC 12 ):{(0.097161,-0.365261,1.000000),(0.021222,-0.367284,0.998000),(-0.017711,-0.335844,1.060000),(0.020769,-0.302729,1.117000),(0.099731,-0.302888,1.118000),(0.133532,-0.335649,1.051000)}.
[0136] Finally, at least three feature point pairs in two adjacent point cloud slices are matched to obtain several rigid transformation matrices R. Among them, 0° (PC1) is used as the registration point cloud, 30° is used as the reference point cloud (PC2), and the obtained rigid transformation matrix is
[0137]
[0138] Taking 30° as the registration point cloud (PC2) and 60° as the reference point cloud (PC3), the obtained rigid transformation matrix is
[0139]
[0140] Taking 60° as the registration point cloud (PC3) and 90° as the reference point cloud (PC4), the obtained rigid transformation matrix is
[0141]
[0142]
[0143] Using 90° as the registration point cloud (PC4) and 120° as the reference point cloud (PC5), the obtained rigid transformation matrix is
[0144]
[0145] Taking 120° as the registration point cloud (PC5) and 150° as the reference point cloud (PC6), the obtained rigid transformation matrix is
[0146]
[0147] Taking 150° as the registration point cloud (PC6) and 180° as the reference point cloud (PC7), the obtained rigid transformation matrix is
[0148]
[0149] Taking 180° as the registration point cloud (PC7) and 210° as the reference point cloud (PC8), the obtained rigid transformation matrix is
[0150]
[0151] Taking 210° as the registration point cloud (PC8) and 240° as the reference point cloud (PC9), the obtained rigid transformation matrix is
[0152]
[0153]
[0154] 240° is used as the registration point cloud (PC9), and 270° is used as the reference point cloud (PC 10 ), the obtained rigid transformation matrix
[0155]
[0156] Use 270° as the registration point cloud (PC 10 ), 300° as reference point cloud (PC 11 ), the obtained rigid transformation matrix
[0157]
[0158] Use 300° as the registration point cloud (PC 11 ), 330° as reference point cloud (PC 12 ), the obtained rigid transformation matrix
[0159]
[0160] Furthermore, the rotating disk rotates at an angle of m = 30° each time, q = 3, then n = 360° / m-1 = 11. Then the rotating disk 3D point cloud model FPC = {FPC1, FPC2, FPC3}, see Figure 7 The hint:
[0161] FPC1={PC'1=(PC1*R1*R2*R3)*R 4-8 ,PC'2=(PC2*R2*R3)*R 4-8 ,PC'3=(PC3*R3)*R 4-8 ,PC4*R 4-8},
[0162] FPC2={PC'5=(PC5*R5*R6*R7),PC'6=(PC6*R6*R7),PC'7=(PC7*R7),PC8},
[0163] FPC3={PC'9=(PC9*R9*R 10 *R 11 )*R 12-8 ,PC' 10 =(PC 10 *R 10 *R 11 )R 12-8 ,PC' 11 =(PC 11 *R 11 )R 12-8 ,PC 12 R 12-8}.
[0164] Point cloud PC4 is the registration point cloud, point cloud PC8 is the reference point cloud, and the obtained rigid transformation matrix
[0165]
[0166]
[0167] Point Cloud PC 12 To register the point cloud, point cloud PC8 is the reference point cloud, and the obtained rigid transformation matrix is
[0168]
[0169] The research object (such as seedlings) was placed on the rotating disk and rotated 360° in an orderly manner under the same conditions (same turntable starting position, camera position and each rotation angle m = 30°, q = 3), and 12 point cloud pieces PC were collected. object ={PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC 10,PC 11 ,PC 12 The research object and the rotating disk cloud have the same transformation matrix R = {R1, R2, R3, R4, R5, R6, R7, R8, R9, R 10 ,R 11 ,R 12 ,R 4-8 ,R 12-8}, and input them in order to complete the autonomous registration of the target point cloud. After point cloud denoising, cropping and other processes, a complete 3D reconstruction model of the target object is obtained.
[0170] Example 4
[0171] This embodiment provides an application of a multi-view point cloud autonomous registration method based on a rotating stage, including the method of the above embodiment, which is applied to the reconstruction of a target model of any three-dimensional shape, such as the construction of a three-dimensional model of a corn plant or a model pig. Figure 8 This is the point cloud autonomous registration process of the research object seedling (the point cloud registration process when m = 30° and q = 3). Fig. 9 and Fig.10 These are the 3D reconstructed models of corn plants and model pig generated after autonomous registration of point clouds.
[0172] In order to verify the effect, this embodiment designs an analysis experiment, which not only satisfies the target point cloud registration accuracy under different rotation angles, but also verifies the 3D point cloud reconstruction accuracy of different views under the same rotation angle.
[0173] Since the target 3D point cloud model is collected multiple times at 360°, the adjacent point cloud slices are registered in sequence, and the final point cloud may have cumulative errors. q ) point clouds are fused to reduce error accumulation. In this embodiment, q=2, 3 and 4.
[0174] Point Cloud PC set In different views V q The designs of the reconstructed point cloud slices and the reference point cloud slices are shown in Table 1, including two views V2 {FPC1: 0°, 45°, 90°, 135°; FPC2: 180°, 225°, 270°, 315°}; three views V3 {FPC1: 0°, 30°, 60°, 90°; FPC2: 120°, 150°, 180°, 210°; FPC3: 240°, 270°, 300°, 330°}; four views V4 {FPC1: 0°, 30°, 60°; FPC2: 90°, 120°, 150°; FPC3: 180°, 210°, 240°; FPC4: 270°, 300°, 330°}.
[0175] The transformation matrix set R = {R1, R2, ..., R n ; n∈Z +} and the inverse transformation matrix set R'={R'1,R'2,...,R' n ; n∈Z +}, verify the reconstruction accuracy of the point cloud obtained before and after each rotation of the rotating disk. n It is a rotating disk that gathers PC turntable ={PC1,PC2,...,PC n+1 ; n∈Z + PC in n For the reference point cloud, PC n+1 is the rigid transformation matrix obtained by registering the point cloud. Let G = R n ×R' n , theoretically G = E, but due to registration and manipulation errors, G≠E may occur, which means that there is an error in the 3D point cloud registration. Let the original point cloud set PC set ={PC1,PC2,...,PC n+1 ; n∈Z + Point cloud PC in n After a continuous forward transformation and inverse transformation, the point cloud PC is obtained. n =PC n ×R n ×R' n , as shown in Table 1. PC" n As the reconstructed point cloud and the reference point cloud PC n For comparison, this reflects the accuracy of the autonomous registration of the target point cloud.
[0176] Table 1: Point Cloud PC set In different views V q The reconstructed point cloud and the reference point cloud.
[0177]
[0178] In order to quantitatively evaluate the accuracy of point cloud autonomous registration, the statistical data includes the reconstructed point cloud piece PC of the research object" n PC between reference point cloud n Standard Deviation, SD, Mean Euclidean Distance, MD and the distribution frequency of its distance set H MD This example analyzes MD and H of 30 subjects at 30° and 45° rotation angles. MD distribution.
[0179] Figures 11 to 14 The figure shows the point cloud registration accuracy analysis of 30 groups of research objects. Fig.11 Shows the distribution of H when m = 30° MD distribution Fig.12 Shows the distribution of H when m = 45° MD distribution Fig.13 Shows the distribution of the standard deviation SD when m = 30° Fig.14 Shows the distribution of the standard deviation SD when m = 45°
[0180] Figures 11-12 Shows 4 groups of distribution of H MD (0 < H MD ≤0.3cm, 0.3 < H MD ≤0.6cm, 0.6 < H MD ≤0.9cm, H MD > 0.9cm), the proportion of 0 < MD ≤ 0.6cm is relatively small, indicating that the present invention has relatively high accuracy and stability. On average, when m = 30°, the values of MD for these 4 groups are 0.26, 0.42, 0.74 and 0.98cm respectively; when m = 45°, they are 0.26, 0.41, 0.73 and 0.93cm respectively.
[0181] Figures 13-14 Shows 4 groups of distribution of the standard deviation SD (0 < SD ≤ 0.2cm, 0.3 < SD ≤ 0.4cm, 0.4 < SD ≤ 0.6cm, SD > 0.6cm), and the proportion of 0 < SD ≤ 0.4cm is relatively large, which also shows that the multi-angle target point cloud autonomous registration method based on the rotary table in this embodiment has good accuracy.
[0182] It should be recognized that the embodiments of the present invention can be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The method can be implemented in a computer program using standard programming techniques - including a non-transitory computer-readable storage medium configured with a computer program, where the storage medium so configured causes the computer to operate in a specific and predefined manner - according to the methods and drawings described in the specific embodiments. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if necessary, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, for this purpose, the program can run on a dedicated integrated circuit programmed for this purpose.
[0183] Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions that may be executed by one or more processors.
[0184] Further, the method can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, a RAM, a ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or part thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described herein includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques described in the present invention, the present invention also includes the computer itself. The computer program can be applied to input data to perform the functions described herein, thereby converting the input data to generate output data stored in a non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the present invention, the converted data represents a physical and tangible object, including a specific visual depiction of the physical and tangible object produced on a display.
[0185] As used in this application, the terms "component", "module", "system", etc. are intended to refer to a computer-related entity, which can be hardware, firmware, a combination of hardware and software, software, or software in operation. For example, a component can be, but is not limited to: a process running on a processor, a processor, an object, an executable file, a thread in execution, a program, and / or a computer. As an example, an application running on a computing device and the computing device can both be components. One or more components can exist in a process and / or thread in execution, and a component can be located in a computer and / or distributed between two or more computers. In addition, these components can be executed from various computer-readable media having various data structures thereon. These components can communicate in a local and / or remote process manner, such as according to a signal having one or more data packets (e.g., data from a component that interacts with another component in a local system, a distributed system, and / or interacts with other systems in a signal manner through a network such as the Internet).
[0186] It should also be understood that the present invention is described through implementation methods, and the embodiments are only clear and complete descriptions of the technical solutions proposed in the claims of the present invention, that is, explanations of the claims. Therefore, when judging whether the technical solutions recorded in the specification of the present invention are sufficiently disclosed, full consideration should be given to the core essence of the solutions defined by the claims. In the specification, there must be other technical problems that are not related to the core technical problems proposed in this embodiment. The corresponding technical features and technical solutions do not belong to the essence of this embodiment and are non-essential technical features. Therefore, they can be referred to as implicit disclosures. Those skilled in the art can fully implement them in combination with existing technologies and common knowledge. Therefore, there is no need to describe them in detail.
[0187] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A multi-view point cloud autonomous registration method based on a rotating stage, characterized by: The following steps are included: The acquisition module acquires the target image; The image working module uses the target image and generates a 3D point cloud according to the pixel mapping relationship between the color image and the depth image; Determining the number of labels with different colors on the rotating disk and the ratio of the labels to the diameter of the rotating disk; The point cloud calibration of the rotating disk is performed to obtain a rigid transformation matrix set R of the point cloud slices before and after the rotating disk continuously rotates, wherein the point cloud calibration of the rotating disk further includes the following steps: Turn the rotating disk with colored circular labels to 0° to obtain the initial point cloud PC1; The rotating disk rotates a certain angle m to obtain the point cloud piece PC2, and rotates 360° in order to obtain n+1 point cloud pieces; Let the point cloud set of the rotating disk be PCturntable = {PC1, PC2, ..., PCn+1; n∈Z+}; Obtain the point cloud coordinates of the circular label area of two adjacent point cloud slices based on the color threshold, and identify the center coordinates of the complete label; Taking PCn+1 as the reference point cloud slice and PCn as the registration point cloud slice, at least three feature point pairs in two adjacent point cloud slices are registered one by one to obtain the rigid transformation matrix Rn; In order to improve the accuracy of point cloud registration, the n+1 point cloud pieces are divided into q views, and then the final point cloud pieces are fused to obtain the FPCturntable; The target object is placed on the rotating disk, and under the same conditions, the rotating disk is rotated 360° in an orderly manner. The target object and the turntable point cloud have the same transformation matrix set R = {R1, R2, ..., R n ; n∈Z + }, after sequential input, the target point cloud is autonomously registered; After registration, point cloud denoising and cropping are performed to obtain a complete three-dimensional reconstruction model of the target object. The three-dimensional model of the target object includes the following reconstruction steps: The rotating disk with the target object is rotated at the same angle in sequence at the initial position to obtain the original point cloud set PCobject = {PC1, PC2, ..., PCn+1; n∈Z+}; Input the transformation matrix set R = {R1, R2, ..., Rn; n∈Z+} in order to obtain the point cloud set PC'object = {PC'1, PC'2, ..., PC'n+1; n∈Z+} after the initial registration; The target object point cloud set is divided into q views, and all point cloud pieces are fused to obtain the final three-dimensional point cloud model FPCobject = {FPC1, FPC2, ..., FPCq; q∈Z+}.
2. The multi-view point cloud autonomous registration method based on a rotating stage as claimed in claim 1, characterized in that: The point cloud calibration of the rotating disk comprises the following steps: The rotating disk with labels is rotated 360° in order at a certain angle m to obtain n+1 continuous point cloud pieces PC to be registered, that is, PC = {PC1, PC2, PC3, ..., PC n+1 ,n∈Z + }; De-noising and cropping of point cloud sets according to the area of interest; Identify the center coordinates of the labels in each point cloud slice based on the color threshold; Match at least three feature point pairs in two adjacent point cloud slices to obtain a rigid transformation matrix set R = {R1, R2, ..., R n ; n∈Z + }.
3. The multi-view point cloud autonomous registration method based on a rotating stage as claimed in claim 1, characterized in that: The rotating disk is composed of a precise rotating platform and circular labels with different colors. When the diameter of the rotating platform is determined, 6 calibration labels are evenly distributed, and the diameter ratio of the circular label to the rotating disk is determined to be 5:
1.
4. The multi-view point cloud autonomous registration method based on a rotating stage as claimed in claim 1, characterized in that: The pixel mapping relationship between the color image and the depth image is as follows: T ir2rgb =T rgb -R ir2rgb *T ir (3) Where Z rgb *p rgb is the mapping of the color camera, Z ir *p ir is the mapping of the infrared camera, R rgb and T rgb is the color camera external parameter, R ir and T ir is the depth camera extrinsic parameter, The pixel coordinates of the color image, is the pixel coordinate of the infrared image, is the color camera intrinsic parameter matrix, is the infrared camera internal parameter matrix.
5. The multi-view point cloud autonomous registration method based on a rotating stage as claimed in claim 1, characterized in that: The rotating disk rotates at an angle of m each time, then n=360° / m-1; If m = 30°, n = 11, q = 3; Then the target three-dimensional point cloud FPC={FPC1,FPC2,FPC3}: FPC1={PC'1=(PC1*R1*R2*R3)*R 4-8 ,PC'2=(PC2*R2*R3)*R 4-8 ,PC'3=(PC3*R3)*R 4-8 ,PC4*R 4-8 }, FPC2={PC'5=(PC5*R5*R6*R7), PC'6=(PC6*R6*R7), PC'7=(PC7*R7), PC8}, FPC3={PC'9=(PC9*R9*R 10 *R 11 )*R 12-8 ,PC' 10 =(PC 10 *R 10 *R 11 )*R 12-8 ,PC' 11 =(PC 11 *R 11 )*R 12-8 ,PC 12 *R 12-8 }; Among them, PC4, PC8 and PC 12 is the reference point cloud under three views, R n is the rigid transformation matrix for the nth rotation, R 4-8 Point cloud PC4 is the registration point cloud, point cloud PC8 is the reference point cloud, and the obtained rigid transformation matrix is R 12-8 Similarly; in represents the rotation matrix, Represents the translation matrix.
6. The multi-view point cloud autonomous registration method based on a rotating stage as claimed in claim 1, characterized in that: Divide the point cloud set into multiple views V q Then, if q = 2, 3 or 4, we have Second view V2 {FPC1: 0°, 45°, 90°, 135°; FPC2: 180°, 225°, 270°, 315°}; Three views V3 {FPC1: 0°, 30°, 60°, 90°; FPC2: 120°, 150°, 180°, 210°; FPC3: 240°, 270°, 300°, 330°}; Four views V4 {FPC1: 0°, 30°, 60°; FPC2: 90°, 120°, 150°; FPC3: 180°, 210°, 240°; FPC4: 270°, 300°, 330°}.
7. An application of a multi-view point cloud autonomous registration method based on a rotating stage, characterized in that: The method comprises the method as claimed in claims 1 to 6, which is applied to the reconstruction of a target model of any three-dimensional shape.
Citation Information
Patent Citations
Real-time three-dimensional modeling method based on mark points
CN110264567A
Three dimensional scanning system and framework
US20170223338A1
