Point cloud model processing method and apparatus, and readable storage medium

By selecting target image pairs from image sets with different visual effects, and using image feature matching relationships and multiple algorithms to obtain merging parameters, the problem of low accuracy in point cloud model merging in existing technologies is solved, and point cloud model merging with higher consistency is achieved.

CN115346016BActive Publication Date: 2026-11-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110524280.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-13
Publication Date
2026-11-27
Estimated Expiration
2041-05-13

AI Technical Summary

Technical Problem

In existing technologies, when merging point cloud models based on the Iterative Nearest Neighbor (ICP) algorithm, the accuracy of the merged point cloud model is low, especially when the image acquisition conditions change, the merging effect of sparse point cloud models is poor.

Method used

By selecting target image pairs from image sets with different visual effects, spatial matching relationships between point cloud models are established using image feature matching relationships. Multiple algorithms, such as RANSAC-ICP and PnP algorithms, are used to obtain merging parameters and perform accurate merging of point cloud models.

Benefits of technology

It improves the accuracy and consistency of point cloud model merging, resulting in a more accurate merged point cloud model that adapts to changes in image acquisition under different lighting, seasons, and other conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115346016B_ABST
    Figure CN115346016B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a point cloud model processing method, device and readable storage medium, wherein the method comprises: obtaining a target image pair and first and second neighborhood images corresponding to the target image pair from a first image set and a second image set having different visual effects and taken for a target scene; obtaining merging parameters according to a relationship between the target image pair, the first and second neighborhood images, a first point cloud model and a second point cloud model; and merging the first point cloud model and the second point cloud model according to the merging parameters to obtain a target point cloud model used for reconstructing a three-dimensional structure of the target scene. In this scheme, more original image information is used to participate in the merging of the point cloud model, and the consistency of the merged point cloud model obtained by this scheme is higher than that of the existing technology which directly merges according to the point cloud model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and in particular to a point cloud model processing method, apparatus, and readable storage medium. Background Technology

[0002] Due to the fast speed and low cost of image data acquisition, image-based 3D reconstruction technology is widely used in various fields such as surveying, virtual reality, film entertainment, and high-precision mapping. In 3D reconstruction technology, multiple frames of images or video sequences of an object are captured to obtain a multi-cluster 3D point cloud model. These reconstructed multi-cluster 3D point cloud models are then merged, and the 3D structure of the object is reconstructed from the merged 3D point cloud model.

[0003] In existing technologies, the Iterative Closest Point (ICP) algorithm is typically used to obtain merging parameters based on the reconstructed multi-cluster 3D point cloud model, and the multi-cluster 3D point cloud model is then merged according to these parameters. However, this method directly aligns the coordinates of the point clouds, resulting in a merged point cloud model with relatively low accuracy. Summary of the Invention

[0004] To solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a point cloud model processing method, apparatus and readable storage medium.

[0005] In a first aspect, embodiments of this disclosure provide a point cloud model processing method, including:

[0006] Based on a first image set and a second image set captured for a target scene, target image pairs and corresponding first and second neighboring images are obtained; wherein, the first image set includes multiple first images with a first visual effect; the second image set includes multiple second images with a second visual effect; the target image pair includes a target first image and a target second image whose similarity satisfies a first condition; the first neighboring images include images in the first image set whose similarity to the target first image satisfies a second condition; the second neighboring images include images in the second image set whose similarity to the target second image satisfies a third condition.

[0007] Merging parameters are obtained based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model; wherein, the first point cloud model includes a three-dimensional point cloud model reconstructed in advance based on the first image set; and the second point cloud model includes a three-dimensional point cloud model reconstructed in advance based on the second image set.

[0008] According to the merging parameters, the first point cloud model and the second point cloud model are merged to obtain the target point cloud model.

[0009] In some possible designs, obtaining target image pairs and corresponding first and second neighboring images based on a first image set and a second image set captured for the target scene includes:

[0010] The first image set and the second image set are input into a pre-trained image retrieval model to obtain the target image pair output by the image retrieval model, as well as the first neighboring image and the second neighboring image corresponding to the target image pair.

[0011] In some possible designs, obtaining merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model includes:

[0012] Based on the second matching relationship and the camera position corresponding to the first neighboring image, feature triangulation is performed to obtain a third point cloud model; wherein, the second matching relationship includes the pixel matching relationship between the target first image and the first neighboring image, and the third point cloud model has the same coordinate system and scale as the first point cloud model;

[0013] Based on the third matching relationship and the camera position corresponding to the second neighboring image, feature triangulation is performed to obtain the fourth point cloud model; wherein, the third matching relationship includes the pixel matching relationship between the target second image and the second neighboring image, and the fourth point cloud model has the same coordinate system and the same scale as the second point cloud model;

[0014] The merging parameters are obtained based on the fourth matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model.

[0015] In some possible designs, both the second matching relationship and the third matching relationship are obtained based on the first matching relationship, wherein the first matching relationship is the pixel matching relationship between the target first image and the target second image included in the target image pair.

[0016] In some possible designs, obtaining the merging parameters based on the point cloud matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model includes:

[0017] The fourth matching relationship is obtained based on the first matching relationship, the second matching relationship, the third matching relationship, the fifth matching relationship, and the sixth matching relationship. The fifth matching relationship is the matching relationship between the pixels in the first neighborhood image and the point cloud in the third point cloud model, and the sixth matching relationship is the matching relationship between the pixels in the second neighborhood image and the point cloud in the fourth point cloud model.

[0018] The merging parameters are obtained based on the positions of each point cloud contained in the fourth matching relationship in the corresponding coordinate system.

[0019] In some possible designs, obtaining the merging parameters based on the fourth matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model includes:

[0020] Based on the fourth matching relationship and the positions of each point cloud contained in the fourth matching relationship in the corresponding coordinate system, the merging parameters are obtained by using an iterative nearest neighbor algorithm based on random sampling consistency.

[0021] In some possible designs, after merging the first point cloud model and the second point cloud model according to the merging parameters to obtain the target point cloud model, the process further includes:

[0022] The fourth matching relationship is merged into the target point cloud model.

[0023] In some possible designs, obtaining the merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model includes:

[0024] Obtain the target pixel points corresponding to the pre-labeled feature points in the target scene in the target image pair, the first neighboring image, and the second neighboring image, respectively, and the point clouds corresponding to the pre-labeled feature points in the first point cloud model and the second point cloud model, respectively;

