Three-dimensional reconstruction method and three-dimensional reconstruction device

The normalized position field map in the two-dimensional image is obtained through the deep learning network, which solves the problem of mismatch between the three-dimensional model projection and the scene image perspective, improves the accuracy and efficiency of the three-dimensional reconstruction, and realizes fast and low-cost three-dimensional scene creation. Model acquisition.

CN113362382BActive Publication Date: 2024-09-20HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010143002.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-04
Publication Date
2024-09-20
Estimated Expiration
2040-03-04

AI Technical Summary

Technical Problem

In the existing technology, the projection mapping of the 3D model does not match the perspective of the actual scene image, resulting in low accuracy of 3D reconstruction and difficulty in model retrieval, making it difficult to obtain a high-precision 3D scene model quickly and at low cost.

Method used

The normalized position field (NOLF) map in the two-dimensional image is obtained through the deep learning network, the three-dimensional point cloud of the object under the shooting perspective is restored, and the corresponding three-dimensional model is determined from the model database, which reduces the difficulty of retrieval and improves the accuracy of model matching. Accuracy.

Benefits of technology

It improves the accuracy of 3D model matching and reconstruction success rate, reduces the difficulty and computational cost of 3D model retrieval, and enables high-precision 3D reconstruction without pre-projection of the 3D model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113362382B
    Figure CN113362382B
Patent Text Reader

Abstract

The embodiment of the present application discloses a three-dimensional reconstruction method, which can realize three-dimensional reconstruction of an object through a single two-dimensional image, and can improve the accuracy of three-dimensional reconstruction. The method of the embodiment of the present application includes: obtaining an image of a first object and a camera pose of the image; determining a first normalized position field NOLF map of the first object in the image through a first deep learning network, the first NOLF map indicating a normalized three-dimensional point cloud of the first object under the shooting angle of the image; determining a first model corresponding to the first object from multiple three-dimensional models in a model database according to the first NOLF map; determining the pose of the first object according to the first model and the camera pose of the image; and reconstructing the first object in the image in three dimensions according to the first model and the pose of the first object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to three-dimensional modeling technology, and in particular to a three-dimensional reconstruction method and a three-dimensional reconstruction device. Background Art

[0002] Three-dimensional digital data can improve people's level of cognition of real space and provide people with richer information than two-dimensional image data. Using high-precision laser scanners to obtain point cloud information of three-dimensional environments for modeling is a common solution, but laser scanners are expensive. How to obtain real and usable three-dimensional digital data efficiently, accurately and cheaply is one of the key bottlenecks that restrict the further vigorous development of three-dimensional applications.

[0003] In the existing image technology, based on the pre-built model database, the single scene image input by the user is analyzed to obtain the local image of the target model, and the model is retrieved in the pre-built model database to determine the matching model, thereby realizing three-dimensional reconstruction. Among them, the preset model database performs projection mapping on the three-dimensional model based on different positions and angles in the virtual three-dimensional space, and replaces the three-dimensional model itself with a set of multi-angle projection images. In this way, the two-dimensional-three-dimensional retrieval problem in the model retrieval is converted into a two-dimensional-two-dimensional similarity measurement problem; when the projection image of a certain three-dimensional model at a certain viewing angle is close to the local image to be retrieved, the three-dimensional model corresponding to the projection image is considered to be the retrieval result.

[0004] In the prior art, a preset three-dimensional model is projected and mapped from a preset position and angle, and a set of multi-angle projection images is used in the model database to represent a three-dimensional model. However, the viewing angle of the scene image actually taken is often arbitrary and random, and has a low match with the position and angle of the projection image in the model database. Therefore, the accuracy of model retrieval is low. Summary of the invention

[0005] The embodiment of the present application provides a three-dimensional reconstruction method for realizing three-dimensional reconstruction of an object through a two-dimensional image, which can improve the accuracy of three-dimensional model matching.

[0006] A first aspect of an embodiment of the present application provides a three-dimensional reconstruction method, including: acquiring an image of a first object and a camera pose of the image; determining, through a first deep learning network, a first normalized position field (NOLF) map of the first object in the image, the first NOLF map indicating a normalized three-dimensional point cloud of the first object under the shooting perspective of the image; determining, according to the first NOLF map, a first model corresponding to the first object from a plurality of three-dimensional models in a model database; determining the pose of the first object according to the first model and the camera pose of the image; and three-dimensionally reconstructing the first object in the image according to the first model and the pose of the first object.

[0007] The three-dimensional reconstruction method provided in the embodiment of the present application obtains a two-dimensional image obtained by photographing a scene containing a first object, inputs it into a deep learning network, obtains a NOLF map of the first object, indicates a normalized three-dimensional point cloud of the first object under the shooting angle of the camera that photographed the image, determines a first model corresponding to the first object from a model database according to the NOLF map of the first object, and determines the pose of the first object according to the first model and the camera pose of the image, thereby realizing three-dimensional reconstruction of the first object in the image. Since the NOLF of the first object indicates the normalized three-dimensional point cloud of the first object under the shooting angle of the camera that photographed the image, that is, part of the three-dimensional information of the first object under the shooting angle of the image is restored through the deep learning network, three-dimensional retrieval is performed through the NOLF map, which can improve the accuracy of model matching and the success rate of three-dimensional reconstruction compared with the prior art.

[0008] In a possible implementation manner of the first aspect, the method also includes: determining a first relative pose of the first object based on the first NOLF map, the first relative pose being the relative pose between the pose of the first object and the camera pose of the image; determining a NOLF map in a plurality of the three-dimensional models at a perspective corresponding to the first relative pose; determining a first model corresponding to the first object from a plurality of three-dimensional models in a model database based on the first NOLF map includes: determining the first model corresponding to the NOLF map having the highest similarity to the first NOLF map from the NOLF maps corresponding to each of the plurality of the three-dimensional models.

[0009] The three-dimensional reconstruction method provided in the embodiment of the present application can determine the first relative pose between the first object and the camera when shooting according to the first NOLF map, and based on the first relative pose, the candidate NOLF map of each three-dimensional model in the model database can be obtained. According to the first relative pose and the pose of the three-dimensional model, the position and direction of the observation point can be determined, and the NOLF map of the three-dimensional model indicates the normalized three-dimensional point cloud of the optional part when observing the three-dimensional model from the position and direction of the observation point. Here, observing the three-dimensional model from the position and direction of the observation point can be understood as simulating the camera shooting the first object, thereby obtaining the candidate NOLF map of the three-dimensional model for comparison. According to the similarity between multiple candidate NOLF maps and the first NOLF map, the three-dimensional model corresponding to the candidate NOLF map with the highest similarity to the first NOLF map is determined as the first model. The method of the embodiment of the present application obtains the candidate NOLF map based on the calculated initial pose, thereby reducing the difficulty of retrieval. In addition, the NOLF map unifies the two-dimensional modeling objects and the three-dimensional prefabricated model library objects into the same data expression, and the data expression is independent of the lighting conditions of the modeling target in the real image and the texture details of the three-dimensional model. The three-dimensional point cloud indicated by the NOLF map implies the three-dimensional shape and geometric information of the first object, which is conducive to the similarity comparison between objects in the feature space.

[0010] In a possible implementation of the first aspect, determining the first relative pose of the first object according to the first NOLF image includes: determining, through a second deep learning network, pixel coordinates of at least four feature points of the first object in the image, the four object points indicated by the four feature points being not coplanar in three-dimensional space; determining the three-dimensional coordinates of the at least four feature points from the first NOLF image; and determining the first relative pose according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

[0011] The three-dimensional reconstruction method provided in the embodiment of the present application can determine at least four feature points based on the first NOLF image. Since the first NOLF image is a two-dimensional image, the pixel coordinates of the feature points in the first NOLF image can be determined. In addition, since the NOLF image indicates a three-dimensional point cloud, each pixel point corresponds to a three-dimensional coordinate, thereby, the correspondence between the pixel coordinates of the feature point and the three-dimensional coordinate can be obtained. The relative posture of the camera with respect to the first object when the image is taken can be calculated through the correspondence between the pixel coordinates of at least four feature points and the three-dimensional coordinates.

[0012] In a possible implementation of the first aspect, determining the first relative posture based on the pixel coordinates and the three-dimensional coordinates of the at least four feature points includes: determining the first relative posture through a perspective N-point estimation PnP algorithm based on the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

[0013] The three-dimensional reconstruction method provided in the embodiment of the present application provides a specific implementation method for calculating relative posture, namely, calculating through the PnP algorithm.

[0014] In a possible implementation manner of the first aspect, the feature points of the first object include: eight corner points of a bounding box of the first object.

