Point cloud data coloring method and system and readable storage medium
Through the method of image sequence and point cloud registration, the point cloud acquisition and coloring steps are decoupled, and high-precision 3D laser scanning data reuse and color correction are achieved, which solves the problem of inability to reuse 3D laser scanning data in the existing technology. problem, improving model accuracy and applicability.
Patent Information
- Application Number
- CN202410777865.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
AI Technical Summary
Existing 3D laser scanning methods with cameras cannot reuse 3D models and image data, resulting in low model accuracy and inaccurate coordinate positions. Especially in scenarios that require color changes but consistent model position information, it is difficult to ensure multiple scans. The coordinate information is consistent and requires complex manual repair.
By acquiring image sequences, perform 3D reconstruction and point cloud registration, use virtual cameras for iterative rendering and differential correction of point cloud colors, decoupling the point cloud acquisition and coloring steps, allowing image sequences and dense point cloud data to be saved and reused separately , suitable for image collection at different distances and angles, improving model accuracy and reusability.
It achieves high-precision coloring of point cloud data, relieves the dependence on point cloud acquisition and coloring steps, allows subsequent data updates and improvements, is suitable for scenes that require color changes but consistent positions, and reduces manual repair work.
Smart Images

Figure CN118570316A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a point cloud data coloring method, system and readable storage medium. Background Art
[0002] Traditional 3D laser scanning methods can only produce 3D models without color. In recent years, the 3D laser scanning method with camera can use the camera on the device to take photos while obtaining the 3D model through laser scanning, and then match the photos with the point cloud obtained by laser scanning to complete the coloring and obtain the result point cloud with color. However, this method firstly requires the camera and laser transmitter to be rigidly fixed together in advance, and the camera and laser transmitter to be calibrated, which is a cumbersome operation, and the model accuracy is greatly affected by the calibration results before the start of scanning; secondly, after obtaining the result model, the 3D point cloud obtained by the previous scan and the photo data taken by the camera are not reusable after a scanning operation.
[0003] In order to reduce costs, a purely visual 3D scanning method has also emerged. By adding projections such as speckles and stripes to improve the camera positioning accuracy, the 3D model with color can be reconstructed using only the images obtained by the camera through the SFM algorithm, etc. However, this method has the problem of low accuracy of the resulting model. The recently emerged algorithms such as Nerf and 3DGS, as purely visual 3D reconstruction methods, have better visualization effects and faster computing speeds than traditional SFM algorithms, but they also have problems such as inaccurate coordinate positions of the generated point clouds, bumpy surfaces, and missing calculations, and still cannot achieve good results.
[0004] In addition, for some scenes that only require color changes while the model position information remains consistent, such as the comparison of a statue's different appearances on a sunny day and a cloudy day, at sunrise and sunset, or when manually lit or not, if laser or pure visual 3D scanning is performed multiple times in different scenarios, it is difficult to ensure that the coordinate information obtained multiple times is completely consistent, which will result in the need for complex manual restoration in the later stage. Summary of the invention
[0005] The purpose of the present invention is to provide a point cloud data coloring method, system and readable storage medium to solve the problem that the three-dimensional model and image data obtained by the existing three-dimensional laser scanning method with a camera cannot be reused.
[0006] To achieve the above object, the present invention provides a point cloud data coloring method, comprising the following steps:
[0007] Capturing images of the target according to a preset path to obtain an image sequence, wherein two adjacent images at least partially overlap;
[0008] Performing three-dimensional reconstruction based on the image sequence to obtain a sparse point cloud of the target, a camera pose for each image, a corrected image after dedistortion of each image, and a camera intrinsic parameter corresponding to each corrected image;
[0009] Acquire a dense point cloud of the target;
[0010] Registering the sparse point cloud with the dense point cloud to obtain a fused point cloud;
[0011] The fused point cloud is used as the initial point cloud for iteration. In each iteration, one of the corrected images is randomly selected, the virtual camera is placed at the corresponding camera position, and the intrinsic parameters of the virtual camera are set as the corresponding camera intrinsic parameters. The point cloud after the previous iteration is rendered, and the obtained rendering result image is differentiated from the currently selected corrected image to correct the color of the point cloud to obtain a result point cloud.
[0012] Optionally, the point cloud data coloring method further includes collecting images shot at different distances, and / or adjusting the focal length of the lens, and / or adjusting the shooting angle to obtain more supplementary images for the three-dimensional reconstruction.
[0013] Optionally, before registering the sparse point cloud with the dense point cloud, the point cloud data coloring method further includes:
[0014] The sparse point cloud is filtered.
[0015] Optionally, a three-dimensional laser scanner is used to perform three-dimensional measurement on the target to obtain a dense point cloud of the target.
[0016] Optionally, when the number of points of the fused point cloud is greater than a set threshold, the point cloud data coloring method further includes:
[0017] Performing a block operation on the initial point cloud;
[0018] Iterate each block point cloud separately to obtain the block result point cloud of each block;
[0019] After all block iterations are completed, the block result point clouds are merged.
[0020] Based on the same technical concept, the present invention also provides a point cloud data coloring system, comprising:
[0021] An image acquisition module is configured to acquire images of a target according to a preset path to obtain an image sequence, wherein two adjacent images at least partially overlap;
[0022] A reconstruction module is configured to perform three-dimensional reconstruction based on the image sequence to obtain a sparse point cloud of the target, a camera pose of each image, a corrected image after dedistortion of each image, and a camera intrinsic parameter corresponding to each corrected image;
[0023] A scanning module configured to obtain a dense point cloud of the target;
[0024] A point cloud registration module is configured to register the sparse point cloud with the dense point cloud to obtain a fused point cloud;
[0025] The coloring module is configured to iterate the fused point cloud as the initial point cloud. In each iteration, one of the corrected images is randomly selected, the virtual camera is placed at the corresponding camera position, and the internal parameters of the virtual camera are set to the corresponding camera internal parameters. The point cloud after the previous iteration is rendered, and the obtained rendering result image is differentiated from the currently selected corrected image to correct the color of the point cloud to obtain a result point cloud.
[0026] Optionally, the image acquisition module is further configured to acquire images taken at different distances, or adjust the focal length of the lens, or / and adjust the shooting angle to obtain more supplementary images for the three-dimensional reconstruction.
[0027] Optionally, the scanning module is a three-dimensional laser scanner, and the three-dimensional laser scanner is used to perform three-dimensional measurement of the target to obtain a dense point cloud of the target.
[0028] Optionally, when the number of points of the fused point cloud is greater than a set threshold, the point cloud data coloring system also includes a blocking module and a synthesis module, the blocking module is configured to perform blocking operations on the initial point cloud, the coloring module is also configured to iterate each block point cloud separately to obtain a block result point cloud for each block, and the synthesis module is configured to merge the block result point clouds after all block iterations are completed to obtain the result point cloud.
[0029] Based on the same technical concept, the present invention also provides a readable storage medium on which a computer program is stored. When the computer program is executed, the point cloud data coloring method as described above can be implemented.
[0030] In a point cloud data coloring method, system and readable storage medium provided by the present invention, colored point cloud data are obtained by aligning and coloring the pre-acquired sparse point cloud and dense point cloud. In this process, the two steps of point cloud acquisition and coloring can be completely decoupled and executed as two independent steps. Both the image sequence data and the dense point cloud data can be saved and reused separately. If a new and more accurate dense point cloud or higher resolution image sequence data is obtained subsequently, it can be combined with the previously obtained data to re-perform point cloud registration and coloring to obtain better point cloud coloring results. At the same time, it can also cope well with some application scenarios where only color changes are required and the model position information is consistent. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Those skilled in the art will appreciate that the accompanying drawings are provided for a better understanding of the present invention and do not constitute any limitation on the scope of the present invention.
[0032] Figure 1 A flowchart of a method for coloring point cloud data provided by an embodiment of the present invention;
[0033] Figure 2 A structural block diagram of a point cloud data coloring system provided in one embodiment of the present invention.
[0034] In the attached figure:
[0035] 1- Image acquisition module; 2- Reconstruction module; 3- Scanning module; 4- Point cloud registration module; 5- Coloring module. DETAILED DESCRIPTION
[0036] In order to make the purpose, advantages and features of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the accompanying drawings are in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, please refer to the accompanying drawings. It should be noted that the structure, proportion, size, etc. illustrated in the drawings of this specification are only used to match the content disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention. Any modification of the structure, change in the proportional relationship or adjustment of the size, under the same or similar conditions as the effects that can be produced by the present invention and the purposes that can be achieved, should still fall within the scope of the technical content disclosed by the present invention.
[0037] As used in the present invention, the singular forms "a", "an", and "the" include plural referents unless the context clearly indicates otherwise. As used in the present invention, the term "or" is generally used in a sense that includes "and / or", unless the context clearly indicates otherwise. As used in the present invention, the term "several" is generally used in a sense that includes "at least one", unless the context clearly indicates otherwise. As used in the present invention, the term "at least two" is generally used in a sense that includes "two or more", unless the context clearly indicates otherwise.
[0038] Please refer to Figure 1 , an embodiment of the present invention provides a method for coloring point cloud data, comprising the following steps:
[0039] S1, collecting images of the target according to a preset path to obtain an image sequence, wherein two adjacent images at least partially overlap;
[0040] S2, performing three-dimensional reconstruction based on the image sequence to obtain a sparse point cloud of the target, a camera pose of each image, a corrected image after dedistortion of each image, and a camera intrinsic parameter corresponding to each corrected image;
[0041] S3, obtaining a dense point cloud of the target;
[0042] S4, registering the sparse point cloud with the dense point cloud to obtain a fused point cloud;
[0043] S5. Iterate the fused point cloud as the initial point cloud. In each iteration, randomly select one of the corrected images, place the virtual camera at the corresponding camera position, and set the intrinsic parameters of the virtual camera to the corresponding camera intrinsic parameters. Render the point cloud after the previous iteration, and perform a difference between the rendered result image and the currently selected corrected image to correct the color of the point cloud to obtain a result point cloud.
[0044] The present invention obtains colored point cloud data by aligning and coloring the pre-acquired sparse point cloud and dense point cloud. In this process, the two steps of point cloud acquisition and coloring can be completely decoupled and executed as two independent steps. Both the image sequence data and the dense point cloud data can be saved and reused separately. If a new and more accurate dense point cloud or higher-resolution image sequence data is obtained later, it can be combined with the previously obtained data to re-perform point cloud registration and coloring to obtain a better point cloud coloring result.
[0045] First, execute S1, and capture images of the target according to the preset path to obtain an image sequence, and two adjacent images at least partially overlap. For the occasion of reconstructing a general object (such as a can, a cup, etc.), it is generally shot in a circle, that is, the camera faces the target and circles around n points with the target as the center. At each point, first fix a position, and the camera shoots the target from top to bottom. Then move to the next point and shoot from top to bottom again until the entire shooting path is completed. There must be a large overlap between adjacent points (more than 50%), so that all parts of the object must be captured in at least two pictures. When shooting from top to bottom, there must also be a large overlap (more than 50%), so that each part will appear in at least four pictures (two pictures in the current column and two pictures in the next column). For the reconstruction of large scenes (such as rooms, etc.), it is similar to the previous steps, except that the camera is no longer shooting inwards around the object, but is instead shooting outwards in circles. Alternatively, a method such as using a rail to control or steady a handheld camera, slowly moving the video, and then taking screenshots of the video to obtain an image sequence may be used. When the overlap of the captured images is large, they do not need to be used for the subsequent iterative calculation of S5, but only for improving the calculation positioning accuracy of S2.
[0046] It should be understood that for an object to be photographed, the target here can refer to the entire object to be photographed, that is, the range of the photographed image covers the entire target, it can be a part of it, the range of the photographed image only covers the part, or it can be photographed multiple times, then in the subsequent iterative calculation of S5, only the point cloud part of the target needs to be colored. For example, first, a circle shot is taken about 180 degrees in front of the object to be photographed, then in the subsequent iterative calculation of S5, only the color of the points in the 180-degree shooting range or smaller range in front of the object to be photographed in the fused point cloud is updated, and then a circle shot is taken about 180 degrees behind the object to be photographed separately, then in the subsequent iterative calculation of S5, only the color of the points in the 180-degree shooting range or smaller range behind the object to be photographed in the fused point cloud is updated. Alternatively, the entire object to be photographed is photographed and the point cloud is colored to obtain the overall result point cloud, and then the part of the object to be photographed is re-photographed. At this time, when the part is colored, only the color of the points corresponding to the local part in the overall result point cloud is updated.
[0047] In addition, in actual operation, it is also necessary to ensure that the lens is set to a smaller aperture to have a larger depth of field to prevent the target in the image from being blurred on the sides and clear on the front.
[0048] Preferably, the point cloud data coloring method further includes collecting images taken at different distances, and / or adjusting the focal length of the lens, and / or adjusting the shooting angle to obtain more supplementary images for the three-dimensional reconstruction. In order to improve the success rate and accuracy of the subsequent SFM algorithm positioning, some additional pictures can be taken. For example, a lens with a larger field of view angle than that in S1 can be replaced, and then scan and shoot again according to step S1; or a lens with the same field of view angle is used to adjust the distance between the camera and the target (such as moving a certain distance away from or close to the target), and then scan and shoot again according to S1; or considering that S1 may not be able to completely face the target when scanning and shooting, the angle of the target can be appropriately adjusted, and then scan and shoot again according to S1. Based on empirical judgment such as the size of the target, the above steps can be repeated several times as needed. It should be understood that in the case of additional images, the restrictions on the overlapped parts of the images in S1 can be appropriately relaxed. This method can also be simplified to use multiple cameras equipped with lenses with different field of view angles to take pictures when S1 is scanning and shooting, to achieve a similar effect, and the present invention is not limited to this. The added extra images are only used to assist positioning and do not need to be included in the calculation in subsequent S5 iterations.
[0049] Then, S2 is executed to perform three-dimensional reconstruction based on the image sequence to obtain the sparse point cloud of the target, the camera pose of each image, the corrected image after each image is dedistorted, and the camera intrinsic parameters corresponding to each corrected image. In this embodiment, the sparse point cloud, the camera pose of each image, the corrected image after each image is dedistorted, and the camera intrinsic parameters corresponding to each corrected image can be calculated by the SFM algorithm. Since the SFM algorithm is a prior art, the present invention will not repeat it in detail.
[0050] Preferably, before registering the sparse point cloud with the dense point cloud, the point cloud data coloring method further includes:
[0051] The sparse point cloud is filtered.
[0052] The purpose of this step is to delete points that fly out of the sparse point cloud or are obviously calculated incorrectly, etc., to reduce the difficulty of subsequent point cloud registration and improve accuracy.
[0053] Then, S3 is executed to obtain a dense point cloud of the target. In this embodiment, a 3D laser scanner or other equipment may be used to perform 3D measurement to obtain a dense point cloud of the target.
[0054] Then execute S4 to register the sparse point cloud with the dense point cloud to obtain a fused point cloud. Point cloud registration is the process of fusing two or more point cloud data into a unified coordinate system. Generally, the dense point cloud is moved to the position of the sparse point cloud through operations such as translation / rotation. When the scales of the two are different, a scaling operation can also be added. This step can be registered by manual comparison, or by various registration algorithms in the prior art, or mainly by registration algorithm, supplemented by manual comparison, or mainly by manual comparison, supplemented by registration algorithm, etc. The present invention does not limit this.
[0055] Finally, S5 is executed, and the fused point cloud is used as the initial point cloud for iteration. In each iteration, one of the corrected images is randomly selected, the virtual camera is placed at the corresponding camera position, and the intrinsic parameters of the virtual camera are set to the corresponding camera intrinsic parameters. The point cloud after the previous iteration is rendered, and the obtained rendering result image is differentiated from the currently selected corrected image to correct the color of the point cloud to obtain the result point cloud.
[0056] It is important to understand that in the first iteration, the initial point cloud is rendered.
[0057] If S1 takes a lot of images to improve positioning accuracy, so that the overlap between the images is large (such as more than 50%), some of them can be removed appropriately while ensuring that the images overlap, so as to reduce the optional range when randomly selecting the corrected image. If S1 scans and supplements images taken at a long distance with the same lens or images taken at a wide angle according to the preferred steps to improve positioning accuracy, then all these images can be moved out of the randomly selected optional range to improve the clarity of the resulting point cloud. Of course, if you do not want to color certain locations, you can also manually move the images that can see this part out of the randomly selected optional range.
[0058] As a preferred example in this embodiment, in order to simplify the implementation of the entire process, S5 can directly use the iterative process of the 3DGS algorithm as a whole, and remove the three parts of the position coordinates of the GS points, the Densification of the GS points, and the iterative correction of the scale / rot / opacity of the GS points. That is, only the information of the points of the fused point cloud is used, and the number of points is not added or deleted during the iteration process, or the covariance matrix, transparency, coordinates and other information of the points are not modified, but only the color of the points is updated. Since the 3DGS algorithm is a prior art, the present invention will not go into details. The result point cloud is obtained after reaching a preset number of iterations. Preferably, when the number of points in the fused point cloud is greater than a set threshold, the point cloud data coloring method also includes:
[0059] Performing a block operation on the initial point cloud;
[0060] Iterate each block point cloud separately to obtain the block result point cloud of each block;
[0061] After all block iterations are completed, the block result point clouds are merged to obtain the final result point cloud.
[0062] Taking edge processing into consideration, a few extra rows / columns can be added to each block when performing the block operation, and then the added rows / columns can be removed when the result point clouds of each block are merged.
[0063] The block division module can also be used to divide the selected part to be colored as described in S1, that is, to color a small part of the target; or to correspond to the occasions of using different image sequences to color certain parts respectively.
[0064] Based on the same technical concept, an embodiment of the present invention provides a point cloud data coloring system, including:
[0065] An image acquisition module 1 is configured to acquire images of a target according to a preset path to obtain an image sequence, wherein two adjacent images at least partially overlap;
[0066] Reconstruction module 2 is configured to perform three-dimensional reconstruction based on the image sequence, obtain a sparse point cloud of the target, a camera pose of each image, a corrected image after dedistortion of each image, and a camera intrinsic parameter corresponding to each corrected image;
[0067] A scanning module 3, configured to obtain a dense point cloud of the target;
[0068] A point cloud registration module 4 is configured to register the sparse point cloud with the dense point cloud to obtain a fused point cloud;
[0069] The coloring module 5 is configured to iterate the fused point cloud as the initial point cloud. In each iteration, one of the corrected images is randomly selected, the virtual camera is placed at the corresponding camera posture, and the internal parameters of the virtual camera are set to the corresponding camera internal parameters. The point cloud after the previous iteration is rendered, and the obtained rendering result image is differentiated from the currently selected corrected image to correct the color of the point cloud to obtain a result point cloud.
[0070] Preferably, the image acquisition module 1 is further configured to acquire images taken at different distances, or adjust the focal length of the lens, or / and adjust the shooting angle, so as to obtain more supplementary images for the three-dimensional reconstruction.
[0071] Preferably, the scanning module 3 is a three-dimensional laser scanner, and the three-dimensional laser scanner is used to perform three-dimensional measurement on the target to obtain a dense point cloud of the target.
[0072] Preferably, when the number of points of the fused point cloud is greater than a set threshold, the point cloud data coloring system also includes a blocking module and a synthesis module, the blocking module is configured to perform blocking operations on the initial point cloud, the coloring module 5 is also configured to iterate each block point cloud separately to obtain a block result point cloud of each block, and the synthesis module is configured to merge the block result point clouds after all block iterations are completed to obtain the result point cloud.
[0073] Based on the same inventive concept, an embodiment of the present invention further proposes a readable storage medium on which a computer program is stored. When the computer program is executed, the point cloud data coloring method as described above can be implemented.
[0074] The readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device, such as but not limited to an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device or any suitable combination thereof. The more specific example (non-exhaustive list) of the readable storage medium includes: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer program described herein can be downloaded from the readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network and / or a wireless network. The network can include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer program from the network and forwards the computer program for storage in the readable storage medium in each computing / processing device. The computer program for performing the operation of the present invention can be an assembly instruction, an instruction set architecture (ISA) instruction, a machine instruction, a machine-related instruction, a microcode, a firmware instruction, a state setting data, or a source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. The computer program can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by utilizing the state information of a computer program to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute computer-readable program instructions to implement various aspects of the present invention.
[0075] Here, various aspects of the present invention are described with reference to the flowchart and / or block diagram of the method, system and computer program product according to the embodiment of the present invention. It should be understood that each square frame of the flowchart and / or block diagram and the combination of the square frames in the flowchart and / or block diagram can be realized by a computer program. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so as to produce a machine, so that these programs, when executed by the processor of a computer or other programmable data processing device, produce a device for realizing the function / action specified in one or more square frames in the flowchart and / or block diagram. These computer programs can also be stored in a readable storage medium, and these computer programs make the computer, programmable data processing device and / or other equipment work in a specific way, so that the readable storage medium storing the computer program includes a manufactured product, which includes instructions for realizing various aspects of the function / action specified in one or more square frames in the flowchart and / or block diagram.
[0076] The computer program may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are executed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the computer program executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0077] In summary, the embodiments of the present invention provide a point cloud data coloring method, system and readable storage medium. By aligning and coloring the pre-acquired sparse point cloud and dense point cloud, colored point cloud data is obtained. In this process, the two steps of point cloud acquisition and coloring can be completely decoupled and executed as two independent steps. Both the image sequence data and the dense point cloud data can be saved and reused separately. If a new and more accurate dense point cloud or higher resolution image sequence data is obtained subsequently, it can be combined with the previously obtained data to re-perform point cloud registration and coloring to obtain a better point cloud coloring result.
[0078] The above description is only a description of the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any changes and modifications made by a person skilled in the art in the field of the present invention based on the above disclosure are within the scope of protection of the present invention. Obviously, a person skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations fall within the scope of the present invention and its equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for coloring point cloud data, characterized in that: The following steps are involved: Capturing images of the target according to a preset path to obtain an image sequence, wherein two adjacent images at least partially overlap; Performing three-dimensional reconstruction based on the image sequence to obtain a sparse point cloud of the target, a camera pose for each image, a corrected image after dedistortion of each image, and a camera intrinsic parameter corresponding to each corrected image; Acquire a dense point cloud of the target; Registering the sparse point cloud with the dense point cloud to obtain a fused point cloud; The fused point cloud is used as the initial point cloud for iteration. In each iteration, one of the corrected images is randomly selected, the virtual camera is placed at the corresponding camera position, and the intrinsic parameters of the virtual camera are set as the corresponding camera intrinsic parameters. The point cloud after the previous iteration is rendered, and the obtained rendering result image is differentiated from the currently selected corrected image to correct the color of the point cloud to obtain a result point cloud.
2. The point cloud data coloring method according to claim 1, characterized in that: The point cloud data coloring method also includes collecting images shot at different distances, and / or adjusting the focal length of the lens, and / or adjusting the shooting angle to obtain more supplementary images for the three-dimensional reconstruction.
3. The point cloud data coloring method according to claim 1, characterized in that: Before registering the sparse point cloud with the dense point cloud, the point cloud data coloring method further includes: The sparse point cloud is filtered.
4. The point cloud data coloring method according to claim 1, characterized in that: The target is measured in three dimensions using a three-dimensional laser scanner to obtain a dense point cloud of the target.
5. The point cloud data coloring method according to claim 1, characterized in that: When the number of points of the fused point cloud is greater than a set threshold, the point cloud data coloring method further includes: Performing a block operation on the initial point cloud; Iterate each block point cloud separately to obtain the block result point cloud of each block; After all block iterations are completed, the block result point clouds are merged.
6. A point cloud data coloring system, characterized in that: include: An image acquisition module is configured to acquire images of a target according to a preset path to obtain an image sequence, wherein two adjacent images at least partially overlap; A reconstruction module is configured to perform three-dimensional reconstruction based on the image sequence to obtain a sparse point cloud of the target, a camera pose of each image, a corrected image after dedistortion of each image, and a camera intrinsic parameter corresponding to each corrected image; A scanning module configured to obtain a dense point cloud of the target; A point cloud registration module is configured to register the sparse point cloud with the dense point cloud to obtain a fused point cloud; The coloring module is configured to iterate the fused point cloud as the initial point cloud. In each iteration, one of the corrected images is randomly selected, the virtual camera is placed at the corresponding camera position, and the internal parameters of the virtual camera are set to the corresponding camera internal parameters. The point cloud after the previous iteration is rendered, and the obtained rendering result image is differentiated from the currently selected corrected image to correct the color of the point cloud to obtain a result point cloud.
7. The point cloud data coloring system according to claim 6, characterized in that: The image acquisition module is further configured to acquire images taken at different distances, or adjust the focal length of the lens, or / and adjust the shooting angle to obtain more supplementary images for the three-dimensional reconstruction.
8. The point cloud data coloring system according to claim 6, characterized in that: The scanning module is a three-dimensional laser scanner, which is used to perform three-dimensional measurement on the target to obtain a dense point cloud of the target.
9. The point cloud data coloring system according to claim 6, characterized in that: When the number of points of the fused point cloud is greater than a set threshold, the point cloud data coloring system also includes a blocking module and a synthesis module. The blocking module is configured to perform blocking operations on the initial point cloud. The coloring module is also configured to iterate each block point cloud separately to obtain a block result point cloud for each block. The synthesis module is configured to merge the block result point clouds after all block iterations are completed to obtain the result point cloud.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, it can implement the point cloud data coloring method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Transformer substation three-dimensional modeling method and system based on multi-source data fusion, and medium
CN113298947A
Track three-dimensional reconstruction method fusing laser radar and image data
CN114332348A
Point cloud optimization method and system, electronic equipment and storage medium
CN115546371A
Durable space anchoring mode based on cloud
CN118113149A
Image processing method and related device
WO2021185322A1
Cited By
Three-dimensional scene reconstruction method and system based on slam and 3D Gaussian fusion
CN119313843A
Color point cloud map construction method and device based on optimal image selection and point cloud thickening
CN119693568A
Three-dimensional reconstruction method and device of sparse view, equipment, storage medium and product
CN121213805A