[0025] Based on the target pixel points and target point cloud corresponding to the feature points, obtain the merging parameters.

[0026] In some possible designs, obtaining the merging parameters based on the target pixels and target point cloud corresponding to the feature points includes:

[0027] Based on the position of each target pixel in its respective image and the position of the target point cloud in its respective point cloud model, the PnP algorithm based on random sampling consistency is used to obtain the merging parameters.

[0028] In some possible designs, after merging the first point cloud model and the second point cloud model according to the merging parameters to obtain the target point cloud model, the process further includes:

[0029] The correspondence between the feature points, the target pixels, and the target point cloud is merged into the target point cloud model.

[0030] In some possible designs, the method further includes:

[0031] According to the merging parameters, the camera positions of each first image in the first image set and the camera positions of each second image in the second image set are merged into the target point cloud model.

[0032] In some possible designs, the method further includes:

[0033] According to the cluster adjustment optimization algorithm, the maximum likelihood estimation is performed on the camera position of each first image, the new camera position of each second image, and the position of each point cloud in the target point cloud model to obtain the estimation results.

[0034] Based on the estimation results, the camera positions of each first image, each second image, and each point cloud in the target point cloud model are adjusted respectively.

[0035] In some possible designs, the method further includes:

[0036] The three-dimensional structure of the target scene is reconstructed based on the target point cloud model.

[0037] Secondly, embodiments of this disclosure provide a point cloud model processing apparatus, comprising:

[0038] An image extraction module is used to obtain target image pairs and corresponding first and second neighboring images based on a first image set and a second image set captured for a target scene; wherein, the first image set includes multiple first images with a first visual effect; the second image set includes multiple second images with a second visual effect; the target image pair includes a target first image and a target second image whose similarity satisfies a first condition; the first neighboring images include images in the first image set whose similarity to the target first image satisfies a second condition; and the second neighboring images include images in the second image set whose similarity to the target second image satisfies a third condition.

[0039] The parameter calculation module is used to obtain merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model; wherein, the first point cloud model is a three-dimensional point cloud model reconstructed in advance based on the first image set; and the second point cloud model is a three-dimensional point cloud model reconstructed in advance based on the second image set.

[0040] The merging module is used to merge the first point cloud model and the second point cloud model according to the merging parameters to obtain the target point cloud model.

[0041] Thirdly, embodiments of this disclosure provide an electronic device, including: a memory, a processor, and computer program instructions;

[0042] The memory is configured to store the computer program instructions;

[0043] The processor is configured to execute the computer program instructions, and when the processor executes the computer program instructions, to implement the method as described in any of the first aspects.

[0044] Fourthly, embodiments of this disclosure also provide a readable storage medium, including: a program;

[0045] When the program is executed by at least one processor of an electronic device, the electronic device implements the method as described in any of the first aspects.

[0046] Fifthly, embodiments of this disclosure also provide a program product, comprising: a computer program; the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the method as described in any of the first aspects.

[0047] This disclosure provides a point cloud model processing method, apparatus, and readable storage medium. The method involves acquiring at least one pair of target images and corresponding first and second neighboring images from a first image set and a second image set, each capturing images of a target scene with different visual effects. For each pair of target images, merging parameters are calculated based on the relationship between the target image pair, the first and second neighboring images, and the first and second point cloud models. The first and second point cloud models are then merged according to the merging parameters for each pair of target images to obtain a target point cloud model for reconstructing the three-dimensional structure of the target scene. This embodiment utilizes more original image information in the point cloud model merging process, resulting in a more consistent merged point cloud model compared to the prior art method of directly merging point cloud models. Attached Figure Description

[0048] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0049] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 A flowchart illustrating a point cloud model processing method provided in an embodiment of this disclosure;

[0051] Figure 2 A flowchart of a point cloud model processing method provided in another embodiment of this disclosure;

[0052] Figures 3A-3G A flowchart of a point cloud model processing method provided in another embodiment of this disclosure;

[0053] Figure 4 This diagram illustrates the merging effect before and after global optimization using the point cloud model processing method provided in this embodiment.

[0054] Figure 5 This is a schematic diagram of the structure of a point cloud model processing device provided in an embodiment of the present disclosure;

[0055] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0056] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0057] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0058] The process of automatically reconstructing camera parameters and the 3D structure of a scene from multiple images or video sequences is called Structure from Motion (SMF). SMF algorithms are widely used in large-scale scene reconstruction. However, SMF algorithms heavily rely on the matching of feature points between images. When images are acquired from different time periods, seasons, or lighting conditions, the visual effects of the images vary significantly, leading to a decrease in the reliability of feature point matching. Therefore, this paper proposes to first divide the acquired images, then reconstruct 3D point cloud models from the divided images separately, and finally merge the multiple clusters of 3D point cloud models.

[0059] The ICP algorithm is used to obtain the merging parameters of two clusters of 3D point cloud models, thereby achieving alignment between the two clusters. This method requires a relatively uniform point cloud distribution and cannot achieve good merging results for sparse point cloud models.

[0060] In some cases, a method of coarse alignment is first performed using the acquisition trajectory formed by the camera position when generating the point cloud model. Then, the ICP algorithm is used to obtain merging parameters and perform alignment. However, using the acquisition trajectory for coarse alignment requires relatively consistent acquisition perspectives, which limits the application scenarios.

[0061] To address the aforementioned problems, this disclosure provides a point cloud model processing method. This method selects target image pairs from a set of images with different visual effects and utilizes the image feature matching relationship (2D-2D matching relationship) between the first and second target images within the target image pair, as well as the image feature matching relationship (2D-2D matching relationship) between the target image pair and other similar images, to establish a spatial matching relationship between the two clusters of point cloud models before merging, thereby solving for the merging parameters. Compared to directly calculating the merging parameters from the two clusters of point cloud models and then merging them, this scheme uses more original image information for merging and alignment, resulting in more accurate merging parameters and stronger consistency in the merged point cloud model.

[0062] Figure 1 This is a flowchart illustrating a point cloud model processing method provided in an embodiment of this disclosure. Figure 1 As shown, the method in this embodiment includes:

[0063] S101. Based on the first image set and the second image set captured for the target scene, obtain the target image pair and the first neighboring image and the second neighboring image corresponding to the target image pair.

[0064] The first image set includes multiple first images of the target scene with a first visual effect; the second image set includes multiple second images of the target scene with a second visual effect. The first visual effect and the second visual effect differ, and this difference may be due to one or more factors such as time of day, lighting, season, and weather.