[0015] In the three-dimensional reconstruction method provided in the embodiment of the present application, the feature points can specifically be the corner points of the bounding box of the first object. Since the corner points of the bounding box of all objects can be determined, the method is universal and easy to implement. It can also be performed by training a deep learning network, and the corner points of the bounding box of the object are predicted by the deep learning network to determine the feature points of the first object. Based on the retrieved three-dimensional model, the correspondence between the corner points of the bounding box of the three-dimensional model and the corner points of the bounding box predicted by the modeling target on the two-dimensional image is used, combined with the internal and external parameters of the camera corresponding to the image, to solve the accurate spatial posture of the three-dimensional model, so as to place the model in the real three-dimensional space position.

[0016] In a possible implementation of the first aspect, the method further includes: inputting the image into the first deep learning network to determine a first original NOLF map; and determining the first NOLF map according to the first original NOLF map and the image mask of the first object. Optionally, the method further includes: determining the image mask of the first object in the image through a third deep learning network; optionally, the third deep learning network and the first deep learning network are different deep learning networks or the same deep learning network, which is not specifically limited here.

[0017] The three-dimensional reconstruction method provided in the embodiment of the present application can also determine the image mask of the first object through a third deep learning network, and determine the first NOLF map according to the mask.

[0018] In a possible implementation of the first aspect, the model database includes categories of the multiple three-dimensional models, wherein the first object belongs to a first category, and the method further includes: determining the first model from the three-dimensional models belonging to the first category according to the first NOLF map. Optionally, the method further includes: inputting the image into a fourth deep learning network to determine that the first object belongs to the first category; optionally, the fourth deep learning network and the first deep learning network are different deep learning networks or the same deep learning network, which is not specifically limited here.

[0019] The three-dimensional reconstruction method provided in the embodiment of the present application can also predict the category of the first object through the fourth deep learning network, and determine the three-dimensional model belonging to the category from the model database according to the category for subsequent model matching, which can reduce the amount of calculation.

[0020] A second aspect of an embodiment of the present application provides a three-dimensional reconstruction device, including: an acquisition unit, used to acquire an image of a first object and a camera pose of the image; a determination unit, used to determine a first normalized position field (NOLF) map of the first object in the image through a first deep learning network, the first NOLF map indicating a normalized three-dimensional point cloud of the first object under the shooting perspective of the image; the determination unit, used to determine a first model corresponding to the first object from multiple three-dimensional models in a model database according to the first NOLF map; the determination unit, also used to determine the pose of the first object according to the first model and the camera pose of the image; a reconstruction unit, used to three-dimensionally reconstruct the first object in the image according to the first model and the pose of the first object.

[0021] The determination unit is also used to: determine a first relative posture of the first object based on the first NOLF map, the first relative posture being the relative posture between the posture of the first object and the camera posture of the image; determine a NOLF map of multiple three-dimensional models at a perspective corresponding to the first relative posture; the determination unit is specifically used to: determine the first model corresponding to the NOLF map having the highest similarity to the first NOLF map from the NOLF maps corresponding to each of the multiple three-dimensional models.

[0022] The determination unit is specifically used to: determine the pixel coordinates of at least four feature points of the first object in the image through a second deep learning network, where the four object points indicated by the four feature points are not coplanar in the three-dimensional space; determine the three-dimensional coordinates of the at least four feature points from the first NOLF image; and determine the first relative posture based on the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

[0023] The determination unit is specifically used to determine the first relative posture through a perspective N-point estimation PnP algorithm according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

[0024] The feature points of the first object include: eight corner points of a bounding box of the first object.

[0025] The determination unit is specifically used to: input the image into the first deep learning network to determine a first original NOLF map; and determine the first NOLF map according to the first original NOLF map and the image mask of the first object.

[0026] The model database includes categories of the multiple three-dimensional models, wherein the first object belongs to a first category; and the determination unit is specifically configured to: determine the first model from the three-dimensional models belonging to the first category according to the first NOLF map.

[0027] A third aspect of an embodiment of the present application provides a three-dimensional reconstruction device, including a processor and a memory, wherein the processor and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to call the program instructions to execute a method as described in any one of the first aspect and various possible implementation methods.

[0028] A fourth aspect of an embodiment of the present application provides a computer program product comprising instructions, characterized in that when the computer program product is run on a computer, the computer is caused to execute a method as described in the first aspect or any possible implementation of the first aspect.

[0029] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, comprising instructions, characterized in that when the instructions are executed on a computer, the computer executes a method as described in the first aspect or any possible implementation of the first aspect.

[0030] A sixth aspect of an embodiment of the present application provides a chip system, which includes a processor, and the processor is used to read and execute a computer program stored in a memory to perform the functions involved in any possible implementation of any of the above aspects. In one possible design, the chip system also includes a memory, which is electrically connected to the processor. Further optionally, the chip also includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and / or information to be processed, and the processor obtains the data and / or information from the communication interface, processes the data and / or information, and outputs the processing results through the communication interface. The communication interface can be an input and output interface. The chip system can be composed of chips, and can also include chips and other discrete devices.

[0031] Among them, the technical effects brought about by any implementation method in the second, third, fourth, fifth and sixth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.

[0032] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0033] The three-dimensional reconstruction method provided in the embodiment of the present application, after acquiring an image of a first object and a camera pose of the image, inputs the image into a deep learning network, and outputs a first normalized position field NOLF map of the first object at the shooting angle of view of the image, wherein the first NOLF map can indicate the normalized three-dimensional information of the first object at the shooting angle of view of the image; according to the first NOLF map, a first model is determined from multiple three-dimensional models in a preset model database, and calculation is performed according to the first model and the camera pose of the image to determine the pose of the first target model, thereby realizing three-dimensional reconstruction of the first target object.

[0034] Since this solution uses the NOLF map restored by the deep learning network from the captured image when retrieving the three-dimensional model in the model database, compared with the existing technology, it does not need to pre-project the three-dimensional model at different positions and perspectives. The retrieval and matching are based on the three-dimensional information and the three-dimensional model, with high accuracy.

[0035] In addition, the three-dimensional reconstruction method provided in the embodiment of the present application can also predict the relative posture of the first object according to the NOLF map and the pixel coordinates of the feature points, and obtain the NOLF map of the three-dimensional model in the model database under the initial posture based on the calculated initial posture, and then compare it with the NOLF map of the modeled object. In this way, the object and the three-dimensional model in the database are unified into the same data expression form, which can reduce the difficulty of three-dimensional model retrieval and effectively reduce the amount of calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of an artificial intelligence main framework provided for an embodiment of the present application;

[0037] Figure 2 A schematic diagram of an application environment provided for an embodiment of the present application;

[0038] Figure 3 A schematic diagram of a convolutional neural network structure provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of another convolutional neural network structure provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of an application scenario of the three-dimensional reconstruction method in an embodiment of the present application;

[0041] Figure 6 A schematic diagram of an embodiment of a three-dimensional reconstruction method in an embodiment of the present application;

[0042] Figure 7 A schematic diagram of an embodiment of a NOLF map of a target object in an embodiment of the present application;

[0043] Figure 8 A schematic diagram of a deep learning network architecture of a three-dimensional modeling method in an embodiment of the present application;

[0044] Fig. 9 This is a schematic diagram of an embodiment of similarity detection in the embodiments of the present application;

[0045] Fig.10 This is another schematic diagram of a three-dimensional reconstruction method in an embodiment of the present application;

[0046] Fig.11 A schematic diagram of an embodiment of a three-dimensional reconstruction device in an embodiment of the present application;

[0047] Fig.12 This is a schematic diagram of another embodiment of the three-dimensional reconstruction device in the embodiment of the present application;

[0048] Fig.13 A chip hardware structure diagram provided for an embodiment of the present application. DETAILED DESCRIPTION

[0049] The embodiment of the present application provides a three-dimensional reconstruction method for three-dimensional reconstruction of an object, which can improve the accuracy of model matching.

[0050] For ease of understanding, some technical terms involved in the embodiments of the present application are briefly introduced below:

[0051] 1. Three-dimensional model: A three-dimensional model is a polygonal representation of an object, usually displayed by a computer or other video device. The displayed object can be a real-world entity or a fictional object. Anything that exists in the physical nature can be represented by a three-dimensional model. In the embodiment of the present application, the three-dimensional model of the object is used to indicate the three-dimensional structure and size information of the object. There are many forms of data storage for three-dimensional models, such as three-dimensional point clouds, grids, or voxels, which are not specifically limited here.

[0052] 2. Normalized 3D model with directionality: The size of the 3D model of the object is normalized and placed in a 3D coordinate system according to the preset main viewing direction, which contains the 3D structural information of the object. The preset main viewing direction is usually the direction that conforms to user habits and can best reflect the shape characteristics of the object. For example, for a camera, the shooting button is set to face upwards, the lens direction is the main viewing direction, the actual size of the camera is normalized, and scaled to the preset size, to obtain a normalized 3D model with directionality.

