Modeling method, device, electronic device and readable storage medium for house model
By obtaining and constraining the depth information and camera pose information of multiple panoramic images of the house, the problem of low house modeling quality in the existing technology is solved, and good visual consistency and modeling quality improvement are achieved.
Patent Information
- Application Number
- CN202210423436.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-21
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-04-21
AI Technical Summary
In the existing technology, the depth camera-based house modeling method is affected by factors such as the number of images, shooting techniques, and field of view, resulting in low modeling quality and lack of visual consistency.
By obtaining multiple panoramic images of the house, determining the depth information and camera pose information of each image, and performing consistency constraint processing, a house model is constructed to ensure the consistency of the depth information and camera pose information, thereby improving modeling Quality and visual consistency.
It achieves visual consistency and quality improvement of house modeling, reduces modeling noise, avoids distortion, and improves the accuracy and effect of house modeling.
Smart Images

Figure CN114782646B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of house model modeling, and specifically relates to a house model modeling method, a house model modeling device, an electronic device and a readable storage medium. Background Art
[0002] In recent years, as the accuracy of depth cameras continues to improve, the house modeling method based on depth cameras has become increasingly popular. In the existing technology, the modeling is performed by taking images of some controls in the house by cameras. The modeling quality is affected by factors such as the number of images, the image shooting technique, and the image field of view, resulting in low modeling quality. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a modeling method, device, electronic device and readable storage medium for a house model, which ensures that the house model obtained by modeling has good visual consistency and further improves the quality of house modeling.
[0004] In a first aspect, an embodiment of the present application provides a modeling method for a house model, comprising: acquiring multiple panoramic images of a house, wherein the multiple panoramic images include a common view area; determining the depth information and camera pose information of each panoramic image; performing consistency constraint processing on the corresponding depth information and camera pose information; and constructing a house model based on the depth information and camera pose information after multiple consistency constraints.
[0005] In the second aspect, an embodiment of the present application provides a modeling device for a house model, including: an acquisition module, used to acquire multiple panoramic images of a house, the multiple panoramic images include a common view area; a determination module, used to determine the depth information and camera pose information of each panoramic image; a processing module, used to perform consistency constraint processing on the corresponding depth information and camera pose information; a construction module, also used to construct a house model based on the depth information and camera pose information after multiple consistency constraints.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.
[0007] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the modeling method of the house model as in the first aspect are implemented.
[0008] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the modeling method of the house model as in the first aspect.
[0009] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the modeling method of a house model as in the first aspect.
[0010] In the present application, multiple panoramic images of a house are collected by a camera, and each of the multiple panoramic images corresponds to a panoramic image with a common viewing area. Depth information and camera position information of the multiple panoramic images are obtained.
[0011] The corresponding depth information, camera posture information and panoramic image are used as a set of modeling data. The three-dimensional point cloud of each set of modeling data in the world coordinate system can be calculated, and the house is modeled accordingly.
[0012] In the process of obtaining depth information and camera pose information, the corresponding depth information and camera pose information are used as constraints on each other to perform consistency constraints. When the corresponding three-dimensional point cloud is searched for modeling based on the depth information and camera pose that have undergone consistency constraints, it can be ensured that the modeled house model has good visual consistency.
[0013] This application uses the depth information and camera pose information in the panoramic image of the house to perform three-dimensional modeling of the house. In addition, when the depth information and camera pose information are obtained to meet the consistency, the house model obtained by modeling has good visual consistency, which further improves the quality of house modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 One of the flow diagrams of the modeling method of the house model provided in the embodiment of the present application is shown;
[0015] Figure 2 The second flowchart of the modeling method of the house model provided in the embodiment of the present application is shown;
[0016] Figure 3 The third flowchart of the modeling method of the house model provided in the embodiment of the present application is shown;
[0017] Figure 4 A fourth flow chart of a method for modeling a house model provided in an embodiment of the present application is shown;
[0018] Figure 5A fifth flow chart of a method for modeling a house model provided in an embodiment of the present application is shown;
[0019] Figure 6 A sixth flow chart of a method for modeling a house model provided in an embodiment of the present application is shown;
[0020] Figure 7 FIG7 shows a flow chart of a method for modeling a house model provided in an embodiment of the present application;
[0021] Figure 8 A schematic diagram of modeling a house model provided in an embodiment of the present application is shown;
[0022] Fig. 9 A structural block diagram of a modeling device for a house model provided in an embodiment of the present application is shown;
[0023] Fig.10 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;
[0024] Fig.11 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0027] The following is combined with Figures 1 to 11 , the modeling method of the house model, the modeling device of the house model, the electronic device and the readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0028] In an embodiment of the present application, a modeling method for a house model is provided. Figure 1FIG. 1 shows one of the flow charts of the modeling method of the house model provided in the embodiment of the present application, such as Figure 1 As shown, the modeling method of the house model includes:
[0029] Step 102, obtaining multiple panoramic images of the house;
[0030] The multiple panoramic images include a common viewing area. It is worth noting that the common viewing area is an area with the same image features in the multiple panoramic images.
[0031] Step 104, determining the depth information and camera pose information of each panoramic image;
[0032] The panoramic image is converted into a depth image to obtain depth information of the panoramic image.
[0033] Optionally, the depth image corresponding to the panoramic image is used as the depth information of the panoramic image.
[0034] Step 106, performing consistency constraint processing on the corresponding depth information and camera pose information;
[0035] Step 108, constructing a house model according to the depth information and camera pose information after multiple consistency constraints.
[0036] This embodiment provides a solution for performing three-dimensional modeling of a house based on a plurality of collected panoramic images of the house.
[0037] In the embodiment of the present application, multiple panoramic images of the house are collected by a camera, and each of the multiple panoramic images corresponds to a panoramic image with a common viewing area. Depth information and camera position information of the multiple panoramic images are obtained.
[0038] The corresponding depth information, camera posture information and panoramic image are used as a set of modeling data. The three-dimensional point cloud of each set of modeling data in the world coordinate system can be calculated, and the house is modeled accordingly.
[0039] In the process of obtaining depth information and camera pose information, the corresponding depth information and camera pose information are used as constraints on each other to perform consistency constraints. When the corresponding three-dimensional point cloud is searched for modeling based on the depth information and camera pose that have undergone consistency constraints, it can be ensured that the modeled house model has good visual consistency.
[0040] In the related technologies of house modeling, images of some controls in the house are taken by cameras for modeling. The quality of modeling is affected by factors such as the number of images, image shooting techniques, and image field of view, resulting in low modeling quality.
[0041] The embodiment of the present application uses the depth information and camera pose information in the panoramic image of the house to perform three-dimensional modeling of the house. In addition, when the depth information and camera pose information are obtained to meet the consistency, the house model obtained by modeling is also guaranteed to have good visual consistency, further improving the quality of the house modeling.
[0042] In some embodiments of the present application, Figure 2 The second flow chart of the modeling method of the house model provided in the embodiment of the present application is shown as follows: Figure 2 As shown, the corresponding depth information and camera pose information are processed with consistency constraints, including:
[0043] Step 202, determining at least two first point clouds according to at least two depth information;
[0044] Step 204, configuring at least two point clouds into a first coordinate system according to corresponding at least two camera pose information;
[0045] Step 206: Perform consistency constraint processing on at least two pieces of depth information and at least two pieces of camera pose information according to the overlapping area of at least two point clouds.
[0046] This embodiment provides a solution for performing consistency constraints in the process of acquiring depth information and camera pose information of a panoramic image.
[0047] In an embodiment of the present application, consistency constraints include color consistency constraints and spatial consistency constraints for processing depth information and camera pose information. According to the depth information corresponding to at least two panoramas with a common view area, at least two corresponding first point clouds can be generated. According to at least two camera pose information corresponding to at least two first point clouds, at least two point clouds can be configured into the same first coordinate system. According to the overlapping area of at least two first point clouds, the first point cloud is constrained, thereby achieving constraints on the depth information and camera pose information.
[0048] It is worth noting that the first point cloud is a point cloud with color, so not only the control consistency of the first point cloud is constrained, but also the color consistency of the first point cloud is constrained.
[0049] Specifically, the consistency constraint optimizes the depth information and camera pose information by utilizing the color space consistency of the common view area of the panoramic image.
[0050] The consistency constraints include color consistency constraints and spatial consistency constraints. For the panoramic images C1 and C2 with a common view area, the corresponding depth information D1 and D2, as well as the corresponding camera pose information T1 and T2 are obtained. First, according to the panoramic camera projection model, the first point cloud P1 is generated by the panoramic image C1 and the depth information D1, and the first point cloud P2 is generated by the panoramic image C2 and the depth information D2. Then, the point clouds P1 and P2 are converted to the same spatial coordinate system through the camera pose information T1 and T2, and the position and color difference of the corresponding first point cloud are constrained for the overlapping area of the two point clouds P1 and P2.
[0051] In the embodiment of the present application, after obtaining the depth information and camera pose information corresponding to the panoramic image, consistency constraints are performed on the two to obtain the depth information and camera pose information after consistency constraints. The corresponding three-dimensional point cloud is searched through the depth information and camera pose information after consistency constraints, and the three-dimensional modeling of the house is performed based on this. This can ensure that the modeled house model has good visual consistency, thereby further improving the modeling quality of the house model.
[0052] In some embodiments of the present application, determining the depth information of each panoramic image includes: inputting multiple panoramic images into a first model, determining multiple depth information, and the multiple depth information corresponds to the multiple panoramic images one by one.
[0053] This embodiment provides a solution for determining depth information corresponding to a panoramic image through a neural network.
[0054] In the embodiment of the present application, the first model is a depth estimation model based on a deep learning algorithm. The panoramic image with color information is input into the first model, and the first model can output the depth information corresponding to the panoramic image.
[0055] It is worth noting that the first model can use the pose information T between multiple panoramic images to constrain the consistency of depth information corresponding to the panoramic images with a common view area, and further adjust the panoramic depth information. The pose information T is determined by the camera pose information of the multiple panoramic images with a common view area.
[0056] The embodiment of the present application obtains depth information of a panoramic image based on a deep learning algorithm, thereby improving the accuracy of obtaining the depth information.
[0057] In some embodiments of the present application, Figure 3 The third flow chart of the modeling method of the house model provided in the embodiment of the present application is shown as follows: Figure 3 As shown, the camera pose information of each panoramic image is determined, including:
[0058] Step 302, determining relative position information between each two adjacent panoramic images in the plurality of panoramic images according to the common viewing area;
[0059] Step 304: Determine the camera pose information of each panoramic image according to the relative pose information.
[0060] This embodiment provides a solution for obtaining camera pose information corresponding to multiple panoramic images.
[0061] In the embodiment of the present application, multiple panoramic images are input into the second model, and the second model can obtain the relative pose information between the two adjacent panoramic images according to the common view area between the two adjacent panoramic images. The multiple relative pose information in the multiple panoramic images determines the camera pose information of each panoramic image in the multiple panoramic images.
[0062] It is worth noting that the second model can perform consistency constraints on multiple camera pose information of multiple panoramic images according to multiple depth information corresponding to the multiple panoramic images, thereby further optimizing and adjusting the camera pose information of the multiple panoramic images.
[0063] The embodiment of the present application obtains the camera pose information of the panoramic image based on a deep learning algorithm, thereby improving the accuracy of obtaining the camera pose information.
[0064] In some embodiments of the present application, Figure 4 FIG. 4 shows a flow chart of a method for modeling a house model provided in an embodiment of the present application. Figure 4 As shown, according to the relative pose information, the camera pose information of each panoramic image is determined, including:
[0065] Step 402, determining the set point information of the house according to the relative position information;
[0066] Step 404 , determining the camera position information of each panoramic image according to the set point information and the relative position information.
[0067] This embodiment provides a solution for determining the camera pose information of each panoramic image based on the relative pose information between multiple panoramic images.
[0068] In the embodiment of the present application, the set point information of the house corresponding to the multiple panoramic images can be determined according to the relative pose information, that is, the spatial origin of the house in the three-dimensional space coordinate system. Based on the spatial origin and the relative pose information, the camera pose information of each panoramic image can be calculated.
[0069] The embodiment of the present application determines the spatial origin of the house through the relative pose information of multiple panoramic images, and calculates the camera pose information of each panoramic image accordingly, thereby improving the accuracy of the camera pose information of each panoramic image and further improving the accuracy of the three-dimensional model of the house obtained by modeling.
[0070] In some embodiments of the present application, Figure 5 FIG. 5 shows a flow chart of a method for modeling a house model provided in an embodiment of the present application, such as Figure 5 As shown, a house model is constructed based on the depth information and camera pose information after multiple consistency constraints;
[0071] Step 502, determining a plurality of second point clouds according to the depth information and the camera pose information after the plurality of consistency constraints;
[0072] Wherein, the plurality of second point clouds correspond one-to-one to the plurality of panoramic images;
[0073] Step 504: construct a house model according to the plurality of second point clouds.
[0074] This embodiment provides a solution for three-dimensional modeling of a house based on the depth information and camera pose information after consistency constraints.
[0075] In the embodiment of the present application, according to the depth information and the camera pose information after the consistency constraint, the pixel points in the depth information can be converted into a second point cloud, wherein the second point cloud is a three-dimensional point cloud in a three-dimensional coordinate system. By converting each pixel point in the multiple depth information corresponding to the multiple panoramic images into the second point cloud, the house model can be constructed through the second point cloud.
[0076] Specifically, the 6dof (6 degrees of freedom) pose of the current panorama can be determined through the camera pose information of the panorama. The pixel points on the panoramic depth map corresponding to the depth information can be converted into a second point cloud through the spherical projection model and the current panoramic 6dof pose. The second point cloud includes not only the position information of the point cloud, but also the color information of the point cloud. According to the second point cloud, the house model can be accurately constructed.
[0077] In the embodiment of the present application, a house model is constructed based on the second point cloud, which reduces the modeling noise in the modeling process, avoids distortion in the modeling process, and further improves the quality of the house model obtained by modeling.
[0078] In some embodiments of the present application, Figure 6 FIG. 6 shows a flow chart of a method for modeling a house model provided in an embodiment of the present application, as shown in FIG. Figure 6 As shown, a house model is constructed based on multiple second point clouds, including:
[0079] Step 602, discretizing each second point cloud into a voxel space according to a preset voxel size to obtain a first coordinate of a corresponding voxel;
[0080] Among them, voxel is a volume element, that is, the smallest unit in three-dimensional space. Voxel space is a three-dimensional space including multiple volume elements.
[0081] It is worth noting that the second point cloud includes position information, color information and depth information, and the second point cloud can be configured in the voxel space according to the preset voxel size, that is, the volume parameter of the voxel. Each second point cloud corresponds to a voxel, and multiple second point clouds are configured in the voxel space to obtain the first coordinate corresponding to the voxel.
[0082] Step 604, determining first distance field values of a plurality of voxels according to the plurality of first coordinates;
[0083] Step 606, determining a second distance field value in the voxel space according to the plurality of first distance field values;
[0084] Step 608, finding the boundary information of the house model according to the second distance field value;
[0085] The boundary information includes the vertices and edges of the house model.
[0086] Step 610, determining a house model according to the boundary information.
[0087] This embodiment provides a solution for constructing a house model based on the second point cloud (three-dimensional point cloud).
[0088] In an embodiment of the present application, by discretizing the second point cloud into the voxel space according to a preset voxel size, the first coordinate corresponding to each voxel can be obtained. Among them, the first coordinate, the voxel and the second point cloud correspond one to one. According to the first coordinate, the first distance field value of the voxel can be calculated, and the first distance difference is the stage distance field value of a single voxel. Through the first distance field value of each voxel, the second distance field value of the entire voxel space can be calculated, and the second distance field value is the truncated distance field value of the voxel space. According to the second distance field value, the vertices and edges that can constitute the house model, that is, the boundary information, can be found, and then the house model is modeled according to the boundary information.
[0089] Specifically, the present application is modeled based on a triangular network model. After determining the second distance field value in the voxel space, the Marching Cube (computer image algorithm) technology is used to find the vertices and edges that can constitute the triangular mesh, and the final triangular mesh model, i.e., the house model, is sorted and output. Among them, Marching cubes is a computer graphics algorithm used to triangulate the isosurface represented in the form of a mesh.
[0090] In the embodiment of the present application, the corresponding voxels can be determined based on the second point cloud, and the second distance field value of the overall voxel space can be determined based on the first distance field values of the multiple voxels. Then, the boundary information that can constitute the house model can be accurately queried through the image algorithm, and the house model is constructed accordingly, thereby ensuring the accuracy of the construction of the house model.
[0091] In some embodiments of the present application, Figure 7 FIG. 7 shows a flow chart of a method for modeling a house model provided in an embodiment of the present application, as shown in FIG. Figure 7 As shown, determining first distance field values of a plurality of voxels according to a plurality of first coordinates includes:
[0092] Step 702, projecting each first coordinate into a corresponding panoramic image;
[0093] Step 704, determining a projection depth value and a second coordinate of a voxel corresponding to the first coordinate in the panoramic image;
[0094] The first depth value is the projection depth value of the voxel in the panoramic image, and the second coordinate is the projection coordinate of the voxel in the panoramic image;
[0095] Step 706, searching the depth information for a second depth value according to the second coordinate;
[0096] Step 708: Determine a first distance field value according to the first depth value and the second depth value.
[0097] This embodiment provides a solution for determining the first distance field value of the voxel according to the first coordinate of the voxel.
[0098] In an embodiment of the present application, the first coordinate of each voxel is projected into the corresponding panoramic image, and the projection depth value (first depth value) and projection coordinate (second coordinate) of the voxel can be obtained. Among them, the second coordinate is the projection coordinate point of the voxel in the panoramic image. According to the second coordinate, the second depth value in the depth image (depth information) corresponding to the panoramic image can be found. By comparing the difference in depth values between the first depth value and the second depth value, the truncated distance field value of the voxel, that is, the first distance field value, can be determined. By performing the same operation on multiple voxels, the first distance field values of multiple voxels can be obtained, thereby determining the second distance field value of the overall voxel space.
[0099] It is worth noting that after the first distance field value of a single voxel is calculated, a weighted update process is performed on the first distance field value, thereby improving the accuracy of the first distance field value of the voxel.
[0100] In the embodiment of the present application, a specific scheme for determining the first distance field value of the voxel according to the three-dimensional coordinates of the voxel in the voxel space ensures the accuracy of the correspondence between the obtained voxel space and the panoramic image, thereby further ensuring the accuracy of the house model obtained by modeling.
[0101] In some embodiments of the present application, after constructing a house model based on depth information and camera pose information after multiple consistency constraints, it also includes: obtaining multiple model facets in the house model; searching for texture images of the multiple facets in the panoramic image; and mapping the house model through the texture image.
[0102] This embodiment provides a solution for searching for texture images corresponding to model patches in a panoramic image after the house model is built, and performing mapping processing on the house model according to the texture images.
[0103] In the embodiment of the present application, after the house model is modeled, a plurality of model patches in the house model are obtained. The corresponding texture images can be found in the corresponding panoramic image through the model patches, and the found texture images are mapped to the corresponding model patches.
[0104] Specifically, the panoramic image is a panoramic image with color information. In order to improve the visual effect of the house model, the house model needs to be textured. According to the position information of the model face, the texture map of the model face in the panoramic image can be accurately found, and the house model is mapped through the texture map in the panoramic image.
[0105] The embodiment of the present application searches for the corresponding texture image in the panoramic image, thereby ensuring that the texture effect in the house model after mapping is consistent with the texture effect in the collected panoramic image, ensuring the visual effect of the house model after mapping, and thus improving the quality of the house model.
[0106] In some embodiments of the present application, searching for texture images of multiple facets in a panoramic image includes: screening a target panoramic image from multiple panoramic images according to the position of each model facet in the house model, and comparing the model facet with the target panoramic image. Figure 1 One-to-one correspondence; projecting each model face into the corresponding target panoramic image; obtaining the positioning information of each model face in the corresponding target panoramic image; and determining the texture image corresponding to each model face according to the positioning information.
[0107] This embodiment provides a solution for screening corresponding texture images in a panoramic image according to the position information of the model facets.
[0108] In the embodiment of the present application, according to the position information of the model face in the house model, the multiple panoramic images collected can be screened to obtain the target panoramic image. The multiple model face are projected into the target panoramic image to obtain the positioning information of each model face in the target panoramic image. According to the positioning information, the texture image corresponding to the model face can be accurately found.
[0109] Specifically, each vertex on the model patch is mapped from the three-dimensional coordinate system to the camera coordinate system. The purpose of mapping to the camera coordinate system is to determine the target panoramic image corresponding to the model patch. The area and angle information of the model patch projected onto the panoramic image are calculated, where the area and angle information are positioning information, and the angle multiplied by the projected area is used as a measure of the model patch under the target panoramic image.
[0110] It is worth noting that since each model patch may be co-viewed by multiple panoramic images, some culling is required. Here, the occlusion relationship is used to cull some panoramic images with low confidence to determine the target panoramic image. Although the model patch may be co-viewed by multiple panoramas, in order to ensure the consistency of the mapping effect, each model patch can only select an optimal target panoramic image to provide the corresponding texture information. Here, the Markov random field is used to optimize the mapping of all model patches in the house model. That is, the texture mapping selection problem is converted into a Markov random field labeling optimization problem.
[0111] In the embodiment of the present application, the positioning information of the model facet in the target panorama is determined by the position of the model facet in the house model, and the texture image in the target panorama is accurately found based on the positioning information. The house model is mapped using the texture image, which can ensure the consistency of the mapping effect.
[0112] In one possible implementation, Figure 8 A schematic diagram of a house model provided in an embodiment of the present application is shown. Figure 8 As shown, the panoramic image sequence of the house is input into the depth estimation module and the pose estimation module, and the depth estimation module and the pose estimation module output the panoramic depth and the panoramic spatial pose respectively. The panoramic depth and the panoramic control pose are input into the panoramic point cloud fusion and mesh generation module to obtain the house model, and the house model is input into the panoramic mapping module to map the house model.
[0113] The depth estimation module is the first model in the above embodiment, and the panoramic image depth output by the depth estimation module is the depth information corresponding to the panoramic image. The posture estimation module is the second model in the above embodiment, and the panoramic image spatial posture output by the posture estimation module is the camera posture information corresponding to the panoramic image.
[0114] The modeling method of the house model provided in the embodiment of the present application can be executed by a modeling device of the house model. In the embodiment of the present application, the modeling method of the house model performed by the modeling device of the house model is taken as an example to illustrate the modeling device of the house model provided in the embodiment of the present application.
[0115] In some embodiments of the present application, a modeling device for a house model is provided. Fig. 9 The structure block diagram of the modeling device of the house model provided in the embodiment of the present application is shown as follows: Fig. 9 As shown, a modeling device 900 for a house model includes:
[0116] An acquisition module 902 is used to acquire multiple panoramic images of a house, where the multiple panoramic images include a common viewing area;
[0117] A determination module 904 is used to determine the depth information and camera pose information of each panoramic image;
[0118] A processing module 906 is used to perform consistency constraint processing on the corresponding depth information and camera pose information;
[0119] The construction module 908 is used to construct a house model according to the depth information and camera pose information after multiple consistency constraints.
[0120] This embodiment provides a solution for performing three-dimensional modeling of a house based on a plurality of collected panoramic images of the house.
[0121] The embodiment of the present application uses the depth information and camera pose information in the panoramic image of the house to perform three-dimensional modeling of the house. In addition, when the depth information and camera pose information are obtained to meet the consistency, the house model obtained by modeling is also guaranteed to have good visual consistency, further improving the quality of the house modeling.
[0122] In some embodiments of the present application, the determination module 904 is further configured to determine at least two first point clouds according to at least two pieces of depth information;
[0123] The modeling device 900 of the house model includes:
[0124] A first configuration module, configured to configure at least two point clouds into a first coordinate system according to corresponding at least two camera pose information;
[0125] The processing module 906 is further configured to perform consistency constraint processing on at least two pieces of depth information and at least two pieces of camera pose information according to an overlapping area of at least two point clouds.
[0126] This embodiment provides a solution for performing consistency constraints in the process of acquiring depth information and camera pose information of a panoramic image.
[0127] In the embodiment of the present application, after obtaining the depth information and camera pose information corresponding to the panoramic image, consistency constraints are performed on the two to obtain the depth information and camera pose information after consistency constraints. The corresponding three-dimensional point cloud is searched through the depth information and camera pose information after consistency constraints, and the three-dimensional modeling of the house is performed based on this. This can ensure that the modeled house model has good visual consistency, thereby further improving the modeling quality of the house model.
[0128] In some embodiments of the present application, the determination module 904 is further used to input the multiple panoramic images into the first model to determine multiple depth information, and the multiple depth information corresponds to the multiple panoramic images one by one.
[0129] This embodiment provides a solution for determining depth information corresponding to a panoramic image through a neural network.
[0130] The embodiment of the present application obtains depth information of a panoramic image based on a deep learning algorithm, thereby improving the accuracy of obtaining the depth information.
[0131] In some embodiments of the present application, the determination module 904 is further configured to determine relative position information between each two adjacent panoramic images in the plurality of panoramic images according to the common viewing area;
[0132] The determination module 904 is further configured to determine the camera position information of each panoramic image according to the relative position information.
[0133] This embodiment provides a solution for obtaining camera pose information corresponding to multiple panoramic images.
[0134] The embodiment of the present application obtains the camera pose information of the panoramic image based on a deep learning algorithm, thereby improving the accuracy of obtaining the camera pose information.
[0135] In some embodiments of the present application, the determination module 904 is further used to determine the set point information of the house according to the relative position information;
[0136] The determination module 904 is further configured to determine the camera position information of each panoramic image according to the set point information and the relative position information.
[0137] This embodiment provides a solution for determining the camera pose information of each panoramic image based on the relative pose information between multiple panoramic images.
[0138] The embodiment of the present application determines the spatial origin of the house through the relative pose information of multiple panoramic images, and calculates the camera pose information of each panoramic image accordingly, thereby improving the accuracy of the camera pose information of each panoramic image and further improving the accuracy of the three-dimensional model of the house obtained by modeling.
[0139] In some embodiments of the present application, the determination module 904 is further used to determine a plurality of second point clouds according to the depth information and the camera pose information after the plurality of consistency constraints, and the plurality of second point clouds correspond one-to-one to the plurality of panoramic images;
[0140] The construction module 908 is further used to construct a house model according to the multiple second point clouds.
[0141] This embodiment provides a solution for three-dimensional modeling of a house based on the depth information and camera pose information after consistency constraints.
[0142] In the embodiment of the present application, a house model is constructed based on the second point cloud, which reduces the modeling noise in the modeling process, avoids distortion in the modeling process, and further improves the quality of the house model obtained by modeling.
[0143] In some embodiments of the present application, the modeling device 900 of the house model includes:
[0144] A second configuration module, used for discretizing each second point cloud into a voxel space according to a preset voxel size to obtain a first coordinate of a corresponding voxel;
[0145] The determination module 904 is further configured to determine first distance field values of a plurality of voxels according to the plurality of first coordinates;
[0146] The determination module 904 is further configured to determine a second distance field value in the voxel space according to the plurality of first distance field values;
[0147] A search module, used for finding boundary information of the house model according to the second distance field value;
[0148] The determination module 904 is further configured to determine a house model according to the boundary information.
[0149] This embodiment provides a solution for constructing a house model based on the second point cloud (three-dimensional point cloud).
[0150] In the embodiment of the present application, the corresponding voxels can be determined based on the second point cloud, and the second distance field value of the overall voxel space can be determined based on the first distance field values of the multiple voxels. Then, the boundary information that can constitute the house model can be accurately queried through the image algorithm, and the house model is constructed accordingly, thereby ensuring the accuracy of the construction of the house model.
[0151] In some embodiments of the present application, the modeling device 900 of the house model includes:
[0152] A third configuration module, configured to project each first coordinate into a corresponding panoramic image;
[0153] The determination module 904 is further used to determine a projection depth value and a second coordinate of a voxel corresponding to the first coordinate in the panoramic image;
[0154] The first depth value is the projection depth value of the voxel in the panoramic image, and the second coordinate is the projection coordinate of the voxel in the panoramic image;
[0155] The determination module 904 is further configured to search the depth information for a second depth value according to the second coordinate;
[0156] The determination module 904 is further configured to determine a first distance field value according to the first depth value and the second depth value.
[0157] This embodiment provides a solution for determining the first distance field value of the voxel according to the first coordinate of the voxel.
[0158] In the embodiment of the present application, a specific scheme for determining the first distance field value of the voxel according to the three-dimensional coordinates of the voxel in the voxel space ensures the accuracy of the correspondence between the obtained voxel space and the panoramic image, thereby further ensuring the accuracy of the house model obtained by modeling.
[0159] In some embodiments of the present application, the acquisition module 902 is further used to acquire a plurality of model faces in the house model;
[0160] The search module is also used to search for texture images of multiple patches in the panorama;
[0161] The processing module 906 is also used to perform mapping processing on the house model through the texture image.
[0162] This embodiment provides a solution for searching for texture images corresponding to model patches in a panoramic image after the house model is built, and performing mapping processing on the house model according to the texture images.
[0163] The embodiment of the present application searches for the corresponding texture image in the panoramic image, thereby ensuring that the texture effect in the house model after mapping is consistent with the texture effect in the collected panoramic image, ensuring the visual effect of the house model after mapping, and thus improving the quality of the house model.
[0164] In some embodiments of the present application, the modeling device 900 of the house model includes:
[0165] The filtering module is used to filter the target panoramic image from the multiple panoramic images according to the position of each model face in the house model, and the model face and the target panoramic image are Figure 1 One to one correspondence;
[0166] A third configuration module is used to project each model face into a corresponding target panoramic image;
[0167] The acquisition module 902 is further used to acquire the positioning information of each model face in the corresponding target panoramic image;
[0168] The determination module 904 is also used to determine the texture image corresponding to each model face according to the positioning information.
[0169] This embodiment provides a solution for screening corresponding texture images in a panoramic image according to the position information of the model facets.
[0170] In the embodiment of the present application, the positioning information of the model facet in the target panorama is determined by the position of the model facet in the house model, and the texture image in the target panorama is accurately found based on the positioning information. The house model is mapped using the texture image, which can ensure the consistency of the mapping effect.
[0171] The modeling device of the house model in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0172] The modeling device of the house model in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0173] The modeling device of the house model provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0174] Optionally, an embodiment of the present application further provides an electronic device, Fig.10A structural block diagram of an electronic device according to an embodiment of the present application is shown. Fig.10 As shown, the electronic device 1000 includes a processor 1002 and a memory 1004. The memory 1004 stores programs or instructions that can be executed on the processor 1002. When the program or instructions are executed by the processor 1002, the various steps of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0175] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0176] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0177] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109 and a processor 1110 and other components.
[0178] Those skilled in the art will appreciate that the electronic device 1100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0179] The processor 1110 is used to obtain multiple panoramic images of the house, where the multiple panoramic images include a common viewing area;
[0180] Processor 1110, used to determine depth information and camera pose information of each panoramic image;
[0181] Processor 1110, used for performing consistency constraint processing on corresponding depth information and camera pose information;
[0182] Processor 1110 is used to construct a house model according to depth information and camera pose information after multiple consistency constraints.
[0183] This embodiment provides a solution for performing three-dimensional modeling of a house based on a plurality of collected panoramic images of the house.
[0184] The embodiment of the present application uses the depth information and camera pose information in the panoramic image of the house to perform three-dimensional modeling of the house. In addition, when the depth information and camera pose information are obtained to meet the consistency, the house model obtained by modeling is also guaranteed to have good visual consistency, further improving the quality of the house modeling.
[0185] Further, the processor 1110 is configured to determine at least two first point clouds according to at least two pieces of depth information;
[0186] The processor 1110 is used to configure at least two point clouds into a first coordinate system according to corresponding at least two camera pose information;
[0187] The processor 1110 is used to perform consistency constraint processing on at least two depth information and at least two camera pose information according to the overlapping area of at least two point clouds.
[0188] This embodiment provides a solution for performing consistency constraints in the process of acquiring depth information and camera pose information of a panoramic image.
[0189] In the embodiment of the present application, after obtaining the depth information and camera pose information corresponding to the panoramic image, consistency constraints are performed on the two to obtain the depth information and camera pose information after consistency constraints. The corresponding three-dimensional point cloud is searched through the depth information and camera pose information after consistency constraints, and the three-dimensional modeling of the house is performed based on this. This can ensure that the modeled house model has good visual consistency, thereby further improving the modeling quality of the house model.
[0190] Furthermore, the processor 1110 is used to input the multiple panoramic images into the first model, determine multiple depth information, and the multiple depth information corresponds to the multiple panoramic images one by one.
[0191] This embodiment provides a solution for determining depth information corresponding to a panoramic image through a neural network.
[0192] The embodiment of the present application obtains depth information of a panoramic image based on a deep learning algorithm, thereby improving the accuracy of obtaining the depth information.
[0193] Further, the processor 1110 is used to determine relative position information between each two adjacent panoramic images in the plurality of panoramic images according to the common viewing area;
[0194] The processor 1110 is used to determine the camera pose information of each panoramic image according to the relative pose information.
[0195] This embodiment provides a solution for obtaining camera position information corresponding to multiple panoramic images.
[0196] The embodiment of the present application obtains the camera pose information of the panoramic image based on a deep learning algorithm, thereby improving the accuracy of obtaining the camera pose information.
[0197] Further, the processor 1110 is used to determine the set point information of the house according to the relative position information;
[0198] The processor 1110 is used to determine the camera position information of each panoramic image according to the set point information and the relative position information.
[0199] This embodiment provides a solution for determining the camera pose information of each panoramic image based on the relative pose information between multiple panoramic images.
[0200] The embodiment of the present application determines the spatial origin of the house through the relative pose information of multiple panoramic images, and calculates the camera pose information of each panoramic image accordingly, thereby improving the accuracy of the camera pose information of each panoramic image and further improving the accuracy of the three-dimensional model of the house obtained by modeling.
[0201] Further, the processor 1110 is used to determine a plurality of second point clouds according to the depth information and the camera pose information after the plurality of consistency constraints, wherein the plurality of second point clouds correspond one-to-one to the plurality of panoramic images;
[0202] Processor 1110 is used to construct a house model according to the multiple second point clouds.
[0203] This embodiment provides a solution for three-dimensional modeling of a house based on the depth information and camera pose information after consistency constraints.
[0204] In the embodiment of the present application, a house model is constructed based on the second point cloud, which reduces the modeling noise in the modeling process, avoids distortion in the modeling process, and further improves the quality of the house model obtained by modeling.
[0205] Further, the processor 1110 is used to discretize each second point cloud into a voxel space according to a preset voxel size to obtain a first coordinate of a corresponding voxel;
[0206] Processor 1110, configured to determine first distance field values of a plurality of voxels according to a plurality of first coordinates;
[0207] The processor 1110 is configured to determine a second distance field value in a voxel space according to the plurality of first distance field values;
[0208] Processor 1110, configured to find boundary information of the house model according to the second distance field value;
[0209] Processor 1110 is used to determine a house model according to boundary information.
[0210] This embodiment provides a solution for constructing a house model based on the second point cloud (three-dimensional point cloud).
[0211] In the embodiment of the present application, the corresponding voxels can be determined based on the second point cloud, and the second distance field value of the overall voxel space can be determined based on the first distance field values of the multiple voxels. Then, the boundary information that can constitute the house model can be accurately queried through the image algorithm, and the house model is constructed accordingly, thereby ensuring the accuracy of the construction of the house model.
[0212] Further, the processor 1110 is used to project each first coordinate into a corresponding panoramic image;
[0213] Processor 1110, configured to determine a projection depth value of a voxel corresponding to a first coordinate in the panoramic image and a second coordinate;
[0214] The first depth value is the projection depth value of the voxel in the panoramic image, and the second coordinate is the projection coordinate of the voxel in the panoramic image;
[0215] The processor 1110 is configured to search the depth information for a second depth value according to the second coordinate;
[0216] The processor 1110 is configured to determine a first distance field value according to the first depth value and the second depth value.
[0217] This embodiment provides a solution for determining the first distance field value of the voxel according to the first coordinate of the voxel.
[0218] In the embodiment of the present application, a specific scheme for determining the first distance field value of the voxel according to the three-dimensional coordinates of the voxel in the voxel space ensures the accuracy of the correspondence between the obtained voxel space and the panoramic image, thereby further ensuring the accuracy of the house model obtained by modeling.
[0219] Further, the processor 1110 is used to obtain a plurality of model faces in the house model;
[0220] Processor 1110, used for searching texture images of multiple patches in the panoramic image;
[0221] Processor 1110 is used to perform mapping processing on the house model through the texture image.
[0222] This embodiment provides a solution for searching for texture images corresponding to model patches in a panoramic image after the house model is built, and performing mapping processing on the house model according to the texture images.
[0223] The embodiment of the present application searches for the corresponding texture image in the panoramic image, thereby ensuring that the texture effect in the house model after mapping is consistent with the texture effect in the collected panoramic image, ensuring the visual effect of the house model after mapping, and thus improving the quality of the house model.
[0224] Furthermore, the processor 1110 is used to select a target panoramic image from the plurality of panoramic images according to the position of each model face in the house model, and the model face and the target panoramic image are Figure 1 One to one correspondence;
[0225] Processor 1110, configured to project each model face into a corresponding target panoramic image;
[0226] Processor 1110, used to obtain positioning information of each model face in the corresponding target panoramic image;
[0227] Processor 1110, used to determine the texture image corresponding to each model face according to the positioning information
[0228] This embodiment provides a solution for screening corresponding texture images in a panoramic image according to the position information of the model facets.
[0229] In the embodiment of the present application, the location information of the model face in the target panorama is determined by the position of the model face in the house model, and the texture image in the target panorama is accurately found according to the location information. The house model is mapped by the texture image, and the consistency of the mapping effect can be ensured. It should be understood that in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 11071 and at least one of the other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.
[0230] The memory 1109 can be used to store software programs and various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1109 may include a volatile memory or a non-volatile memory, or the memory 1109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0231] The processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1110.
[0232] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned house modeling method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0233] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0234] The embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned house modeling method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0235] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0236] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the modeling method embodiment of the house model as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0237] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0238] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0239] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A modeling method for a house model, characterized in that: include: Acquire multiple panoramic images of the house, wherein the multiple panoramic images include a common viewing area; Determining depth information and camera position information of each panoramic image; Performing consistency constraint processing on the corresponding depth information and the camera pose information; Constructing the house model according to the depth information and camera pose information after multiple consistency constraints; The performing consistency constraint processing on the corresponding depth information and the camera pose information includes: Determine at least two first point clouds according to at least two of the depth information; According to at least two camera pose information corresponding to the at least two first point clouds, configuring at least two point clouds into a first coordinate system; According to the overlapping area of the at least two point clouds, performing consistency constraint processing on at least two of the depth information and at least two of the camera pose information; The consistency constraints include color consistency constraints and space consistency constraints for processing the depth information and the camera pose information.
2. The modeling method of the house model according to claim 1, characterized in that: The determining the depth information of each panoramic image includes: The plurality of panoramic images are input into a first model to determine a plurality of depth information, wherein the plurality of depth information corresponds one-to-one to the plurality of panoramic images.
3. The modeling method of the house model according to claim 1, characterized in that: The determining of the camera pose information of each panoramic image includes: Determining relative position information between each two adjacent panoramic images in the plurality of panoramic images according to the common viewing area; The camera pose information of each panoramic image is determined according to the relative pose information.
4. The modeling method of the house model according to claim 3, characterized in that: Determining the camera pose information of each panoramic image according to the relative pose information includes: Determining the set point information of the house according to the relative position information; The camera position information of each panoramic image is determined according to the set point information and the relative position information.
5. The method for modeling a house model according to any one of claims 1 to 4, characterized in that: constructing the house model according to the depth information and camera pose information after multiple consistency constraints; Determine a plurality of second point clouds according to the depth information and the camera pose information after the plurality of consistency constraints, wherein the plurality of second point clouds correspond one-to-one to the plurality of panoramic images; The house model is constructed according to the plurality of second point clouds.
6. The modeling method of the house model according to claim 5, characterized in that: The step of constructing the house model according to the plurality of second point clouds comprises: Discretize each of the second point clouds into a voxel space according to a preset voxel size to obtain a first coordinate of a corresponding voxel; Determine first distance field values of a plurality of the voxels according to a plurality of the first coordinates; Determine a second distance field value in the voxel space according to a plurality of the first distance field values; Finding boundary information of the house model according to the second distance field value, wherein the boundary information includes vertices and edges of the house model; The house model is determined according to the boundary information.
7. The modeling method of a house model according to claim 6, characterized in that: The determining, according to the plurality of the first coordinates, first distance field values of the plurality of the voxels comprises: Projecting each of the first coordinates into the corresponding panoramic image; Determine a first depth value and a second coordinate of the voxel corresponding to the first coordinate in the panoramic image, wherein the first depth value is a projection depth value of the voxel in the panoramic image, and the second coordinate is a projection coordinate of the voxel in the panoramic image; searching, according to the second coordinate, for a second depth value in the depth information; The first distance field value is determined according to the first depth value and the second depth value.
8. The method for modeling a house model according to any one of claims 1 to 4, characterized in that: After constructing the house model according to the depth information and camera pose information after the plurality of consistency constraints, the method further includes: Acquire multiple model facets in the house model; Finding texture images of the plurality of patches in the panorama; The house model is subjected to mapping processing through the texture image.
9. The method for modeling a house model according to claim 8, characterized in that: The step of searching for texture images of the plurality of patches in the panoramic image comprises: According to the position of each of the model facets in the house model, a target panoramic image is selected from the multiple panoramic images, wherein the model facets correspond to the target panoramic image one by one; Projecting each of the model facets into the corresponding target panoramic image; Obtaining positioning information of each of the model facets in the corresponding target panoramic image; The texture image corresponding to each of the model faces is determined according to the positioning information.
10. A modeling device for a house model, characterized in that: Applied to virtual reality devices, including: An acquisition module, used for acquiring a plurality of panoramic images of a house, wherein the plurality of panoramic images include a common viewing area; A determination module, used to determine the depth information and camera pose information of each panoramic image; A processing module, used for performing consistency constraint processing on the corresponding depth information and the camera pose information; A construction module is further used to construct the house model according to the depth information and camera pose information after multiple consistency constraints; The determination module is further used to determine at least two first point clouds according to at least two pieces of depth information; The modeling device of the house model also includes: A first configuration module, configured to configure at least two point clouds into a first coordinate system according to at least two camera pose information corresponding to the at least two first point clouds; The processing module is further used to perform consistency constraint processing on at least two of the depth information and at least two of the camera pose information according to the overlapping area of the at least two point clouds; The consistency constraints include color consistency constraints and space consistency constraints for processing the depth information and the camera pose information.
11. An electronic device, characterized in that: include: A memory on which programs or instructions are stored; A processor, configured to implement the steps of the method for modeling a house model as claimed in any one of claims 1 to 9 when executing the program or instruction.
12. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the method for modeling a house model according to any one of claims 1 to 9 are implemented.