[0065] For example, the first image set includes a collection of images of the target scene taken in clear weather; the second image set includes a collection of images of the target scene taken in rainy weather. Alternatively, the first image set includes a collection of images of the target scene taken in summer; the second image set includes a collection of images of the target scene taken in winter. Alternatively, the first image set includes a collection of images of the target scene taken during the day; the second image set includes a collection of images of the target scene taken at night. This disclosure does not limit the specific visual effects.

[0066] In this scheme, the number of target image pairs can be one set or multiple sets.

[0067] Specifically, each target image pair includes a first target image and a second target image whose similarity satisfies a first condition. The first image set includes the first target image, and the second image set includes the second target image. The first neighboring images corresponding to the target image pair include images in the first image set whose similarity to the first target image satisfies a second condition. The second neighboring images corresponding to the target image pair include images in the second image set whose similarity to the second target image satisfies a third condition.

[0068] The first, second, and third conditions can be numerically represented as a first threshold, a second threshold, and a third threshold, respectively. The values ​​of the first, second, and third thresholds can be the same or different. In practical applications, the values ​​of the first, second, and third thresholds can be set according to actual needs, and this embodiment does not impose any limitations on this. Alternatively, the first condition may also include: determining a preset number of target image pairs ranked high to low based on the similarity between the first and second images; the second and third conditions are implemented similarly to the first condition.

[0069] Optionally, the similarity between target image pairs can be determined based on the similarity of image texture and image semantics between each first image and each second image. In practical applications, when determining target image pairs, the coverage of the images for the target scene can also be considered, and image pairs with high similarity and high coverage can be selected as target image pairs.

[0070] The similarity between the target first image and other first images can be determined by the offset between the shooting positions of the target first image and other first images, as well as the overlapping area between the target first image and other first images; wherein, the overlapping area can be determined by the shooting direction and shooting angle of the target first image, as well as the shooting direction and shooting angle of other first images.

[0071] Obtaining the target image pair from the first image set and the second image set can be achieved in any of the following ways:

[0072] One possible implementation includes: automatically extracting at least one pair of target images from a first image set and a second image set using deep learning image retrieval techniques. Specifically, feature information of each first image can be obtained based on a pre-trained image retrieval model, wherein the feature information of the first image includes: image texture information and image semantic information of the first image; feature information of each second image can be obtained based on the pre-trained image retrieval model, wherein the feature information of the second image includes: image texture information and image semantic information of the second image; for each first image, the feature information of the first image is matched with the feature information of each second image to obtain the similarity between the first image and each second image; by performing the above process on each first image, the pairwise similarity between any first image and any second image is obtained; based on the similarity and a first condition, at least one pair of target images satisfying the first condition is obtained.

[0073] Another possible implementation involves manually selecting a first target image from a first image set and a second target image from a second image set, then labeling the first and second target images as a target image pair. If multiple target image pairs are needed, they can be manually labeled one by one.

[0074] The first and second neighboring images corresponding to the target image pair can be obtained in the following way:

[0075] First, a pre-trained deep learning neural network model can be used to obtain the shooting position and shooting direction of the target first image, as well as the shooting position and shooting direction of other first images in the first image set.

[0076] Next, based on the shooting position of the target first image and the shooting positions of other first images, the offset of the target first image from the shooting positions of other first images is obtained; based on the angle between the shooting direction of the target first image and the shooting direction of other first images, and the shooting angle, the size of the overlapping area of ​​the target first image and other first images is obtained; based on the offset of the shooting positions of the target first image and other first images, and the size of the overlapping area of ​​the target first image and other first images, the similarity between the target first image and other first images is obtained; and based on the similarity between the target first image and other first images, the first image that satisfies the second condition is determined as the first neighboring image.

[0077] Optionally, a preset correspondence can be queried based on the offset of the shooting position of the target first image and each first image and the size of the overlapping area to obtain the similarity between the target first image and each first image. Here, the preset correspondence refers to the correspondence between the offset of the shooting position, the size of the overlapping area and the similarity.

[0078] The implementation method for obtaining the second neighboring image is similar to that for obtaining the first neighboring image. Please refer to the specific description of obtaining the first neighboring image. For the sake of brevity, it will not be repeated here.

[0079] S102. Obtain merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model.

[0080] Optionally, the first point cloud model can be a 3D point cloud model of the target scene reconstructed in advance based on each first image in the first image set using the SMF algorithm; the second point cloud model can be a 3D point cloud model of the target scene reconstructed in advance based on each second image in the second image set using the SMF algorithm. Of course, other algorithms can also be used to reconstruct the above-mentioned first and second point cloud models from the first and second image sets respectively, and this scheme is not limited thereto.

[0081] In this scheme, the target image pairs can be one set or multiple sets. When the number of target image pairs is one set, the merging of the first point cloud model and the second point cloud model can be guided by a set of merging parameters.

[0082] When there are multiple sets of target image pairs, each set of target image pairs can correspond to different regions in the target scene. Then, the merging parameters obtained from each set of target image pairs can be used to guide the merging of corresponding regions in the first point cloud model and the second point cloud model. It should be noted that in 3D scene reconstruction, the target scene (or the point cloud model before merging) is divided into multiple regions, and a set of merging parameters is calculated for each region. The merged point cloud model has stronger consistency.

[0083] For example, when reconstructing the 3D structure of a building, the building can be divided into: front, back, first side, and second side. For the front of the building, target image pair 1 is obtained; for the back of the building, target image pair 2 is obtained; for the first side of the building, target image pair 3 is obtained; and for the second side of the building, target image pair 4 is obtained. Four sets of merging parameters are calculated for each of target image pairs 1 to 4. The merging parameters corresponding to target image pair 1 are used to merge the point clouds of the front of the building; the merging parameters corresponding to target image pair 2 are used to merge the point clouds of the back of the building; the merging parameters corresponding to target image pair 3 are used to merge the point clouds of the first side of the building; and the merging parameters corresponding to target image pair 4 are used to merge the point clouds of the second side of the building.

[0084] The corresponding merging parameters for each pair of target images can be obtained using any of the following methods:

[0085] One possible implementation is to obtain the merging parameters automatically, which may include the following steps:

[0086] Step 1: Obtain the first matching relationship using a deep learning-based feature matching method; and obtain the second and third matching relationships based on the pixels included in the first matching relationship. Specifically, the first matching relationship is the pixel matching relationship between the target first image and the target second image; the second matching relationship is the pixel matching relationship between the target first image and its first neighboring images; and the third matching relationship is the pixel matching relationship between the target second image and its second neighboring images.