[0053] Exemplarily, the method for acquiring a directional normalized three-dimensional model in an embodiment of the present application is to preset the main viewing direction of the object, define the normalized object position field as a three-dimensional space with a length, width and height of 1, and the three-dimensional model of the object is normalized and scaled, and the center of mass is located at the center point of the three-dimensional space, so that a directional normalized three-dimensional model can be obtained.

[0054] 3. Normalized object location field (NOLF) map, hereinafter referred to as NOLF map: indicates the normalized three-dimensional point cloud of the visible part of an object or a three-dimensional model at a certain viewing angle. NOLF map is an image-like data expression form, that is, each pixel coordinate of the image corresponds to the XYZ coordinate value of the three-dimensional model in the normalized three-dimensional space, that is, each pixel coordinate value corresponds to a three-dimensional coordinate value, thereby establishing a correspondence between the pixel coordinates of the three-dimensional model on the image and the three-dimensional coordinates in the normalized space. The NOLF map under the shooting perspective of the image mentioned in the embodiment of the present application is the normalized three-dimensional point cloud of the visible part of the object based on the relative posture between the camera and the object from the perspective of the camera shooting the object when the camera shoots the object.

[0055] 4. Perspective-n-point (PnP), also known as projection N-point estimation, refers to calculating the projection relationship between N object points in the world and the corresponding N image points in the image to obtain the camera or object pose.

[0056] 5. Bounding box: The smallest cuboid that completely encloses an object is the three-dimensional bounding box of the object. For an object set in a three-dimensional coordinate system, the bounding box can refer to the smallest hexahedron that contains the object and whose sides are parallel to the coordinate axes. The corner points of the bounding box are the eight vertices of the smallest hexahedron.

[0057] 6. Key points: The key points referred to in the embodiments of the present application refer to the corner points of the three-dimensional bounding box, that is, the vertices of the cuboid of the three-dimensional bounding box.

[0058] 7. Camera pose: The pose is the position of the camera in space and the pose of the camera, which can be regarded as the translation and rotation transformation of the camera from the original reference position to the current position. Similarly, the pose of an object in this application is the position of the object in space and the pose of the object.

[0059] 8. Camera extrinsic parameters: the external parameters of the camera, the conversion relationship between the world coordinate system and the camera coordinate system, including displacement parameters and rotation parameters. The camera posture can be determined based on the camera extrinsic parameters.

[0060] 9. Category: Deep learning can be used for image recognition and identification of the categories of objects in the image, i.e. object classification. For example, the object categories can be: table, chair, cat, dog, car, etc.

[0061] The 3D reconstruction method provided in the embodiment of the present application pre-builds a model database according to the application scenario and stores the 3D information of the object to be modeled. According to the types of objects covered by the scene, categories can be set for the 3D model. For example, when performing 3D reconstruction in an indoor home scene, the database needs to pre-store the 3D models of all possible furniture, and the categories are set according to the furniture types, such as "chair", "table", "coffee table", "bed", etc. Optionally, if there are many objects of the same type in the scene, secondary categories can be further set, such as multiple types of chairs, such as "stool", "armchair", "sofa chair", etc.

[0062] 10. Image mask: Use a selected image, graphic or object to completely or partially block the image to be processed to control the area or process of image processing. In the embodiment of the present application, the image mask is used to extract the region of interest, such as the local image of the first target object in the image, and the image of the region of interest is obtained by multiplying the image to be processed by the mask of the region of interest. The image value in the region of interest remains unchanged, while the image value outside the region is 0.

[0063] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0064] The term "and / or" that appears in the embodiments of the present application can be a kind of association relationship that describes the associated objects, indicating that there can be three kinds of relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, the character " / " in the present application generally indicates that the associated objects before and after are in an "or" relationship. In the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "At least one of the following items (individuals)" or its similar expressions refers to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0065] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0066] Figure 1 A schematic diagram of an artificial intelligence main framework is shown, which describes the overall workflow of the artificial intelligence system and is applicable to general artificial intelligence field requirements.

[0067] The following is an explanation of the above artificial intelligence theme framework from two dimensions: "intelligent information chain" (horizontal axis) and "IT value chain" (vertical axis).

[0068] The "intelligent information chain" reflects a series of processes from data acquisition to processing. For example, it can be a general process of intelligent information perception, intelligent information representation and formation, intelligent reasoning, intelligent decision-making, intelligent execution and output. In this process, data undergoes a condensed process of "data-information-knowledge-wisdom".

[0069] The "IT value chain" reflects the value that artificial intelligence brings to the information technology industry, from the underlying infrastructure of human intelligence, information (providing and processing technology implementation) to the system's industrial ecological process.

[0070] (1) Infrastructure:

[0071] The infrastructure provides computing power support for the AI ​​system, enables communication with the outside world, and supports it through the basic platform. It communicates with the outside world through sensors; computing power is provided by smart chips (CPU, NPU, GPU, ASIC, FPGA and other hardware acceleration chips); the basic platform includes distributed computing frameworks and networks and other related platform guarantees and support, which can include cloud storage and computing, interconnected networks, etc. For example, sensors communicate with the outside world to obtain data, and these data are provided to the smart chips in the distributed computing system provided by the basic platform for calculation.

[0072] (2) Data

[0073] The data on the upper layer of the infrastructure is used to represent the data sources in the field of artificial intelligence. The data involves graphics, images, voice, text, and IoT data of traditional devices, including business data of existing systems and perception data such as force, displacement, liquid level, temperature, and humidity.

[0074] (3) Data processing

[0075] Data processing usually includes data training, machine learning, deep learning, search, reasoning, decision-making and other methods.

[0076] Among them, machine learning and deep learning can symbolize and formalize data for intelligent information modeling, extraction, preprocessing, and training.

[0077] Reasoning refers to the process of simulating human intelligent reasoning in computers or intelligent systems, using formalized information to perform machine thinking and solve problems based on reasoning control strategies. Typical functions are search and matching.

[0078] Decision-making refers to the process of making decisions after intelligent information is reasoned, usually providing functions such as classification, sorting, and prediction.

[0079] (4) General ability

[0080] After the data has undergone the data processing mentioned above, some general capabilities can be further formed based on the results of the data processing, such as an algorithm or a general system, for example, translation, text analysis, computer vision processing, speech recognition, image recognition, etc.

[0081] (5) Smart products and industry applications

[0082] Smart products and industry applications refer to the products and applications of artificial intelligence systems in various fields. They are the encapsulation of the overall artificial intelligence solution, which productizes intelligent information decision-making and realizes practical application. Its application areas mainly include: smart manufacturing, smart transportation, smart home, smart medical care, smart security, autonomous driving, safe cities, smart terminals, etc.

[0083] The method described in this application for realizing 3D reconstruction of an object using a single 2D image has a wide range of applications. For example, in base station site surveys, digitized sites can be constructed through 3D reconstruction, thereby realizing automatic site design, online guidance of equipment installation, and wireless signal simulation. In terminal augmented reality (AR) or virtual reality (VR) technology, the difficulty of creating 3D content lies in the difficulty of 3D modeling.

[0084] See attached Figure 2, the embodiment of the present application provides a system architecture 200. The data acquisition device 260 is used to acquire images and store them in the database 230, and the training device 220 generates a target model / rule 201 based on the image data maintained in the database 230. The following will describe in more detail how the training device 220 obtains the target model / rule 201 based on the image data, and the target model / rule 201 can be used in application scenarios such as image recognition, three-dimensional reconstruction, and virtual reality.

[0085] The target model / rule 201 may be obtained based on a deep neural network, which is introduced below.

[0086] The work of each layer in a deep neural network can be expressed mathematically as To describe: From a physical level, the work of each layer in a deep neural network can be understood as completing the transformation from input space to output space (i.e., from row space to column space of a matrix) through five operations on the input space (a set of input vectors). These five operations include: 1. Dimension increase / reduction; 2. Enlargement / reduction; 3. Rotation; 4. Translation; 5. "Bending". Operations 1, 2, and 3 are represented by Completed, operation 4 is completed by +b, and operation 5 is implemented by a(). The word "space" is used here because the classified object is not a single thing, but a class of things, and space refers to the set of all individuals of this class of things. Among them, W is a weight vector, and each value in the vector represents the weight value of a neuron in this layer of the neural network. The vector W determines the spatial transformation from the input space to the output space described above, that is, the weight W of each layer controls how to transform the space. The purpose of training a deep neural network is to eventually obtain the weight matrix of all layers of the trained neural network (the weight matrix formed by many layers of vectors W). Therefore, the training process of a neural network is essentially to learn how to control spatial transformation, and more specifically to learn the weight matrix.

[0087] Because we want the output of the deep neural network to be as close as possible to the value we really want to predict, we can compare the current network's predicted value with the target value we really want, and then update the weight vector of each layer of the neural network based on the difference between the two (of course, there is usually an initialization process before the first update, that is, pre-configuring parameters for each layer in the deep neural network). For example, if the network's predicted value is high, adjust the weight vector to make it predict a lower value, and keep adjusting until the neural network can predict the target value we really want. Therefore, it is necessary to predefine "how to compare the difference between the predicted value and the target value", which is the loss function or objective function, which are important equations used to measure the difference between the predicted value and the target value. Among them, taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference, so the training of the deep neural network becomes a process of minimizing this loss as much as possible.