[0087] One approach to feature matching based on deep learning involves: pre-training a suitable image matching model using deep learning, and then using the image matching model to obtain pixel matching results between images. In one possible implementation, the image matching model first learns hotspot regions in one image (let's say image A). Hotspot regions are determined based on the response values ​​of different regions; a higher response value indicates a higher probability that the region is a hotspot, and a lower response value indicates a lower probability. The model then extracts feature information from the pixels in the hotspot regions, including image texture and semantic information. Next, based on the image and texture information of the pixels in the hotspot regions of image A, the image matching model performs matching in other images to obtain pixel matching relationships between images.

[0088] The following example illustrates the pixel matching relationship between images:

[0089] Assuming A1, A2...An are pixels in the first target image, and B1, B2...Bn are pixels in the second target image, the first matching relationship includes the matching relationship between A1 and B1, A2 and B2...An and Bn.

[0090] Based on the pixels A1, A2...An included in the first matching relationship, matching is performed on each pixel included in the first neighborhood image. A second matching relationship is generated based on the matching results. The second matching relationship includes the matching relationship between A1 and C1, A2 and C2...Am and Cm, where C1, C2...Cm are pixels in the first neighborhood image.

[0091] Based on the pixels B1, B2...Bn included in the first matching relationship, matching is performed in the second neighboring image. A third matching relationship is generated based on the matching results. The third matching relationship includes the matching relationships between B1 and D1, B2 and D2...Bi and Di, where D1, D2...Di are pixels in the second neighboring image. n, m, and i are all integers greater than or equal to 1, and m is less than or equal to n, and i is less than or equal to n.

[0092] It should be understood that the first, second, and third matching relationships mentioned above are all two-dimensional (2D) pixel-to-pixel matching relationships. Furthermore, there can be multiple second and third matching relationships, with the number of second matching relationships being the same as the number of first neighboring images, and the number of third matching relationships being the same as the number of second neighboring images.

[0093] Step two: Based on the second matching relationship and the camera positions of each first neighboring image, perform feature triangulation to obtain the third point cloud model; based on the third matching relationship and the camera positions of each second neighboring image, perform feature triangulation to obtain the fourth point cloud model. The third point cloud model and the first point cloud model share the same coordinate system and scale; the fourth point cloud model and the second point cloud model share the same coordinate system and scale.

[0094] Referring to the above example, in this scheme, the pixels in the target first image included in the second matching relationship are a subset of the pixels in the target first image included in the first matching relationship. Therefore, the third point cloud model obtained based on the second matching relationship is equivalent to a local part of the first point cloud model. Similarly, the pixels in the target second image included in the third matching relationship are a subset of the pixels in the target second image included in the first matching relationship. Therefore, the fourth point cloud model obtained based on the third matching relationship is equivalent to a local part of the second point cloud model. Obtaining differentiated merging parameters for each local region in each target scene can improve the consistency of the merged model.

[0095] Furthermore, since the third point cloud model has the same coordinate system and scale as the first point cloud model, and the fourth point cloud model has the same coordinate system and scale as the second point cloud model, the merging parameters obtained from the third and fourth point cloud models can effectively guide the merging of the first and second point cloud models.

[0096] Step 3: Obtain the merging parameters based on the fourth matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model.

[0097] Specifically, based on the first, second, third, fifth, and sixth matching relationships, a fourth matching relationship is obtained. This fourth matching relationship represents the matching between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model, which can be understood as a 3D-3D correspondence. The fifth matching relationship represents the matching between pixels in the first neighboring image and the point clouds in the third point cloud model, and the sixth matching relationship represents the matching between pixels in the second neighboring image and the point clouds in the fourth point cloud model. Based on the positions of each point cloud included in the fourth matching relationship in the corresponding coordinate system, the merging parameters are obtained using the Random Sample Consensus-ICP Iterative Nearest Neighbor Algorithm.

[0098] Specifically, the matching relationships between each first image in the first image set and the first point cloud model are obtained when the first point cloud model is created. Similarly, the matching relationships between each second image in the second image set and the second point cloud model are obtained when the second point cloud model is created.

[0099] Since there may be some mismatches in the fourth matching relationship between the third and fourth point cloud models, this scheme uses the RANSAC-ICP algorithm to remove mismatches and ensure correct matching. Mismatched point clouds are called outliers, and correctly matched point clouds are called inliers. Specifically, when using the RANSAC-ICP algorithm to remove mismatches, firstly, M pairs (e.g., M=4) of point clouds with matching relationships are randomly sampled. Based on the SVD decomposition method, a set of merging parameters is calculated, denoted as [s, r, t], where s represents the scaling scale, r represents the rotation parameter, and t represents the translation parameter. Next, based on the merging parameters [s, r, t], the number of point cloud pairs that match the merging parameters in the fourth matching relationship is counted, and the number of inliers is recorded. The above steps are repeated W times, and the merging parameter corresponding to the maximum number of inliers is taken as the final output. Here, M is a positive integer greater than or equal to 3, and W is a positive integer greater than or equal to 1.

[0100] Another possible implementation method is manual. It should be noted that "manual" here means that the information obtained in some steps is obtained manually, not all steps. For example, in the implementation method shown below, the matching relationship between the target pixel, the target point cloud, and the feature points in the target scene obtained in step one is based on manual annotation.

[0101] For example, the following steps may be included:

[0102] Step 1: Obtain the target pixel points corresponding to the feature points of the pre-labeled target scene in the target image pair, the first neighboring image, and the second neighboring image, and obtain the target point clouds corresponding to the feature points of the above target scene in the first point cloud model and the second point cloud model.

[0103] The pre-annotated target pixels and target point cloud mentioned above can be manually annotated based on feature points of the target scene. It should be understood that there is a matching relationship between the target pixels, target point cloud, and feature points in the target scene, which can be understood as a 2D-3D correspondence.

[0104] Step 2: Obtain the merging parameters based on the target pixels and target feature points mentioned above.

[0105] One possible implementation involves using the Random Sample Consensus-PnP (RANSAC-PnP) algorithm to obtain merging parameters based on the positions of the target pixels in their respective images and the positions of the target point clouds in their respective point cloud models.

[0106] Specifically, since the above 2D-3D correspondences are manually pre-annotated, some 2D-3D correspondences may be mismatched. Therefore, this scheme uses RANSAC-PnP to remove mismatches and ensure correct matching. Mismatched point clouds (or pixels) are called outliers, and correctly matched point clouds (or pixels) are called inliers. Specifically, when using the RANSAC-PnP algorithm to remove mismatches, firstly, M' pairs (e.g., M'=4) of target pixels and target point clouds with matching relationships are randomly sampled. Based on the EPnP algorithm, a set of merging parameters is calculated, denoted as [s, r, t], where s represents the scaling scale, r represents the rotation parameter, and t represents the translation parameter. Next, based on the merging parameters [s, r, t], the number of target pixel and target point cloud pairs that match the merging parameters in the above 2D-3D correspondences is counted, and the number of inliers is recorded. The above steps are repeated W' times, and the merging parameter corresponding to the highest number of inliers is taken as the final output. Where W' is a positive integer greater than or equal to 1.

[0107] S103. According to the merging parameters, merge the first point cloud model and the second point cloud model to obtain the target point cloud model.

[0108] Specifically, for each pair of target images, the point clouds of the corresponding regions in the first point cloud model or the second point cloud model are merged according to the merging parameters corresponding to the pair of target images. For example, one or more of the following processes are performed: scaling, rotation, and translation.

[0109] The point cloud model processing method provided in this embodiment obtains at least one pair of target images and corresponding first and second neighboring images from a first image set and a second image set, which are captured for a target scene and have different visual effects. For each pair of target images, merging parameters are calculated based on the relationship between the pair of target images, the first and second neighboring images, the first point cloud model, and the second point cloud model. The first and second point cloud models are merged according to the merging parameters corresponding to each pair of target images to obtain a target point cloud model for reconstructing the three-dimensional structure of the target scene. This embodiment uses more original image information to participate in the merging of point cloud models, resulting in a more consistent merged point cloud model compared to the existing method of directly merging based on the point cloud model.

[0110] Figure 2 A flowchart illustrating a point cloud model processing method provided in another embodiment of this disclosure. (Refer to...) Figure 2 As shown, in Figure 1 Based on the illustrated embodiment, after S103, it may further include:

[0111] S104. According to the merging parameters, merge the camera positions of each first image in the first image set and the camera positions of each second image in the second image set into the coordinate system of the target point cloud model.

[0112] Specifically, firstly, the camera positions of each first image in the first image set are added to the coordinate system of the first point cloud model, and the camera positions of each second image in the second image set are added to the coordinate system of the second point cloud model. Next, based on the merging parameters of each pair of target images, one or more of the following processing methods are applied to the camera positions in the corresponding region of the coordinate system of the first point cloud model: scaling, rotation, and translation. Alternatively, based on the merging parameters of each pair of target images, one or more of the following processing methods are applied to the camera positions in the corresponding region of the coordinate system of the second point cloud model: scaling, rotation, and translation.

[0113] This embodiment uses merging parameters to align the shooting positions of each image in different image sets to the coordinate system of the target point cloud model, providing a basis for subsequent image processing.

[0114] exist Figure 2 Optionally, based on the illustrated embodiment, steps S105 and S106 may also be included:

[0115] S105. Based on the cluster adjustment optimization algorithm, perform maximum likelihood estimation on the camera position of each first image, the new camera position of each second image, and the position of each point cloud in the coordinate system of the target point cloud model, and obtain the estimation results.

[0116] S106. Based on the estimation results, adjust the camera positions of each first image, each second image, and each point cloud in the coordinate system of the target point cloud model.

[0117] Because camera position errors accumulate when acquiring the first image set, they affect the accuracy of the third point cloud model; similarly, camera position errors accumulate when acquiring the second image set, affecting the accuracy of the fourth point cloud model. Therefore, this embodiment uses a clustering adjustment optimization algorithm for global optimization to reduce the reprojection error from 3D points to 2D image points, resulting in a more consistent target point cloud model after adjustment.

[0118] Optionally, in Figure 1 or Figure 2 Based on the illustrated embodiment, it may further include: S107, reconstructing the three-dimensional structure of the target scene according to the target point cloud model.

[0119] It is understandable that the target point cloud model obtained by this solution is more accurate, and therefore the reconstructed 3D structure of the target scene is also more accurate. It should be noted that this step was not included in... Figure 1 as well asFigure 2 This is reflected in the text.

[0120] Figures 3A-3G A flowchart illustrating a point cloud model processing method provided in another embodiment of this disclosure. Figures 3A-3G The specific embodiment shown is illustrated by taking as an example that the first image set includes a collection of images of the target scene taken during the day and the second image set includes a collection of images of the target scene taken at night.

[0121] Reference Figure 3A As shown, the first image set uses a daytime image database as an example. The daytime image database includes multiple images of the target scene taken during the day, and the images in the daytime image database can be called daytime image samples. The second image set uses a nighttime image database as an example. The nighttime image database includes multiple images of the target scene taken at night, and the images in the nighttime image database can be called nighttime image samples. The point cloud model reconstructed in advance based on the daytime image database is a 3D point cloud model A, and the point cloud model reconstructed in advance based on the nighttime image database is a 3D point cloud model B.

[0122] Combination Figure 3A as well as Figure 3B As shown, by Figure 3A Automatic or manual image retrieval is performed on the daytime image database and the nighttime image database shown to obtain target image pairs, as well as the first neighboring image and the second neighboring image of the target image pair.

[0123] in, Figure 3B This illustrates a set of target image pairs, with reference to... Figure 3B As shown, daytime image sample R1 and nighttime image sample S1 are a pair of target images. Daytime image samples R2, R3, and R4 are all first neighboring images of R1, and nighttime image samples S2, S3, and S4 are all second neighboring images of S1.

[0124] For R1 and S1, a pixel matching relationship between R1 and S1 is obtained using a method based on deep learning algorithms or manual annotation. (Refer to...) Figure 3C As shown, the solid hexagons and solid circles connected by the arrows at both ends of the dashed line segment represent a set of matched pixels. The solid hexagons represent pixels with matching relationships in the daytime image sample R1, and the solid circles represent pixels with matching relationships in the nighttime image sample S1.

[0125] It should be noted that, in Figure 3C In the case shown, pixels in daytime image sample R1 and nighttime image sample S1 that do not have a matching relationship are not marked.

[0126] In the following processing, if using an automatic method, please refer to...Figure 3D As shown; if using a manual method, please refer to... Figure 3E As shown.