[0088] The target model / rule obtained by the training device 220 can be applied to different systems or devices. Figure 2 In the embodiment, the execution device 210 is configured with an I / O interface 212 for data interaction with external devices, and a “user” can input data into the I / O interface 212 through a client device 240 .

[0089] The execution device 210 can call data, codes, etc. in the data storage system 250 , and can also store data, instructions, etc. in the data storage system 250 .

[0090] The calculation module 211 processes the input data using the target model / rule 201. Taking three-dimensional modeling as an example, the calculation module 211 can parse the input image or image sequence to restore the depth information of the target.

[0091] The association function module 213 may pre-process the image data in the calculation module 211 .

[0092] The association function module 214 may pre-process the image data in the calculation module 211 .

[0093] Finally, the I / O interface 212 returns the processing result to the client device 240 and provides it to the user.

[0094] More deeply, the training device 220 can generate corresponding target models / rules 201 based on different data for different goals to provide users with better results.

[0095] In the attached Figure 2In the case shown in , the user can manually specify the data input into the execution device 210, for example, by operating in the interface provided by the I / O interface 212. In another case, the client device 240 can automatically input data into the I / O interface 212 and obtain the result. If the client device 240 needs to obtain the user's authorization to automatically input data, the user can set the corresponding authority in the client device 240. The user can view the results output by the execution device 210 on the client device 240, and the specific presentation form can be a specific method such as display, sound, action, etc. The client device 240 can also serve as a data collection terminal to store the collected training data into the database 230.

[0096] It is worth noting that Figure 2 This is only a schematic diagram of a system architecture provided by an embodiment of the present application. The positional relationship between the devices, components, modules, etc. shown in the figure does not constitute any limitation. Figure 2 In the embodiment, the data storage system 250 is an external memory relative to the execution device 210. In other cases, the data storage system 250 may also be placed in the execution device 210. Figure 2 In the embodiment, the training device 220, the execution device 210 and the client device 240 are independent devices respectively. In other cases, the training device 220 and the execution device 210 may be the same physical device, which may implement all the functions of the training device 220 and the execution device 210. Optionally, the execution device 210 and the client device 240 may also be the same physical device, which may implement all the functions of the execution device 210 and the client device 240. Optionally, the training device 220, the execution device 210 and the client device 240 are all the same physical device, which may implement all the functions of the training device 220, the execution device 210 and the client device 240. The specific scenario architecture of the embodiment of the present application is not limited here.

[0097] The deep neural network used to predict the NOLF map of the target from the two-dimensional image in the embodiment of the present application, for example, can be a convolutional neural network (CNN). CNN is a deep neural network with a convolutional structure and a deep learning architecture. The deep learning architecture refers to multiple levels of learning at different abstract levels through machine learning algorithms. As a deep learning architecture, CNN is a feed-forward artificial neural network. Taking image processing as an example, each neuron in the feed-forward artificial neural network responds to the overlapping areas in the image input therein. Of course, it can also be other types, and the present application does not limit the type of deep neural network.

[0098] like Figure 3As shown, the convolutional neural network (CNN) 100 may include an input layer 110 , a convolutional layer / pooling layer 120 , wherein the pooling layer is optional, and a neural network layer 130 .

[0099] Convolutional layer / pooling layer 120:

[0100] Convolutional Layer:

[0101] like Figure 3 The convolution layer / pooling layer 120 shown may include layers 121-126 as shown in the examples. In one implementation, layer 121 is a convolution layer, layer 122 is a pooling layer, layer 123 is a convolution layer, layer 124 is a pooling layer, layer 125 is a convolution layer, and layer 126 is a pooling layer. In another implementation, layers 121 and 122 are convolution layers, layer 123 is a pooling layer, layers 124 and 125 are convolution layers, and layer 126 is a pooling layer. That is, the output of a convolution layer can be used as the input of a subsequent pooling layer, or as the input of another convolution layer to continue the convolution operation.

[0102] Taking the convolution layer 121 as an example, the convolution layer 121 may include a plurality of convolution operators, which are also called kernels. Their role in image processing is equivalent to a filter that extracts specific information from an input image matrix. The convolution operator may essentially be a weight matrix, which is usually predefined. In the process of performing a convolution operation on an image, the weight matrix is ​​usually processed one pixel by one pixel (or two pixels by two pixels... depending on the value of the step length stride) in the horizontal direction on the input image, thereby completing the work of extracting specific features from the image.

[0103] When the convolutional neural network 100 has multiple convolutional layers, the initial convolutional layer (e.g., 121) often extracts more general features, which can also be called low-level features; as the depth of the convolutional neural network 100 increases, the features extracted by the later convolutional layers (e.g., 126) become more and more complex, such as high-level semantic features, and the features with higher semantics are more suitable for the problem to be solved. To facilitate the description of the network structure, multiple convolutional layers can be called a block.

[0104] Pooling layer:

[0105] Since it is often necessary to reduce the number of training parameters, it is often necessary to periodically introduce a pooling layer after the convolution layer, such as Figure 3 The layers 121-126 in the example 120 may be a convolution layer followed by a pooling layer, or multiple convolution layers followed by one or more pooling layers. In the image processing process, the only purpose of the pooling layer is to reduce the spatial size of the image.

[0106] Neural network layer 130:

[0107] After being processed by the convolution layer / pooling layer 120, the convolution neural network 100 is not sufficient to output the required output information. Therefore, the neural network layer 130 may include multiple hidden layers (such as Figure 3 131, 132 to 13n) and the output layer 140 shown, the parameters contained in the multi-layer hidden layers can be pre-trained according to relevant training data of a specific task type. For example, the task type may include image recognition, image classification, image super-resolution reconstruction, etc.

[0108] After the multiple hidden layers in the neural network layer 130, the last layer of the entire convolutional neural network 100 is the output layer 140.

[0109] It should be noted that if Figure 3 The convolutional neural network 100 shown is only an example of a convolutional neural network. In specific applications, the convolutional neural network can also exist in the form of other network models, for example, Figure 4 The multiple convolutional layers / pooling layers shown are operated in parallel, and the features extracted respectively are input to the full neural network layer 130 for processing.

[0110] See also Figure 5 , is a schematic diagram of an application scenario of the three-dimensional reconstruction method in an embodiment of the present application;

[0111] like Figure 5 As shown in the figure, A is a single two-dimensional image obtained by shooting the scene to be modeled, B is a pre-built three-dimensional model database, C is to identify multiple target objects in the scene from A, D is to retrieve the model from B to obtain the three-dimensional models corresponding to the multiple target objects, and E is to realize the three-dimensional reconstruction of the target object according to the matched three-dimensional model to obtain the three-dimensional data of the scene.

[0112] In the prior art, based on a pre-built model library, a single scene image input by the user is analyzed to obtain a partial image of the target model, and a model search is performed in the pre-built model database to determine the matching model, thereby realizing three-dimensional reconstruction. Among them, the preset model database performs projection mapping on the three-dimensional model based on different positions and angles in the virtual three-dimensional space, and replaces the three-dimensional model itself with a set of multi-angle projection images. In this way, the two-dimensional-three-dimensional retrieval problem in the model retrieval is converted into a two-dimensional-two-dimensional similarity measurement problem; when the projection image of a certain three-dimensional model at a certain viewing angle is close to the partial image to be retrieved, the three-dimensional model corresponding to the projection image is considered to be the retrieval result.

[0113] In the prior art, a preset three-dimensional model is projected and mapped from a preset position and angle, and a set of multi-angle projection images is used in the model database to represent a three-dimensional model. However, the viewing angle of the scene image actually captured is often arbitrary and random, and usually does not completely match the preset position and angle when the projection image is acquired in the model database. Therefore, the accuracy of model retrieval is low.

[0114] In order to increase the probability that the projection angle of the 3D model is close to the angle of the target to be modeled on the captured image, the position and angle of the 3D model projection need to be increased, which results in a large number of samples and high computational cost.

[0115] In addition, there are significant differences between the three-dimensional model projection image in the virtual space and the scene image in the real space in key factors such as lighting conditions, background, and texture color. The existing technology of retrieving virtual images through real images is restricted by the above factors, resulting in a large room for improvement in the robustness of the retrieval results.

[0116] In summary, it is difficult for existing 3D modeling technologies to achieve a good balance in key modeling indicators such as modeling efficiency, modeling cost and modeling accuracy. For consumers and developers who want to use 3D information and 3D applications, how to quickly, simply and at low cost obtain high-precision and usable 3D scene models is a key issue that needs to be continuously broken through.