[0127] Automatic mode:

[0128] Reference Figure 3D As shown, firstly, matching is performed on the pixels with matching relationships in daytime image sample R1 in daytime image samples R2, R3, and R4; and matching is performed on the pixels with matching relationships in nighttime image sample S1 in nighttime image samples S2, S3, and S4. Based on the matching results of daytime image sample R1 with daytime image samples R2, R3, and R4 respectively, feature triangulation processing is performed to obtain a 3D point cloud model A'; based on the matching results of nighttime image sample S1 with nighttime image samples S2, S3, and S4 respectively, feature triangulation processing is performed to obtain a 3D point cloud model B'.

[0129] Next, using the matching results of daytime image sample R1 with daytime image samples R2, R3 and R4 respectively, the matching results of nighttime image sample S1 with nighttime image samples S2, S3 and S4 respectively, and the matching relationship between daytime image sample R1 and nighttime image sample S1, the point clouds in the 3D point cloud model A' and the 3D point cloud model B' are associated, thereby obtaining the 3D-3D correspondence.

[0130] Reference Figure 3D As shown, the hollow hexagon represents the point cloud in the 3D point cloud model A', and the hollow circle represents the point cloud in the 3D point cloud model B'. The hollow hexagon and hollow circle connected by the arrows at both ends of the dashed line segment form a set of point clouds with a matching relationship.

[0131] Manual method:

[0132] Reference Figure 3E As shown, feature points in manually selected daytime image samples R1, R2, R3, and R4 can be associated with the corresponding point clouds in 3D point cloud model A and / or 3D point cloud model B; and feature points in manually selected nighttime image samples S1, S2, S3, and S4 can be associated with the corresponding point clouds in 3D point cloud model A and / or 3D point cloud model B, thereby obtaining the 2D-3D correspondence.

[0133] In this context, feature points manually selected from daytime image samples and feature points manually selected from nighttime image samples typically point to the same feature point in the target scene. This same feature point in the target scene can be determined from points whose 3D structure has been recovered from either 3D point cloud model A or 3D point cloud model B.

[0134] Reference Figure 3EAs shown, a hollow hexagon represents the point cloud in 3D point cloud model A, a hollow circle represents the point cloud in 3D point cloud model B, and the hollow hexagons and hollow circles connected by the arrows at both ends of the dashed line segment form a set of matching point clouds. The hollow circles and solid circles connected by the arrows at both ends of the dashed line segment form a set of matching point clouds and pixels. The solid hexagons and solid circles connected by the arrows at both ends of the dashed line segment form a set of matching pixels. The hollow hexagons and solid hexagons connected by the arrows at both ends of the dashed line segment form a set of matching point clouds and pixels.

[0135] and Figure 3E Only a portion of the pixel data is shown in relation to the point cloud.

[0136] Using RANSAC-ICP Figure 3D The 3D-3D correspondences obtained in the manner shown are used for calculation, or RANSAC-PnP can be used to... Figure 3E The 2D-3D correspondence obtained in the manner shown is calculated to obtain the merging parameters between the 3D point cloud model A and the 3D point cloud model B. The merging parameters are represented as [s, r, t], where s represents the scaling scale, r represents the rotation parameter, and t represents the translation parameter. The 3D point cloud model A and the 3D point cloud model B are merged according to the merging parameters [s, r, t].

[0137] Reference Figure 3F As shown, the coordinate system of each point cloud in the 3D point cloud model A is transformed using the solved merging parameters [s, r, t]. The point clouds of the transformed 3D point cloud model A are then merged with the point clouds of the 3D point cloud model B. This aligns point cloud model A into point cloud model B and merges the point clouds in 3D point cloud model A and 3D point cloud model B. The resulting new point cloud model is the target point cloud model described in the aforementioned embodiment.

[0138] Figure 3F In this example, coordinate system transformation is performed on 3D point cloud model A. In practical applications, coordinate system transformation can also be performed on 3D point cloud model B according to the merging parameters, and the transformed 3D point cloud model B can be merged into the coordinate system of 3D point cloud model A.

[0139] In practical applications, the camera positions of each daytime image sample in the daytime image database can be merged into the coordinate system of the 3D point cloud model B according to the merging parameters, and the camera positions of each nighttime image sample in the nighttime image database can be merged into the coordinate system of the 3D point cloud model B.

[0140] In practical applications, the 3D-3D or 2D-3D correspondences obtained above can be merged into the target point cloud model. (Refer to...) Figure 3GAs shown, the hollow quadrilateral represents the point cloud in the merged target point cloud model. The hollow quadrilateral and solid hexagon connected by the arrows at both ends of the dashed line segment represent point clouds and pixels with matching relationships. The hollow quadrilateral and solid circle connected by the arrows at both ends of the dashed line segment represent point clouds and pixels with matching relationships. Figure 3G The line segments shown illustrate the above-mentioned 3D-3D or 2D-3D correspondence.

[0141] It should be noted that, in order to reduce the reprojection error from the reconstructed 3D points to the 2D image points and improve the consistency of the target point cloud model, it is also possible to... Figure 3F In the obtained target point cloud model, the camera positions of each daytime image sample, the camera positions of each nighttime image sample, and the positions of each point cloud are optimized using a cluster adjustment algorithm. Figure 3F The target point cloud model obtained in the process is then globally optimized.

[0142] Taking a building as an example, Figure 4 These are schematic diagrams illustrating the merging effects before and after global optimization using the point cloud model processing method provided in this embodiment. Figure 4 (a) is a schematic diagram of the merging effect when using the point cloud model processing method provided in the embodiments of this disclosure, but without global optimization. Figure 4 Image (b) shows a schematic diagram of the merging effect after global optimization using the point cloud model processing method provided in this embodiment. (Comparison) Figure 4 The two cases shown in (a) and (b) are referred to Figure 4 As shown in (b), the area near the building contains many newly added point clouds obtained through the clustering adjustment optimization algorithm, and Figure 4 The position of the point cloud model shown in (b) was also fine-tuned based on the estimation results, making the point cloud model more accurate. Therefore, it can be seen that the target point cloud model after global optimization using the cluster adjustment optimization algorithm contains more newly added point clouds, and the position of the optimized point cloud model is more accurate, resulting in a more consistent point cloud model.

[0143] Figure 5 This is a schematic diagram of the structure of a point cloud model processing device provided in an embodiment of this disclosure. (Refer to...) Figure 5 As shown, the point cloud model processing device 500 provided in this embodiment includes: an image extraction module 501, a parameter calculation module 502, and a merging module 503.

[0144] The image extraction module 501 is used to obtain target image pairs and corresponding first and second neighboring images based on a first image set and a second image set captured for a target scene. The first image set includes multiple first images with a first visual effect; the second image set includes multiple second images with a second visual effect; the target image pair includes a target first image and a target second image whose similarity satisfies a first condition; the first neighboring image includes images in the first image set whose similarity to the target first image satisfies a second condition; and the second neighboring image includes images in the second image set whose similarity to the target second image satisfies a third condition.

[0145] The parameter calculation module 502 is used to obtain merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model; wherein, the first point cloud model is a three-dimensional point cloud model reconstructed in advance based on the first image set; and the second point cloud model is a three-dimensional point cloud model reconstructed in advance based on the second image set.

[0146] The merging module 503 is used to merge the first point cloud model and the second point cloud model according to the merging parameters to obtain the target point cloud model.

[0147] In some possible designs, the image extraction module 501 is specifically used to input the first image set and the second image set into a pre-trained image retrieval model to obtain the target image pair output by the image retrieval model, as well as the first neighboring image and the second neighboring image corresponding to the target image pair.

[0148] In some possible designs, the parameter calculation module 502 is specifically used to perform feature triangulation processing based on the second matching relationship and the camera position corresponding to the first neighboring image to obtain a third point cloud model; wherein, the second matching relationship includes the pixel matching relationship between the target first image and the first neighboring image, and the third point cloud model has the same coordinate system and scale as the first point cloud model; based on the third matching relationship and the camera position corresponding to the second neighboring image, feature triangulation processing is performed to obtain a fourth point cloud model; wherein, the third matching relationship includes the pixel matching relationship between the target second image and the second neighboring image, and the fourth point cloud model has the same coordinate system and scale as the second point cloud model; based on the fourth matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model, the merging parameters are obtained.

[0149] In some possible designs, both the second matching relationship and the third matching relationship are obtained based on the first matching relationship, wherein the first matching relationship is the pixel matching relationship between the target first image and the target second image included in the target image pair.

[0150] In some possible designs, the parameter calculation module 502 is specifically used to obtain the fourth matching relationship based on the first matching relationship, the second matching relationship, the third matching relationship, the fifth matching relationship, and the sixth matching relationship, wherein the fifth matching relationship is the matching relationship between the pixels in the first neighborhood image and the point cloud in the third point cloud model, and the sixth matching relationship is the matching relationship between the pixels in the second neighborhood image and the point cloud in the fourth point cloud model; and to obtain the merging parameters based on the positions of each point cloud included in the fourth matching relationship in the corresponding coordinate system.

[0151] In some possible designs, the parameter calculation module 502 is specifically used to obtain the merging parameters by using an iterative nearest neighbor algorithm based on random sampling consistency, according to the fourth matching relationship and the positions of each point cloud contained in the fourth matching relationship in the corresponding coordinate system.

[0152] In some possible designs, the merging module 503 is further configured to merge the first point cloud model and the second point cloud model according to the merging parameters, and after obtaining the target point cloud model, merge the fourth matching relationship into the target point cloud model.

[0153] In some possible designs, the parameter calculation module 502 is specifically used to obtain the target pixel points corresponding to the pre-annotated feature points in the target scene in the target image pair, the first neighboring image, and the second neighboring image, and the point clouds corresponding to the pre-annotated feature points in the first point cloud model and the second point cloud model, respectively; and to obtain the merging parameters based on the target pixel points and target point clouds corresponding to the feature points.

[0154] In some possible designs, the parameter calculation module 502 is specifically used to obtain the merging parameters by using the PnP algorithm based on random sampling consistency, according to the position of each target pixel in its respective image and the position of the target point cloud in its respective point cloud model.

[0155] In some possible designs, the merging module 503 is further used to merge the first point cloud model and the second point cloud model according to the merging parameters, and after obtaining the target point cloud model, merge the correspondence between the feature points, the target pixels, and the target point cloud into the target point cloud model.

[0156] In some possible designs, the merging module 503 is further configured to merge the camera positions of each first image in the first image set and the camera positions of each second image in the second image set into the target point cloud model according to the merging parameters.

[0157] In some possible designs, the point cloud model processing device 500 further includes a point cloud model optimization module 504. The point cloud model optimization module 504 is used to perform maximum likelihood estimation on the camera positions of each first image, the new camera positions of each second image, and the positions of each point cloud in the target point cloud model according to a cluster adjustment optimization algorithm, and obtain estimation results; based on the estimation results, it adjusts the camera positions of each first image, the camera positions of each second image, and the positions of each point cloud in the target point cloud model respectively.

[0158] The point cloud model processing device provided in this embodiment can be used to execute the technical solutions of any of the foregoing method embodiments. Its implementation principle and technical effects are similar, and can be referred to the description of the foregoing embodiments, which will not be repeated here.

[0159] Figure 6 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure. (Refer to...) Figure 6 As shown, the electronic device 600 provided in this embodiment includes a memory 601 and a processor 602.

[0160] The memory 601 can be a separate physical unit, connected to the processor 602 via a bus 603. Alternatively, the memory 601 and processor 602 can be integrated together, implemented in hardware, etc.

[0161] The memory 601 is used to store program instructions, and the processor 602 calls the program instructions to execute the operations of any of the above method embodiments.

[0162] Optionally, when some or all of the methods in the above embodiments are implemented by software, the electronic device 600 may also include only the processor 602. The memory 601 for storing programs is located outside the electronic device 600, and the processor 602 is connected to the memory via circuits / wires for reading and executing the programs stored in the memory.

[0163] The processor 602 can be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.

[0164] The processor 602 may further include a hardware chip. This hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0165] The memory 601 may include volatile memory, such as random-access memory (RAM); the memory may also include non-volatile memory, such as flash memory, hard disk drive (HDD), or solid-state drive (SSD); the memory may also include combinations of the above types of memory.

[0166] This disclosure also provides a computer-readable storage medium including computer program instructions, which, when executed by at least one processor of an electronic device, perform the technical solutions of any of the above method embodiments.

[0167] This disclosure also provides a program product comprising a computer program stored in a readable storage medium, wherein at least one processor of the electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the technical solutions of any of the above method embodiments.