[0117] The embodiment of the present application provides a three-dimensional reconstruction method, which can perform three-dimensional reconstruction based on a two-dimensional image and a pre-built model database with high modeling accuracy.

[0118] See also Figure 6 , which is a schematic diagram of an embodiment of the three-dimensional reconstruction method in the embodiment of the present application.

[0119] For target objects that may appear in the scene, a model database is pre-built, each object corresponds to a three-dimensional model, and the model database includes multiple three-dimensional models. The three-dimensional model contains the three-dimensional geometric information of the object, specifically, including geometric structure and size information. Optionally, the three-dimensional model also contains the texture features of the object. Optionally, the three-dimensional model in the model database carries a label of the object category, for example, chairs of various styles are all classified as "chair".

[0120] Taking indoor scenes as an example, we can first build models of common furniture, such as coffee tables, dining tables, and chairs of various styles that may appear in the scene; for base stations, we can first build common types of equipment, such as various types of antenna equipment, etc. Based on our understanding of the scene to be built, we provide prior information so that we can reconstruct the three-dimensional scene based on the information provided by a single two-dimensional image.

[0121] 601. A three-dimensional reconstruction device acquires an image and a camera pose;

[0122] The three-dimensional reconstruction device obtains an image of the first target object and a camera posture corresponding to the image.

[0123] The image refers to a two-dimensional image obtained by photographing a target scene including a first target object. The first target object is also referred to as a modeling target in the embodiment of the present application. The image is photographed by an image acquisition device, which may be an ordinary camera or a panoramic camera. The image acquisition device may be a component disposed in a three-dimensional reconstruction device, or may be an independent device having a wired or wireless communication connection with the three-dimensional reconstruction device. In the embodiment of the present application, the specific type and device form of the image acquisition device are not limited. The image may be a panoramic image with a horizontal viewing angle of 360 degrees captured by a panoramic camera, or an ultra-wide-angle image, or a central projection image captured by an ordinary camera, which is not specifically limited here. In addition, the three-dimensional reconstruction method provided in the embodiment of the present application can realize three-dimensional reconstruction based on a single image, but when a single central projection image cannot fully capture the target scene information, multiple images may be captured, which is not specifically limited here.

[0124] The camera pose corresponding to the image refers to the position and pose of the camera that took the image when it was taken. When a reference coordinate system is set, the camera pose can be determined by translation and rotation relative to the reference coordinate system. The method for obtaining the camera pose corresponding to the image is not limited here.

[0125] 602. The three-dimensional reconstruction device inputs the image into the deep learning network to obtain the NOLF image and the pixel coordinates of the feature points of the first target object;

[0126] The three-dimensional reconstruction device inputs the image acquired in step 601 into the deep learning network to obtain the NOLF image of the first target object under the shooting angle of the image and the pixel coordinates of the feature points of the first target object in the image.

[0127] The feature points of the first target object in the image are used to determine the position and posture of the first target object after determining the target three-dimensional model in the three-dimensional model database. In order to calculate the position and posture of the first target object, at least 4 feature points need to be determined, and the object points corresponding to the 4 feature points (image points) are not coplanar in the three-dimensional space. The specific number of feature points is not limited here. The image points in the image captured by the camera correspond to points in the three-dimensional space, which are called object points. It should be noted that the feature points of the first target object in the image can be located in the image area of ​​the first target object, and the corresponding object points are located in the first target object; the feature points of the first target object can also be located outside the image area of ​​the first target object. For example, the feature points can be the points where the corner points of the bounding box of the target object are projected in the image. Here, the corner points of the bounding box of the target object have no physical correspondence in the shooting space and only indicate a three-dimensional space position.

[0128] The NOLF map of the first target object output by the deep learning network is shown in Figure 7 , is a schematic diagram of an embodiment of a NOLF map of a target object in an embodiment of the present application, and outputs a NOLF map of a first target object in an image at a shooting angle of view of the image according to a two-dimensional RGB image, and the NOLF map can indicate normalized three-dimensional information of the first target object at the shooting angle of view of the image. The NOLF map is a two-dimensional image, and each pixel in the NOLF map stores information of three dimensions of XYZ of an object point corresponding to the pixel. Optionally, the NOLF map can be expressed by a two-dimensional RGB image, wherein the three color channels in the RGB image correspond to information of one dimension in a three-dimensional coordinate system respectively.

[0129] Optionally, the three-dimensional reconstruction device can output the NOLF map of the first target object and the pixel coordinates of the key points of the first target object through a deep learning network; the NOLF map of the first target object and the pixel coordinates of the key points of the first target object can also be obtained respectively through different deep learning networks, and the specific details are not limited here.

[0130] Optionally, the three-dimensional reconstruction device can also obtain the category of the first target object through a deep learning network. The category is used to filter and determine the model corresponding to the category from the model database during model retrieval. For example, the first target object is identified as a chair. There may be multiple types of models in the model database, such as "table", "chair", "coffee table" and "bed", etc. If the category of the first target object is obtained as "chair", the model of the object can be limited to three-dimensional models of the "chair" category, and there is no need to search in other types of three-dimensional models.

[0131] Optionally, the three-dimensional reconstruction device can also obtain a mask of the first target object through a deep learning network, and the mask can be used to optimize the NOLF image to improve the accuracy of the NOLF image.

[0132] For example, see Figure 8 , is a schematic diagram of a deep learning network architecture of a three-dimensional modeling method in an embodiment of the present application;

[0133] Figure 8A convolutional neural network for predicting NOLF maps, key points, and instance segmentation masks based on a modeled object in a two-dimensional image is described. The input is a two-dimensional RGB image containing a modeled object. Based on the image, the convolutional neural network (CNN) can predict the mask, NOLF map, and eight key point pixel coordinate values ​​of the target modeled object. The NOLF map contains the three-dimensional information of the modeled object under the shooting angle of the image. The eight key points are the corner points of the bounding box of the modeled object, and the key point pixel coordinates are the mapping of the eight corner points of the bounding box of its corresponding three-dimensional model in space on the input image based on the accurate pose. Optionally, the deep learning network predicts the target category and mask based on a general instance segmentation architecture (Mask-RCNN framework). Optionally, the convolutional neural network can also predict the category of the target modeled object through a detection branch, and the scope of model retrieval can be narrowed according to the labels of the types preset for each three-dimensional model in the three-dimensional model database.

[0134] Since a scene usually includes multiple target objects, the acquired image includes images of multiple target objects. Optionally, the three-dimensional reconstruction device inputs the image acquired in step 601 into a deep learning network, can identify multiple target objects in the image, and generate NOLF images for each target object respectively. Optionally, the first target object image area in the image is usually a partial area of ​​the image. The three-dimensional reconstruction device identifies all three-dimensional target objects to be reconstructed in the image by analyzing the image information, and obtains local images of the target object. Each local image corresponds to a target object, and the specific number of local images obtained from the image is not limited here. Since the three-dimensional reconstruction device can optionally determine the local image of the target object from the image first, and then input the local image into the deep learning network, the specific number is not limited here.

[0135] The deep learning network is a pre-trained model. Please refer to the subsequent embodiments for the training method.

[0136] 603. The three-dimensional reconstruction device determines an initial position and posture of the first target object according to the NOLF map of the first target object;

[0137] Based on the NOLF map obtained in step 602, a correspondence relationship between the image pixel coordinates of the NOLF map and the three-dimensional coordinates indicated by the NOLF map is established. Exemplarily, by randomly sampling four non-coplanar points in the three-dimensional space on the NOLF map, four pairs of two-dimensional pixel coordinate-three-dimensional coordinate correspondence relationships can be established, and then by solving PnP, a first relative pose of a modeling target in the normalized object space can be obtained, and the first relative pose is the initial pose.

[0138] Optionally, to improve the calculation accuracy of the initial pose, multiple initial poses can be obtained through multiple samplings, clustered according to the multiple initial poses, and the initial pose corresponding to the cluster center point is used as the initial pose of the directional normalized three-dimensional model of the target object under the shooting angle of the image. The following is a detailed introduction:

[0139] Under the condition that the NOLF map of the area where the modeling target is located on the two-dimensional image is known, for any pixel coordinate p in the NOLF map i , all correspond to a three-dimensional point P in the normalized space i , and then establish a series of correspondences between two-dimensional pixel positions and three-dimensional space positions. Relying on these correspondences, by solving PnP, a series of corresponding relative poses of three-dimensional models in normalized space can be obtained. The specific process is as follows: Let the pixel area of ​​the NOLF image be R, randomly sample four pixel points and the corresponding three-dimensional coordinates from R, and through these four pairs of 2D-3D (two-dimensional-three-dimensional) correspondences, solve PnP to obtain a pose H in normalized space j , for each pose H j The score is evaluated by the following alignment formula:

[0140]