[0168] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0169] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A point cloud model processing method, characterized in that, include: Based on a first image set and a second image set captured for a target scene, target image pairs and corresponding first and second neighboring images are obtained; wherein, the first image set includes multiple first images with a first visual effect; the second image set includes multiple second images with a second visual effect; the first visual effect and the second visual effect are different; the target image pair includes a target first image and a target second image whose similarity satisfies a first condition; the first neighboring images include images in the first image set whose similarity to the target first image satisfies a second condition; the second neighboring images include images in the second image set whose similarity to the target second image satisfies a third condition; Merging parameters are obtained based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model; wherein, the first point cloud model includes a three-dimensional point cloud model reconstructed in advance based on the first image set; and the second point cloud model includes a three-dimensional point cloud model reconstructed in advance based on the second image set. According to the merging parameters, the first point cloud model and the second point cloud model are merged to obtain the target point cloud model.

2. The method according to claim 1, characterized in that, The step of obtaining target image pairs and corresponding first and second neighboring images based on a first image set and a second image set captured for the target scene includes: The first image set and the second image set are input into a pre-trained image retrieval model to obtain the target image pair output by the image retrieval model, as well as the first neighboring image and the second neighboring image corresponding to the target image pair.

3. The method according to claim 1 or 2, characterized in that, The step of obtaining merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model includes: Based on the second matching relationship and the camera position corresponding to the first neighboring image, feature triangulation is performed to obtain a third point cloud model; wherein, the second matching relationship includes the pixel matching relationship between the target first image and the first neighboring image, and the third point cloud model has the same coordinate system and scale as the first point cloud model; Based on the third matching relationship and the camera position corresponding to the second neighboring image, feature triangulation is performed to obtain the fourth point cloud model; wherein, the third matching relationship includes the pixel matching relationship between the target second image and the second neighboring image, and the fourth point cloud model has the same coordinate system and scale as the second point cloud model; The merging parameters are obtained based on the fourth matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model.

4. The method according to claim 3, characterized in that, Both the second matching relationship and the third matching relationship are obtained based on the first matching relationship, wherein the first matching relationship is the pixel matching relationship between the target first image and the target second image included in the target image pair.

5. The method according to claim 4, characterized in that, The step of obtaining the merging parameters based on the point cloud matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model includes: The fourth matching relationship is obtained based on the first matching relationship, the second matching relationship, the third matching relationship, the fifth matching relationship, and the sixth matching relationship. The fifth matching relationship is the matching relationship between the pixels in the first neighborhood image and the point cloud in the third point cloud model, and the sixth matching relationship is the matching relationship between the pixels in the second neighborhood image and the point cloud in the fourth point cloud model. The merging parameters are obtained based on the positions of each point cloud contained in the fourth matching relationship in the corresponding coordinate system.

6. The method according to claim 3, characterized in that, The step of obtaining the merging parameters based on the fourth matching relationship between the point clouds included in the third point cloud model and the point clouds included in the fourth point cloud model includes: Based on the fourth matching relationship and the positions of each point cloud contained in the fourth matching relationship in the corresponding coordinate system, the merging parameters are obtained by using an iterative nearest neighbor algorithm based on random sampling consistency.

7. The method according to claim 3, characterized in that, After merging the first point cloud model and the second point cloud model according to the merging parameters to obtain the target point cloud model, the process further includes: The fourth matching relationship is merged into the target point cloud model.

8. The method according to claim 1, characterized in that, The step of obtaining merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model includes: Obtain the target pixel points corresponding to the pre-annotated feature points in the target scene in the target image pair, the first neighboring image, and the second neighboring image, respectively, and the point clouds corresponding to the pre-annotated feature points in the first point cloud model and the second point cloud model, respectively; The merging parameters are obtained based on the target pixel points and target point cloud corresponding to the feature points.

9. The method according to claim 8, characterized in that, The step of obtaining the merging parameters based on the target pixel points and target point cloud corresponding to the feature points includes: Based on the position of each target pixel in its respective image and the position of the target point cloud in its respective point cloud model, the PnP algorithm based on random sampling consistency is used to obtain the merging parameters.

10. The method according to claim 8, characterized in that, After merging the first point cloud model and the second point cloud model according to the merging parameters to obtain the target point cloud model, the process further includes: The correspondence between the feature points, the target pixels, and the target point cloud is merged into the target point cloud model.

11. The method according to claim 1, characterized in that, The method further includes: According to the merging parameters, the camera positions of each first image in the first image set and the camera positions of each second image in the second image set are merged into the target point cloud model.

12. The method according to claim 11, characterized in that, The method further includes: According to the cluster adjustment optimization algorithm, the maximum likelihood estimation is performed on the camera position of each first image, the new camera position of each second image, and the position of each point cloud in the target point cloud model to obtain the estimation results. Based on the estimation results, the camera positions of each first image, each second image, and each point cloud in the target point cloud model are adjusted respectively.

13. The method according to claim 1, characterized in that, The method further includes: The three-dimensional structure of the target scene is reconstructed based on the target point cloud model.

14. A point cloud model processing device, characterized in that, include: An image extraction module is used to obtain target image pairs and corresponding first and second neighboring images based on a first image set and a second image set captured for a target scene; wherein, the first image set includes multiple first images with a first visual effect; the second image set includes multiple second images with a second visual effect; the first visual effect and the second visual effect are different; the target image pair includes a target first image and a target second image whose similarity satisfies a first condition; the first neighboring images include images in the first image set whose similarity to the target first image satisfies a second condition; the second neighboring images include images in the second image set whose similarity to the target second image satisfies a third condition; The parameter calculation module is used to obtain merging parameters based on the relationship between the target image pair, the first neighboring image, the second neighboring image, the first point cloud model, and the second point cloud model; wherein, the first point cloud model is a three-dimensional point cloud model reconstructed in advance based on the first image set; and the second point cloud model is a three-dimensional point cloud model reconstructed in advance based on the second image set. The merging module is used to merge the first point cloud model and the second point cloud model according to the merging parameters to obtain the target point cloud model.

15. An electronic device, characterized in that, include: Memory, processor, and computer program instructions; The memory is configured to store the computer program instructions; The processor is configured to execute the computer program instructions, and when the processor executes the computer program instructions, it implements the point cloud model processing method as described in any one of claims 1 to 13.

16. A readable storage medium, characterized in that, include: program; When the program is executed by at least one processor of an electronic device, the electronic device implements the point cloud model processing method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Method and device for fusing point cloud data

    CN108230379A