[0141] Where P j is the pixel p j The corresponding normalized three-dimensional coordinates, A is the camera's intrinsic parameter matrix, thereshold is the defined threshold, and the score evaluation formula is used to measure the pose H j The confidence of each pose is measured by how many pixels correspond to the 3D coordinate values ​​after reprojection, and the pixel error is less than thereshold. The above formula is optimized by preemptive random sampling consensus (pre-emptive RANSAC), and the above sampling process is repeated. Finally, the top 10% of the hypothesized poses are clustered as the initial pose set, and the hypothesized poses corresponding to the cluster center are used as the initial pose of the modeled target in the normalized space.

[0142] 604. The three-dimensional reconstruction device determines a NOLF map of the three-dimensional model in the model database at the initial posture;

[0143] Using the initial posture obtained in step 603, NOLF map projection can be performed on all three-dimensional models in the prefabricated model database, and NOLF maps of all candidate three-dimensional models in the database at the perspective of the initial posture can be rendered. Similarity detection is then performed based on the NOLF maps at this perspective, and these NOLF maps at the perspective of the initial posture are used as information representations of the three-dimensional model database, thereby unifying the two-dimensional image information of the first target object and the three-dimensional model information in the model database into the same data expression form.

[0144] Optionally, if the category of the first target object is obtained in step 602, a set of three-dimensional models belonging to the category can be screened out from the three-dimensional model database according to the category, and the normalized position field map of the three-dimensional model of the same type as the modeled object under the perspective of the initial pose can be rendered using the initial pose determined in step 603.

[0145] 605. The three-dimensional reconstruction device performs model retrieval according to the NOLF map of the first target object and the NOLF map of the three-dimensional model in the initial position and posture to determine the first target model;

[0146] The NOLF image of the first target object obtained in step 602 and the NOLF image of the 3D model library obtained in step 604 based on the initial view are tested for similarity, and the 3D model corresponding to the NOLF image with the highest similarity is determined as the first target model.

[0147] There are many methods for similarity detection, which are not limited here. For example, please refer to Fig. 9 , which is a schematic diagram of an embodiment of similarity detection in the embodiment of the present application. A triple relationship is established based on the NOLF graph, that is, the NOLF graph predicted by the modeling target on the two-dimensional image, the NOLF graph of the three-dimensional model corresponding to the modeling target is a positive correlation, and the NOLF graph of the three-dimensional model not corresponding to the modeling target is a negative correlation, that is, the closer the Euclidean distance between the modeling target and the corresponding three-dimensional model in the feature space, the better, and the farther the Euclidean distance between the modeling target and the non-corresponding three-dimensional model, the better, so the loss function (similaritytripleloss) of the similarity of the NOLF graph feature descriptor is expressed as:

[0148]

[0149] Among them, u is the modeling target, v + , v - are the positive and negative samples of the three-dimensional model corresponding to u, respectively, and f is the NOLF feature descriptor based on CNN. (u, v + , v - ) represents a triple relationship, f(u) represents the NOLF feature descriptor of the modeling target based on CNN, and f(v +) represents the NOLF feature descriptor of the positive sample of the three-dimensional model based on CNN, f(v - ) represents the NOLF feature descriptor of the negative sample of the three-dimensional model based on CNN, m is the minimum Euclidean distance value, specifically, m>0, and the specific value is not limited here, and ||.|| represents the Euclidean distance between two sample points in the feature space.

[0150] The embodiment of the present application performs retrieval based on the NOLF graph, and the beneficial effects are:

[0151] 1) There is no need to pre-project the 3D model at different positions and perspectives, which can reduce the data size in the 3D model retrieval process;

[0152] 2) In this step, based on the calculated initial pose, the NOLF map of the 3D model in the model database under the initial pose is obtained, and then compared with the NOLF map of the modeled object. Although the obtained initial pose is not necessarily the accurate pose of the target object, similarity detection based on the NOLF map determined by the initial pose can reduce the difficulty of retrieval;

[0153] 3) In this step, in 3D model retrieval, the NOLF graph unifies the 2D modeling object and the 3D prefabricated model library object into the same data expression, and the data expression is independent of the illumination conditions of the modeling target on the real image and the texture details of the 3D model. The NOLF graph implies the 3D shape and geometric information of the object, which is conducive to the similarity comparison between objects in the feature space. Correspondingly, traditional methods usually measure the similarity between the real image of the modeling target and the virtual mapping of the 3D model, but the real image and the virtual mapping have great differences in illumination, texture and background conditions, which makes cross-domain retrieval difficult.

[0154] 606. The three-dimensional reconstruction device determines the position and posture of the first target object according to the pixel coordinates of the feature points and the first target model;

[0155] The position and posture of the first target object are determined according to the pixel coordinates of the feature points of the first target object determined in step 602 and the first target model determined in step 605 .

[0156] According to the pixel coordinates of the feature point and the three-dimensional coordinates of the corresponding feature point in the first target model, the pose of the first target object relative to the camera when shooting can be determined by the PnP solution. Optionally, if the feature point is 8 key points, since the order of the predicted eight key points corresponds one-to-one to the corner points of the retrieved three-dimensional model bounding box, the relative position relationship between the camera and the three-dimensional model when the two-dimensional image is shot can be determined by the PnP solution.

[0157] Since the external parameters of the camera that shoots the two-dimensional image are known, that is, the position of the camera in the real three-dimensional space is known, combined with the relative position relationship between the camera and the three-dimensional model solved by PnP, the absolute position of the three-dimensional model corresponding to the modeling target in the real three-dimensional space can be restored. The three-dimensional reconstruction of the target to be modeled can be achieved based on the first target model determined by model retrieval and the absolute position of the modeling target. Repeating the above operations for all the targets to be modeled in the three-dimensional scene can achieve the modeling of key equipment in the entire site, which will not be repeated here.

[0158] See also Fig.10 , is a schematic diagram of another embodiment of the three-dimensional reconstruction method in the embodiment of the present application;

[0159] Two-dimensional image data is collected to collect information about the three-dimensional scene. The external parameter information of the image camera is obtained through the calculation of high-precision image pose. The camera pose of the image can be calculated through this external parameter information. The three-dimensional models of key objects that may appear in the three-dimensional scene are combined into a prefabricated three-dimensional model database, which can be simply referred to as a model database, as another input for three-dimensional scene modeling.

[0160] 1) Using a deep learning network, identify the 3D model target to be built in the 3D scene captured by the image, that is, the target object in the image, hereinafter referred to as the target or modeling target or modeling object, optionally, obtain the local image region mask where the target is located (i.e., the aforementioned image mask), predict the key point pixel coordinates and normalized position field information (i.e., NOLF map) of the target, and optionally predict the category to which the target belongs; using the normalized position field map corresponding to the predicted modeling target, establish the correspondence between the 2D pixels of the modeling target on the image and the 3D points in the normalized space, randomly sample four points on the NOLF map, and establish a correspondence between four pixel coordinates and 3D coordinates, and then solve it through the PnP algorithm to obtain the relative position and posture of a modeling target in the normalized object space;

[0161] 2) Optionally, a series of relative poses can be obtained by repeatedly sampling on the NOLF graph. These relative poses are regarded as a series of hypotheses, and N relative poses that meet the conditions are extracted through hypothesis testing methods. Clustering is performed based on these N relative poses, and the relative pose corresponding to the obtained cluster center point is used as the initial pose of the modeling target in the normalized object space;

[0162] 3) Using the initial posture, render the normalized position field map of all three-dimensional models in the database under the posture perspective. Optionally, according to the category of the target obtained in step 1), determine the three-dimensional model belonging to the category in the three-dimensional model database as a candidate three-dimensional model, use these NOLF maps as information representations of the three-dimensional model database, and combine them with the NOLF map corresponding to the modeling target in step 1), so as to unify the two-dimensional image information of the modeling target and the three-dimensional model database information into the same data expression; under the initial relative posture predicted in step 2), the NOLF map corresponding to the three-dimensional model will also be closer to the NOLF map corresponding to the modeling target, thereby reducing the difficulty and complexity of retrieval;

[0163] 4) Based on another deep learning network, using image feature descriptors, extract high-dimensional features of the NOLF graph of the modeling target and high-dimensional features of the NOLF graph corresponding to the three-dimensional model in the prefabricated model database, and then map the modeling target and the three-dimensional model in the prefabricated model library into a unified feature space. Perform model retrieval by feature similarity. Optionally, use the relative position relationship between the NOLF graph of the modeling target and the NOLF graph of the three-dimensional model in the prefabricated model library in the feature space to retrieve the three-dimensional model corresponding to the modeling target from the database, wherein the closer the Euclidean distance in the feature space, the higher the similarity between the modeling target and a certain three-dimensional model;

[0164] 5) Using the corresponding relationship between the retrieved 3D model bounding box vertices and the predicted key points of the modeling target on the image, the relative position relationship between the camera of the input image and the initial position of the 3D model is established by solving the PnP problem; combined with the camera pose information of the input image, the position and pose of the 3D model corresponding to the modeling target in the real 3D space are finally restored;

[0165] 6) Traverse all modeling targets and repeat steps 2) to 5) above to achieve 3D model posture recovery of all targets in the 3D environment, thereby completing the 3D modeling of the entire scene.

[0166] Specifically, the pixel coordinates of the key points of the target object and the NOLF map of the target object under the shooting angle of the image are obtained through a convolutional neural network (CNN), and the initial pose estimation is performed based on the NOLF map. For multiple three-dimensional models in the preset model database, a series of NOLF maps are generated based on the initial pose, and the NOLF map of the target object is compared with this series of NOLF maps. Similarity detection is performed based on the NOLF map descriptor to obtain a matching three-dimensional model. The pose of the target object can be obtained based on the PnP algorithm and the camera pose of the original two-dimensional image, thereby realizing the three-dimensional reconstruction of the target object. Fig.10 In the corresponding embodiments, for the parts corresponding to the previous text, please refer to the corresponding description in the previous text, and no further details will be given here.

[0167] Optionally, the input of the convolutional neural network for predicting the category, NOLF map, key points and instance segmentation mask based on the modeling target on the two-dimensional image is a two-dimensional RGB image containing multiple modeling targets. Through the CNN network, the category, mask, NOLF map and eight key point pixel coordinate values ​​of each modeling object can be predicted. The network structure is based on the Mask-RCNN framework. In addition to the target category and mask that the framework can predict, the NOLF map and key points are additionally output. The pixel coordinates of the key points corresponding to the target are the mapping of the eight corner points of the bounding box of its corresponding three-dimensional model in space on the input image based on the accurate posture.

[0168] The following example illustrates a method for obtaining a NOLF map of a three-dimensional model. Based on the three-dimensional model in the model database, a directional normalized three-dimensional model can be obtained. Optionally, the shape and size information of the modeling target is encoded into a pre-defined normalized object space, and a normalized coordinate space is established for three-dimensional models belonging to the same category. Based on the normalized three-dimensional model, a NOLF map at a certain viewing angle can be further obtained. For example, Figure 7 As shown in the figure, NOLF is an image-like data expression that can encode the XYZ coordinates of a 3D model into a normalized 3D space, that is, the RBG channel corresponding to each pixel coordinate of the image stores the XYZ coordinate value of the 3D model in the normalized 3D space, rather than the color information, that is, each pixel coordinate value corresponds to a 3D coordinate value, thereby establishing a correspondence between the pixel coordinates of the 3D model on the image and the 3D coordinates in the normalized space, that is, a NOLF image corresponds to a 3D point cloud under the visible perspective. It should be noted that, considering the similarity of the shape and geometric features of the same type of 3D models, NOLF can be defined independently according to the model category. Optionally, for a set of 3D models of the same type, they are normalized and resized, that is, the diagonal length of the bounding box of all 3D models is 1 and their geometric center point is located at the center of NOLF. In order to ensure that the bounding box of the 3D model is the most compact bounding box, we align all 3D models, that is, the orientation of all models is consistent and the XYZ axis of the model coordinate system is parallel to the XYZ axis of the space coordinate system.

[0169] Optionally, the target category prediction branch and the instance segmentation mask prediction branch of the present application are consistent with the instance segmentation algorithm (Mask RCNN), and the key point detection branch is similar to the two-dimensional bounding box output branch of Mask RCNN, except that the four vertices of the two-dimensional bounding box recursively output by the bounding box output branch of Mask RCNN are replaced by the pixel coordinates of eight three-dimensional bounding box vertices recursively output by the key point detection branch.

[0170] There are many ways to predict NOLF images. Optionally, the NOLF image can be obtained through a deep learning network and an image mask. Compared with the general Mask RCNN network, the deep learning network adds three new branch structures, which correspond to the x, y, and z coordinates of the predicted modeling object in the normalized coordinate space. For each modeling object in the input image, the corresponding region of interests (ROI) feature vector is converted into a fixed size. The fixed-size feature vector is used as the feature data shared by the instance segmentation mask and the NOLF image prediction branch. Through the fully convolutional neural network with the same structure, the instance segmentation mask branch outputs a mask image, and the NOLF image is used as the image of the NOLF image. Figure 3 Each prediction branch outputs an image, where N is the number of categories to which the modeled object belongs, and 32 is the depth division of the NOLF image pixels in the normalized space in the three directions of X, Y, and Z. That is, the NOLF image is divided into 32 equal parts along each coordinate in the normalized space, thereby converting the NOLF image prediction problem into a deep classification problem and improving the robustness of the training.

[0171] The following describes the training method of the convolutional neural network in the embodiment of the present application:

[0172] The input sample is a single two-dimensional image with a category label, mask, corner coordinates of the bounding box, and a known NOLF map of the target to be modeled. The convolutional neural network outputs the category of the target to be modeled, the image mask, the pixel coordinates of the corner points of the bounding box, and the NOLF map.

[0173] The loss function of the convolutional neural network is defined as:

[0174] L=α1L cls +α2L mask +α3L bb8 +α4L nolf

[0175] Where L cls is the cross entropy loss function for classification, L mask Represents the segmentation mask loss function of the target, L bb8 This is similar to the bounding box recursive loss function of Mask-RCNN, but the recursive output is changed from the four keypoint coordinates of the two-dimensional bounding box to the eight keypoint coordinates of the three-dimensional bounding box. nolf It is the NOLF graph prediction loss function, which is specifically defined as:

[0176]

[0177] where p i 、p jare the three-dimensional coordinate values ​​of the true value and predicted value of the NOLF image at the same pixel coordinates, and N represents the number of pixels in the NOLF image. α1, α2, α3 and α4 are the weights of the loss function of each part.

[0178] The above describes the 3D reconstruction method provided by the present application. The following describes the 3D reconstruction device for implementing the 3D reconstruction method. Fig.11 , is a schematic diagram of an embodiment of a three-dimensional reconstruction device in an embodiment of the present application.

[0179] The three-dimensional reconstruction device provided in the embodiment of the present application includes:

[0180] An acquisition unit 1101 is used to acquire an image of a first object and a camera pose of the image;

[0181] A determining unit 1102 is configured to determine, by using a first deep learning network, a first normalized position field (NOLF) map of the first object in the image, wherein the first NOLF map indicates a normalized three-dimensional point cloud of the first object at a shooting perspective of the image;

[0182] The determining unit 1102 is configured to determine, according to the first NOLF map, a first model corresponding to the first object from a plurality of three-dimensional models in a model database;

[0183] The determining unit 1102 is further configured to determine the pose of the first object according to the first model and the camera pose of the image;

[0184] The reconstruction unit 1103 is used to three-dimensionally reconstruct the first object in the image according to the first model and the posture of the first object.

[0185] Optionally, the determination unit 1102 is also used to: determine a first relative posture of the first object based on the first NOLF map, the first relative posture being the relative posture between the posture of the first object and the camera posture of the image; determine NOLF maps of multiple three-dimensional models under the perspective corresponding to the first relative posture; the determination unit 1102 is specifically used to: determine the first model corresponding to the NOLF map that has the highest similarity to the first NOLF map from the NOLF maps corresponding to each of the multiple three-dimensional models.

[0186] The determination unit 1102 is specifically used to: determine the pixel coordinates of at least four feature points of the first object in the image through a second deep learning network, where the four object points indicated by the four feature points are not coplanar in the three-dimensional space; determine the three-dimensional coordinates of the at least four feature points from the first NOLF image; and determine the first relative posture based on the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

[0187] Optionally, the determination unit 1102 is specifically used to determine the first relative posture through a perspective N-point estimation PnP algorithm according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

[0188] Optionally, the feature points of the first object include: eight corner points of a bounding box of the first object.

[0189] Optionally, the determining unit 1102 is specifically used to: input the image into the first deep learning network to determine a first original NOLF image; and determine the first NOLF image according to the first original NOLF image and an image mask of the first object.

[0190] Optionally, the model database includes categories of the multiple three-dimensional models, wherein the first object belongs to a first category; and the determination unit 1102 is specifically used to: determine the first model from the three-dimensional models belonging to the first category according to the first NOLF map.

[0191] The above units can be used to execute the method described in any of the above embodiments. For specific implementation process and technical effects, please refer to Figures 6 to 10 The corresponding embodiments will not be described in detail here.

[0192] See also Fig.12 , is a schematic diagram of another embodiment of the three-dimensional reconstruction device in the embodiment of the present application;

[0193] The three-dimensional reconstruction device provided in this embodiment may be an electronic device such as a server or a terminal, and the specific device form is not limited in the embodiments of the present application.

[0194] The 3D reconstruction device 1200 may have relatively large differences due to different configurations or performances, and may include one or more processors 1201 and a memory 1202 , in which programs or data are stored.

[0195] The memory 1202 may be a volatile storage or a non-volatile storage. Optionally, the processor 1201 is one or more central processing units (CPUs, Central Processing Units, which may be single-core CPUs or multi-core CPUs. The processor 1201 may communicate with the memory 1202 and execute a series of instructions in the memory 1202 on the 3D reconstruction device 1200.

[0196] The 3D reconstruction device 1200 further includes one or more wired or wireless network interfaces 1203 , such as an Ethernet interface.

[0197] Optionally, although Fig.12 Not shown, the 3D reconstruction device 1200 may also include one or more power supplies; one or more input and output interfaces, which may be used to connect a display, a mouse, a keyboard, a touch screen device or a sensor device, etc. The input and output interfaces are optional components and may or may not exist, and are not limited here.

[0198] The process executed by the processor 1201 in the 3D reconstruction device 1200 in this embodiment can refer to the method process described in the above method embodiment, and will not be described in detail here.

[0199] See also Fig.13 , which is a chip hardware structure diagram provided in an embodiment of the present application.

[0200] The embodiment of the present application provides a chip system that can be used to implement the three-dimensional reconstruction method. Specifically, Figure 3 and Figure 4 The convolutional neural network based algorithm shown can be found in Fig.13 The NPU chip shown is implemented in the figure.

[0201] The neural network processor NPU 50 is mounted on the host CPU as a coprocessor and is assigned tasks by the host CPU. The core part of the NPU is the operation circuit 503, which is controlled by the controller 504 to extract matrix data from the memory and perform multiplication operations.

[0202] In some implementations, the operation circuit 503 includes multiple processing units (process engines, PEs) inside. In some implementations, the operation circuit 503 is a two-dimensional systolic array. The operation circuit 503 can also be a one-dimensional systolic array or other electronic circuits capable of performing mathematical operations such as multiplication and addition. In some implementations, the operation circuit 503 is a general-purpose matrix processor.

[0203] For example, assume there is an input matrix A, a weight matrix B, and an output matrix C. The operation circuit takes the corresponding data of matrix B from the weight memory 502 and caches it on each PE in the operation circuit. The operation circuit takes the matrix A data from the input memory 501 and performs matrix operation with matrix B, and the partial result or final result of the matrix is ​​stored in the accumulator 508.

[0204] The unified memory 506 is used to store input data and output data. The weight data is directly transferred to the weight memory 502 through the direct memory access controller 505 (DMAC). The input data is also transferred to the unified memory 506 through the DMAC.

[0205] BIU stands for Bus Interface Unit, i.e., bus interface unit 510, which is used for the interaction between AXI bus, DMAC and instruction fetch buffer 509.

[0206] The bus interface unit 510 (BIU) is used for the instruction fetch memory 509 to obtain instructions from the external memory, and is also used for the storage unit access controller 505 to obtain the original data of the input matrix A or the weight matrix B from the external memory.

[0207] DMAC is mainly used to transfer input data in the external memory DDR to the unified memory 506 or to transfer weight data to the weight memory 502 or to transfer input data to the input memory 501.

[0208] The vector calculation unit 507 may include multiple operation processing units, and further process the output of the operation circuit when necessary, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. It is mainly used for non-convolutional / FC layer network calculations in neural networks, such as Pooling, Batch Normalization, Local Response Normalization, etc.

[0209] In some implementations, the vector calculation unit can 507 store the processed output vector to the unified buffer 506. For example, the vector calculation unit 507 can apply a nonlinear function to the output of the operation circuit 503, such as a vector of accumulated values, to generate an activation value. In some implementations, the vector calculation unit 507 generates a normalized value, a merged value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 503, such as for use in a subsequent layer in a neural network.

[0210] An instruction fetch buffer 509 connected to the controller 504, for storing instructions used by the controller 504;

[0211] Unified memory 506, input memory 501, weight memory 502 and instruction fetch memory 509 are all On-Chip memories. External memories are private to the NPU hardware architecture.

[0212] in, Figure 3 and Figure 4 The operations of each layer in the convolutional neural network shown can be performed by the matrix calculation unit 212 or the vector calculation unit 507.

[0213] In the various embodiments of the present application, various examples are provided for ease of understanding, however, these examples are merely examples and are not intended to be the best implementation of the present application.

[0214] The above embodiments may be implemented in whole or in part through software, hardware, firmware or any combination thereof. When implemented by software, they may be implemented in whole or in part in the form of a computer program product.

[0215] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0216] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0217] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0218] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0219] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0220] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A three-dimensional reconstruction method, characterized in that: include: Acquire an image of a first object and a camera pose of the image; Determine, by a first deep learning network, a first normalized position field (NOLF) map of the first object in the image, wherein the first NOLF map indicates a normalized three-dimensional point cloud of the first object under a shooting perspective of the image; determining, according to the first NOLF map, a first model corresponding to the first object from a plurality of three-dimensional models in a model database; determining a pose of the first object according to the first model and a camera pose of the image; Reconstructing the first object in the image in three dimensions according to the first model and the position and posture of the first object; The method further comprises: Determine a first relative pose of the first object according to the first NOLF image, where the first relative pose is a relative pose between a pose of the first object and a camera pose of the image; Determine a NOLF image of a plurality of the three-dimensional models at a viewing angle corresponding to the first relative posture; Determining, according to the first NOLF map, a first model corresponding to the first object from a plurality of three-dimensional models in a model database comprises: The first model corresponding to the NOLF map having the highest similarity to the first NOLF map is determined from the NOLF maps corresponding to the multiple three-dimensional models.

2. The method according to claim 1, characterized in that Determining the first relative position and posture of the first object according to the first NOLF map includes: Determine, by a second deep learning network, pixel coordinates of at least four feature points of the first object in the image, where four object points indicated by the four feature points are not coplanar in a three-dimensional space; Determining the three-dimensional coordinates of the at least four feature points from the first NOLF map; The first relative position and posture is determined according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

3. The method according to claim 2, characterized in that Determining the first relative position and posture according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points comprises: The first relative position and posture is determined by a perspective N-point estimation (PnP) algorithm according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

4. The method according to claim 2 or 3, characterized in that: The feature points of the first object include: eight corner points of a bounding box of the first object.

5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Inputting the image into the first deep learning network to determine a first original NOLF map; The first NOLF map is determined according to the first original NOLF map and the image mask of the first object.

6. The method according to any one of claims 1 to 3, characterized in that The model database includes categories of the plurality of three-dimensional models, wherein the first object belongs to a first category, and the method further includes: The first model is determined from three-dimensional models belonging to the first category according to the first NOLF map.

7. A three-dimensional reconstruction device, characterized in that: include: An acquisition unit, configured to acquire an image of a first object and a camera position and pose of the image; a determining unit, configured to determine, by means of a first deep learning network, a first normalized position field (NOLF) map of the first object in the image, wherein the first NOLF map indicates a normalized three-dimensional point cloud of the first object at a shooting perspective of the image; The determining unit is configured to determine, according to the first NOLF map, a first model corresponding to the first object from a plurality of three-dimensional models in a model database; The determining unit is further used to determine the pose of the first object according to the first model and the camera pose of the image; a reconstruction unit, configured to three-dimensionally reconstruct the first object in the image according to the first model and the position and posture of the first object; The determining unit is further configured to: Determine a first relative pose of the first object according to the first NOLF image, where the first relative pose is a relative pose between a pose of the first object and a camera pose of the image; Determine a NOLF image of a plurality of the three-dimensional models at a viewing angle corresponding to the first relative posture; The determining unit is specifically used for: The first model corresponding to the NOLF map having the highest similarity to the first NOLF map is determined from the NOLF maps corresponding to the multiple three-dimensional models.

8. The device according to claim 7, characterized in that The determining unit is specifically used for: Determine, by a second deep learning network, pixel coordinates of at least four feature points of the first object in the image, where four object points indicated by the four feature points are not coplanar in a three-dimensional space; Determining the three-dimensional coordinates of the at least four feature points from the first NOLF map; The first relative position and posture is determined according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

9. The device according to claim 8, characterized in that The determining unit is specifically used for: The first relative position and posture is determined by a perspective N-point estimation (PnP) algorithm according to the pixel coordinates and the three-dimensional coordinates of the at least four feature points.

10. The device according to claim 8 or 9, characterized in that The feature points of the first object include: eight corner points of a bounding box of the first object.

11. The device according to any one of claims 7 to 9, characterized in that The determining unit is specifically used for: Inputting the image into the first deep learning network to determine a first original NOLF map; The first NOLF map is determined according to the first original NOLF map and the image mask of the first object.

12. The device according to any one of claims 7 to 9, characterized in that The model database includes categories of the plurality of three-dimensional models, wherein the first object belongs to a first category; The determining unit is specifically used for: The first model is determined from three-dimensional models belonging to the first category according to the first NOLF map.

13. A three-dimensional reconstruction device, characterized in that: It comprises a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is used to call the program instructions to execute the method as claimed in any one of claims 1 to 6.

14. A computer program product comprising instructions, characterized in that When the method is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

15. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.