Twin 3D model generation method, device, electronic device and storage medium
Through module segmentation and feature detection, recall and adjustment of 3D models, combined with tree-level relationships and similarity calculations between modules, the problem of low accuracy of existing twin models is solved, and high-precision digital twin 3D model generation is achieved.
Patent Information
- Application Number
- CN202210135449.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-14
AI Technical Summary
In existing twin model generation technology, the accuracy of the generated twin models is low, making it difficult to meet users' needs for high-precision modeling of real objects and scenes.
By obtaining the image to be processed and the 3D basic model database, module segmentation and feature detection are performed, multiple basic 3D models are recalled, and the twin 3D model most similar to the image to be processed is generated through perspective adjustment and texture rendering, and the tree-level relationship between modules is used and similarity calculation to improve the accuracy of the model.
The modeling accuracy of the twin model is significantly improved, and the generated digital twin 3D model is more similar to the image to be processed, which meets the user's demand for high-precision modeling.
Smart Images

Figure CN114663579B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of model generation technology, and in particular to a twin three-dimensional model generation method, device, electronic equipment and storage medium. Background Art
[0002] With the development of digital twin technology, users often need to model real objects, scenes, etc. to obtain twin models.
[0003] From relevant technologies, it is known that current twin models are often carried out for specific scenarios, and the accuracy of the generated twin models is low. Summary of the invention
[0004] The present invention provides a twin 3D model generation method, device, electronic device and storage medium to solve the defect of low accuracy of the twin models generated in the prior art, and realizes the generation of a digital twin 3D model with higher similarity to the image to be processed through multi-level recall, thereby greatly improving the modeling accuracy of the twin model.
[0005] The present invention provides a twin 3D model generation method, which includes: obtaining a picture to be processed and a 3D basic model database; performing module segmentation and feature detection on the picture to be processed respectively, to obtain a plurality of modules corresponding to the picture to be processed, and module image features corresponding to the modules, wherein the module image features include at least text labels, geometric features, perspective features, and image texture features; based on the module image features, recalling a plurality of basic 3D models corresponding to the module in the 3D basic model database, and performing image processing on the basic 3D models respectively, to obtain a plurality of 2D images corresponding to the plurality of basic 3D models; based on the module and the plurality of 2D images, determining a twin basic 3D model corresponding to the module, wherein the twin basic 3D model is the basic 3D model most similar to the module; based on each of the twin basic 3D models corresponding to each of the modules, obtaining a twin 3D model corresponding to the picture to be processed.
[0006] According to a twin 3D model generation method provided by the present invention, the module image features also include a tree-level relationship between modules, and the module image features corresponding to the modules are obtained by performing module segmentation and feature detection on the image to be processed respectively to obtain a plurality of modules corresponding to the image to be processed and the module image features corresponding to the modules, including: performing hierarchical module segmentation and feature detection on the image to be processed respectively to obtain a plurality of modules corresponding to the image to be processed and a tree-level relationship between modules corresponding to the modules, wherein the tree-level relationship between modules represents the positional relationship between different modules.
[0007] According to a twin 3D model generation method provided by the present invention, the recalling of multiple basic 3D models corresponding to the module in the 3D basic model database based on the module image features includes: recalling multiple basic 3D models corresponding to the module in the 3D basic model database based on the text label and the geometric features; performing image processing on the basic 3D model to obtain multiple 2D images corresponding to the multiple basic 3D models includes: performing perspective adjustment and texture rendering on the basic 3D model based on the perspective feature and the image texture feature, respectively, to obtain multiple 2D images corresponding to the multiple basic 3D models.
[0008] According to a twin three-dimensional model generation method provided by the present invention, the twin basic three-dimensional model corresponding to the module is determined based on the module and the multiple two-dimensional images, including: based on the module and the multiple two-dimensional images, respectively determining the similarity values between the module and each of the two-dimensional images through similarity calculation, and respectively determining the similarity recommendation values between the module and each of the two-dimensional images through collaborative filtering calculation; based on the similarity values and the similarity recommendation values, generating a probability distribution of candidate three-dimensional models corresponding to the module; based on the candidate three-dimensional model probability distribution, determining the twin basic three-dimensional model corresponding to the module.
[0009] According to a twin three-dimensional model generation method provided by the present invention, after obtaining multiple two-dimensional pictures corresponding to the multiple basic three-dimensional models, the method also includes: determining the association probability between the associated modules based on the inter-module co-occurrence constraint model of the conditional random field; generating the candidate three-dimensional model probability distribution corresponding to the module based on the similarity value and the similarity recommendation value, including: generating the candidate three-dimensional model probability distribution corresponding to the module based on the similarity value, the similarity recommendation value and the association probability.
[0010] According to a twin 3D model generation method provided by the present invention, the candidate 3D model probability distribution corresponding to the module is generated based on the similarity value, the similarity recommendation value and the association probability, including: determining the candidate 3D model probability distribution corresponding to the module based on the weighted average of the similarity value, the similarity recommendation value and the association probability, wherein the weight value in the weighted calculation process is a hyperparameter.
[0011] According to a twin three-dimensional model generation method provided by the present invention, the twin basic three-dimensional model corresponding to the module is determined based on the module and the multiple two-dimensional pictures, including: in response to the user selecting a target two-dimensional picture from the multiple two-dimensional pictures, determining the target basic three-dimensional model as the twin basic three-dimensional model corresponding to the module, wherein the target basic three-dimensional model is the basic three-dimensional model corresponding to the target two-dimensional picture.
[0012] According to a twin three-dimensional model generation method provided by the present invention, the twin three-dimensional model corresponding to the image to be processed is obtained based on the twin basic three-dimensional models corresponding to each of the modules, including: based on the tree-level relationship between modules and the twin basic three-dimensional models corresponding to each of the modules, the twin three-dimensional model corresponding to the image to be processed is obtained.
[0013] The present invention also provides a twin three-dimensional model generation device, which includes: an acquisition module, used to acquire a picture to be processed and a three-dimensional basic model database; a detection module, used to perform module segmentation and feature detection on the picture to be processed respectively, to obtain multiple modules corresponding to the picture to be processed, and module image features corresponding to the modules, wherein the module image features include at least text labels, geometric features, perspective features and image texture features; a recall module, used to recall multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database based on the module image features, and perform image processing on the basic three-dimensional models respectively, to obtain multiple two-dimensional images corresponding to the multiple basic three-dimensional models; a processing module, used to determine the twin basic three-dimensional model corresponding to the module based on the module and the multiple two-dimensional images, wherein the twin basic three-dimensional model is the basic three-dimensional model most similar to the module; a generation module, used to obtain a twin three-dimensional model corresponding to the picture to be processed based on each of the twin basic three-dimensional models corresponding to each of the modules.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a twin three-dimensional model generation method as described above is implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described twin three-dimensional model generation methods.
[0016] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned twin three-dimensional model generation methods.
[0017] The twin 3D model generation method, device, electronic device and storage medium provided by the present invention recall multiple basic 3D models corresponding to the module through the module image features at multiple levels, determine the twin basic 3D model corresponding to the module based on multiple 2D images corresponding to the multiple basic 3D models, and obtain the twin 3D model corresponding to the image to be processed based on the twin basic 3D model. The digital twin 3D model with a higher similarity to the image to be processed can be generated through multi-level recall, which greatly improves the modeling accuracy of the twin model. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is one of the flow charts of the twin 3D model generation method provided by the present invention;
[0020] Figure 2 This is the second flow chart of the twin 3D model generation method provided by the present invention;
[0021] Figure 3 It is a schematic diagram of a process of determining a twin basic three-dimensional model corresponding to a module based on a module and a plurality of two-dimensional images provided by the present invention;
[0022] Figure 4 This is the third flow chart of the twin 3D model generation method provided by the present invention;
[0023] Figure 5 It is a structural schematic diagram of a twin three-dimensional model generating device provided by the present invention;
[0024] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] Combine the following Figure 1-Figure 4 The present invention describes the twin three-dimensional model generation method provided by the present invention.
[0027] Figure 1 It is one of the flow charts of the twin 3D model generation method provided by the present invention.
[0028] In an exemplary embodiment of the present invention, Figure 1 As shown, the twin 3D model generation method may include steps 110 to 150, and each step will be introduced below.
[0029] In step 110, the image to be processed and the three-dimensional basic model database are obtained.
[0030] In one embodiment, the image to be processed may be a single image to be processed, and the 3D basic model database may be a collection of 3D basic models with labels, wherein the labels may be used to identify what kind of 3D basic model the 3D basic model is. During the application process, a single image to be processed and a 3D basic model database with labels may be obtained.
[0031] In step 120, module segmentation and feature detection are performed on the image to be processed to obtain multiple modules (module 1, module 2...module n) corresponding to the image to be processed, and module image features corresponding to the modules, wherein the module image features include at least text labels, geometric features, viewing angle features, and image texture features.
[0032] In one embodiment, a single processed image can be segmented and feature detected, and multiple modules corresponding to the image to be processed and module image features corresponding to the modules can be obtained. The module image features include but are not limited to text labels, geometric features, viewing angle features, image texture features, and other information identified by computer vision detection, recognition, and segmentation algorithms.
[0033] In step 130, multiple basic three-dimensional models corresponding to the module are recalled from the three-dimensional basic model database based on the module image features, and image processing is performed on the basic three-dimensional models respectively to obtain multiple two-dimensional images corresponding to the multiple basic three-dimensional models.
[0034] In one embodiment, multiple basic three-dimensional models corresponding to the module can be recalled in the three-dimensional basic model database based on multi-way recall, for example, based on multiple types of module image features of the module. Among them, the multiple types of module image features can include text labels and geometric features. In this embodiment, the comprehensiveness and accuracy of the recalled basic three-dimensional models can be ensured by multi-way recall of multiple basic three-dimensional models, laying the foundation for improving the modeling accuracy of the twin model.
[0035] Furthermore, image processing may be performed on the basic three-dimensional models respectively to obtain a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models.
[0036] In step 140, based on the module and multiple two-dimensional images, a twin basic three-dimensional model corresponding to the module is determined, wherein the twin basic three-dimensional model is a basic three-dimensional model that is most similar to the module.
[0037] In an exemplary embodiment of the present invention, a twin basic three-dimensional model corresponding to each module can be determined based on multiple two-dimensional images corresponding to the module. The twin basic three-dimensional model represents the basic three-dimensional model that is most similar to the module. Through this embodiment, the most similar basic three-dimensional model can be determined for each module in the image to be processed, thereby laying a foundation for improving the modeling accuracy of the twin model.
[0038] In an exemplary embodiment of the present invention, based on the module and the multiple two-dimensional images, determining the twin basic three-dimensional model corresponding to the module can also be achieved in the following manner:
[0039] In response to a user selecting a target two-dimensional picture from multiple two-dimensional pictures, a target basic three-dimensional model is determined to be a twin basic three-dimensional model corresponding to the module, wherein the target basic three-dimensional model is a basic three-dimensional model corresponding to the target two-dimensional picture. Through this embodiment, user interaction can be achieved, and the twin basic three-dimensional model corresponding to the module can be quickly determined through user interaction, thereby greatly improving the twin modeling efficiency.
[0040] In step 150, based on each twin basic three-dimensional model corresponding to each module, a twin three-dimensional model corresponding to the image to be processed is obtained.
[0041] In one embodiment, the basic three-dimensional models (corresponding to the twin basic three-dimensional models) that are most similar to each module can be spliced and the connection relationship can be adjusted according to the image hierarchy relationship to obtain a twin three-dimensional model that is most similar to the shape, posture and texture of the image to be processed.
[0042] The twin 3D model generation method provided by the present invention uses the module image feature multi-level recall to retrieve multiple basic 3D models corresponding to the module, and determines the twin basic 3D model corresponding to the module based on multiple 2D images corresponding to the multiple basic 3D models, and obtains the twin 3D model corresponding to the image to be processed based on the twin basic 3D model. The multi-level recall can generate a digital twin 3D model with a higher similarity to the image to be processed, which greatly improves the modeling accuracy of the twin model.
[0043] The present invention will illustrate the process of obtaining multiple modules corresponding to the image to be processed and the module image features corresponding to the modules in conjunction with the following embodiments.
[0044] In an exemplary embodiment of the present invention, the module image feature may further include a tree-level relationship between modules, wherein the tree-level relationship between modules may represent a positional relationship between different modules. In one example, module segmentation and feature detection are performed on the image to be processed respectively to obtain multiple modules corresponding to the image to be processed, and the module image features corresponding to the modules may be implemented in the following manner:
[0045] Hierarchical module segmentation and feature detection are performed on the image to be processed respectively to obtain multiple modules corresponding to the image to be processed and the tree-level relationship between the modules corresponding to the modules. In this embodiment, by obtaining the tree-level relationship between the modules corresponding to the modules, hierarchical relationship guidance can be provided for obtaining the twin three-dimensional model corresponding to the image to be processed based on the twin basic three-dimensional model corresponding to the module, thereby improving the modeling accuracy of the twin model.
[0046] In an exemplary embodiment of the present invention, based on each twin basic 3D model corresponding to each module, obtaining a twin 3D model corresponding to the image to be processed can be implemented in the following manner:
[0047] Based on the tree-level relationship between modules and the twin basic three-dimensional models corresponding to each module, a twin three-dimensional model corresponding to the image to be processed is obtained. During the application process, the twin basic three-dimensional models of each module can be spliced and the connection relationship can be adjusted according to the hierarchical relationship of the picture to obtain a twin three-dimensional model that is most similar to the shape, posture and texture of the image to be processed. In this embodiment, through the tree-level relationship between modules, hierarchical relationship guidance can be provided for obtaining a twin three-dimensional model corresponding to the image to be processed based on the twin basic three-dimensional model corresponding to the module, thereby improving the modeling accuracy of the twin model.
[0048] In order to further introduce the twin 3D model generation method provided by the present invention, it will be described in conjunction with the following embodiments.
[0049] Figure 2 This is the second flow chart of the twin 3D model generation method provided by the present invention.
[0050] In an exemplary embodiment of the present invention, the twin 3D model generation method may include steps 210 to 260, wherein steps 210 to 220 are the same or similar to steps 110 to 120, and steps 250 to 260 are the same or similar to steps 140 to 150. For its specific implementation and beneficial effects, please refer to the above description. Steps 230 and 240 will be introduced below.
[0051] In step 230 , a plurality of basic 3D models corresponding to the modules are retrieved from a 3D basic model database based on the text labels and the geometric features.
[0052] In one embodiment, multiple basic three-dimensional models corresponding to each module can be recalled from the three-dimensional basic model database based on the text labels and geometric features of each module in the image to be processed. It is understandable that one module can correspond to multiple basic three-dimensional models. During the application process, a basic three-dimensional model that is most similar to the module can be selected from multiple basic three-dimensional models. Among them, the recall model can be a deep recall model based on a deep neural network (such as YouTubeDNN, DSSM, etc.). In this embodiment, the comprehensiveness and accuracy of the recalled basic three-dimensional models can be ensured by multi-way recall of multiple basic three-dimensional models, laying the foundation for improving the modeling accuracy of the twin model.
[0053] In step 240, based on the viewing angle feature and the image texture feature, the viewing angle adjustment and texture rendering are performed on the basic three-dimensional model respectively, so as to obtain a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models.
[0054] In one embodiment, in order to be able to more simply, clearly and accurately select a basic three-dimensional model (corresponding to a twin basic three-dimensional model) that is most similar to a module from multiple basic three-dimensional models, the basic three-dimensional model can be adjusted in perspective and rendered in texture based on perspective features and image texture features, respectively, to obtain a basic three-dimensional model with the same perspective or texture as the image to be processed, and obtain a corresponding two-dimensional image based on the adjusted basic three-dimensional model. It can be understood that since the adjusted basic three-dimensional model has the same perspective or texture as the image to be processed, the two-dimensional image also has the same perspective or texture as the image to be processed. It can be understood that based on the two-dimensional image, it can be more accurately determined which two-dimensional image is most similar to the module of the image to be processed.
[0055] The following will describe the process of determining a twin basic three-dimensional model corresponding to a module based on the module and multiple two-dimensional images in combination with the following embodiments.
[0056] Figure 3 It is a flow chart of determining a twin basic three-dimensional model corresponding to a module based on the module and multiple two-dimensional images provided by the present invention.
[0057] In an exemplary embodiment of the present invention, Figure 3 As shown, based on the module and multiple two-dimensional images, determining the twin basic three-dimensional model corresponding to the module may include steps 310 to 330, and each step will be introduced below.
[0058] In step 310, based on the module and the multiple two-dimensional images, similarity values between the module and each two-dimensional image are determined by similarity calculation, and similarity recommendation values between the module and each two-dimensional image are determined by collaborative filtering calculation.
[0059] In step 320 , a probability distribution of candidate three-dimensional models corresponding to the modules is generated based on the similarity values and the similarity recommendation values.
[0060] In one embodiment, similarity values between the module and each corresponding two-dimensional image can be calculated by similarity calculation, and similarity recommendation values between the module and each corresponding two-dimensional image can be calculated by collaborative filtering calculation. In the application process, the similarity between the module and each two-dimensional image can be obtained by similarity value and similarity recommendation value, and the similarity can be sorted to obtain the probability distribution of candidate three-dimensional models corresponding to the module. In one example, in the process of sorting, a user feature-based recommendation algorithm can be used, such as FM recommendation algorithm, GBDT+LR recommendation algorithm, Wide&Deep recommendation algorithm and DeepFM recommendation algorithm.
[0061] In step 330 , based on the probability distribution of the candidate three-dimensional models, a twin basic three-dimensional model corresponding to the module is determined.
[0062] In one embodiment, the twin basic 3D model corresponding to the module can be determined based on the probability distribution of the candidate 3D models. Furthermore, the twin 3D model corresponding to the image to be processed can be obtained by determining the twin basic 3D model of each module.
[0063] In order to further introduce the twin 3D model generation method provided by the present invention, it will be described in conjunction with the following embodiments.
[0064] Figure 4 This is the third flow chart of the twin 3D model generation method provided by the present invention.
[0065] In an exemplary embodiment of the present invention, Figure 4 As shown, the twin 3D model generation method may include steps 410 to 490, wherein steps 410 to 440 are the same or similar to steps 210 to 240, step 460 is the same or similar to step 310, step 480 is the same or similar to step 330, and step 490 is the same or similar to step 260. For its specific implementation and beneficial effects, please refer to the previous description. Step 450 and step 470 will be introduced respectively below.
[0066] In step 450, the association probability between associated modules is determined based on the inter-module co-occurrence constraint model of the conditional random field.
[0067] In step 470 , a probability distribution of candidate three-dimensional models corresponding to the modules is generated based on the similarity values, the similarity recommendation values, and the association probabilities.
[0068] In one embodiment, the influence of the relationship between modules on the twin basic three-dimensional model can be considered. In the application process, the association probability between associated modules can be determined based on the inter-module co-occurrence constraint model of the conditional random field. Among them, the associated module refers to a module with an associated connection relationship, an associated position, or an associated logical relationship. In one example, the association probability between associated modules can also be determined by other matching probability graph models, such as the Markov random field probability graph model and the Bayesian network probability graph model.
[0069] Furthermore, the similarity between the module and each two-dimensional image can be obtained based on the similarity value between the module and each two-dimensional image, the similarity recommendation value between the module and each two-dimensional image, and the association probability between the associated modules. And the similarity is sorted to obtain the probability distribution of candidate three-dimensional models corresponding to the module. In one example, in the process of sorting, a user feature recommendation algorithm can be used, such as the FM recommendation algorithm, the GBDT+LR recommendation algorithm, the Wide&Deep recommendation algorithm, and the DeepFM recommendation algorithm. In this embodiment, the probability distribution of candidate three-dimensional models corresponding to the module is determined based on the association probability between the associated modules, and obviously unreasonable three-dimensional models can be eliminated, thereby reducing the amount of calculation.
[0070] In an exemplary embodiment of the present invention, based on the similarity value, the similarity recommendation value and the association probability, generating the probability distribution of the candidate three-dimensional model corresponding to the module can be achieved in the following manner:
[0071] Based on the weighted average of the similarity value, the similarity recommendation value and the associated probability, the probability distribution of the candidate three-dimensional model corresponding to the module is determined, wherein the weight value in the weighted calculation process is a hyperparameter. In this embodiment, the weight value is determined as a hyperparameter, and historical data can be fully utilized to increase the rationality of the probability distribution of the candidate three-dimensional model corresponding to the module.
[0072] In order to further introduce the twin 3D model generation method provided by the present invention, it will be described in conjunction with the following embodiments.
[0073] In one embodiment, a single image to be processed can be parsed by an image parsing module to obtain multiple modules (module 1, module 2 ... module n) corresponding to the image to be processed, and module image features corresponding to the modules, wherein the module image features may include but are not limited to text labels, geometric features, viewing angle features, and image texture features. Further, based on a parameterized basic three-dimensional model database (corresponding to a three-dimensional basic model database), a candidate set of text labels and geometric features corresponding to each module (module 1, module 2 ... module n) can be recalled in two ways to obtain multiple basic three-dimensional models corresponding to each module (module 1, module 2 ... module n).
[0074] In order to be able to more simply, clearly and accurately select a basic three-dimensional model (corresponding to the twin basic three-dimensional model) that is most similar to the module from multiple basic three-dimensional models, the basic three-dimensional model can be adjusted in perspective and rendered in texture based on the perspective features and image texture features, so as to obtain a basic three-dimensional model with the same perspective or texture as the image to be processed, and obtain the corresponding two-dimensional image based on the adjusted basic three-dimensional model.
[0075] During the application process, the candidate building block probability distribution (corresponding to the candidate 3D model probability distribution) of each module (module 1, module 2...module n) can be obtained based on the similarity between each module and its corresponding 2D images, as well as the recommended ranking of collaborative filtering between each module and its corresponding 2D images. During the application process, the twin basic 3D model corresponding to the module can be determined based on the candidate 3D model probability distribution. Furthermore, the twin 3D model corresponding to the image to be processed is obtained by determining the twin basic 3D model of each module.
[0076] In another example, the influence of the relationship between modules on the twin basic 3D model can also be considered. In the application process, the association probability between the associated modules can be determined based on the inter-module co-occurrence constraint model of the conditional random field. And through the association probability between the associated modules and the probability distribution of the candidate building blocks, the candidate twin 3D model (corresponding to the twin 3D model) of the image to be processed composed of each module is determined.
[0077] In another example, in response to the user selecting a target two-dimensional picture from multiple two-dimensional pictures, the target basic three-dimensional model can be determined as a twin basic three-dimensional model corresponding to the module, wherein the target basic three-dimensional model is a basic three-dimensional model corresponding to the target two-dimensional picture. Through this embodiment, user interaction can be achieved, and the twin basic three-dimensional model corresponding to the module can be quickly determined through user interaction, thereby greatly improving the twin modeling efficiency.
[0078] According to the above description, the twin 3D model generation method provided by the present invention uses multi-level recall of multiple basic 3D models corresponding to the module through module image features, and determines the twin basic 3D model corresponding to the module based on multiple 2D images corresponding to the multiple basic 3D models, and obtains the twin 3D model corresponding to the image to be processed based on the twin basic 3D model. It is possible to generate a digital twin 3D model with a higher similarity to the image to be processed through multi-level recall, which greatly improves the modeling accuracy of the twin model.
[0079] Based on the same concept, the present invention also provides a twin three-dimensional model generating device.
[0080] The twin three-dimensional model generation device provided by the present invention is described below. The twin three-dimensional model generation device described below and the twin three-dimensional model generation method described above can be referenced to each other.
[0081] Figure 5 It is a structural schematic diagram of the twin three-dimensional model generation device provided by the present invention.
[0082] In an exemplary embodiment of the present invention, Figure 5 As shown, the twin three-dimensional model generation device may include an acquisition module 510, a detection module 520, a recall module 530, a processing module 540 and a generation module 550, and each module will be introduced below.
[0083] The acquisition module 510 may be configured to acquire the image to be processed and the three-dimensional basic model database.
[0084] The detection module 520 can be configured to perform module segmentation and feature detection on the image to be processed, respectively, to obtain multiple modules corresponding to the image to be processed, and module image features corresponding to the modules, wherein the module image features include at least text labels, geometric features, perspective features, and image texture features.
[0085] The recall module 530 can be configured to recall multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database based on the module image features, and perform image processing on the basic three-dimensional models respectively to obtain multiple two-dimensional images corresponding to the multiple basic three-dimensional models.
[0086] The processing module 540 can be configured to determine a twin basic three-dimensional model corresponding to the module based on the module and multiple two-dimensional images, wherein the twin basic three-dimensional model is a basic three-dimensional model that is most similar to the module.
[0087] The generation module 550 can be configured to obtain a twin three-dimensional model corresponding to the image to be processed based on each twin basic three-dimensional model corresponding to each module.
[0088] In an exemplary embodiment of the present invention, the module image features may also include tree-level relationships between modules. The detection module 520 may perform module segmentation and feature detection on the image to be processed, respectively, to obtain multiple modules corresponding to the image to be processed, and module image features corresponding to the modules in the following manners: perform hierarchical module segmentation and feature detection on the image to be processed, respectively, to obtain multiple modules corresponding to the image to be processed, and tree-level relationships between modules corresponding to the modules, wherein the tree-level relationships between modules represent the positional relationship between different modules.
[0089] In an exemplary embodiment of the present invention, the recall module 530 can recall multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database based on the module image features in the following manner: based on text labels and geometric features, recall multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database; the recall module 530 can also use the following method to perform image processing on the basic three-dimensional model to obtain multiple two-dimensional pictures corresponding to the multiple basic three-dimensional models: based on perspective features and image texture features, perform perspective adjustment and texture rendering on the basic three-dimensional model respectively, to obtain multiple two-dimensional pictures corresponding to the multiple basic three-dimensional models.
[0090] In an exemplary embodiment of the present invention, the processing module 540 can determine the twin basic three-dimensional model corresponding to the module based on the module and multiple two-dimensional images in the following manner: based on the module and multiple two-dimensional images, respectively determine the similarity value between the module and each two-dimensional image through similarity calculation, and respectively determine the similarity recommendation value between the module and each two-dimensional image through collaborative filtering calculation; based on the similarity value and the similarity recommendation value, generate a probability distribution of candidate three-dimensional models corresponding to the module; based on the candidate three-dimensional model probability distribution, determine the twin basic three-dimensional model corresponding to the module.
[0091] In an exemplary embodiment of the present invention, the processing module 540 can also be configured to determine the association probability between associated modules based on the inter-module co-occurrence constraint model of the conditional random field; the processing module 540 can also generate a candidate three-dimensional model probability distribution corresponding to the module based on the similarity value and the similarity recommendation value in the following manner: based on the similarity value, the similarity recommendation value and the association probability, generate a candidate three-dimensional model probability distribution corresponding to the module.
[0092] In an exemplary embodiment of the present invention, the processing module 540 can also generate a candidate three-dimensional model probability distribution corresponding to the module based on similarity values, similarity recommendation values and associated probabilities in the following manner: based on the weighted average of similarity values, similarity recommendation values and associated probabilities, determine the candidate three-dimensional model probability distribution corresponding to the module, wherein the weight value in the weighted calculation process is a hyperparameter.
[0093] In an exemplary embodiment of the present invention, the processing module 540 can determine the twin basic three-dimensional model corresponding to the module based on the module and multiple two-dimensional pictures in the following manner: in response to a user selecting a target two-dimensional picture from multiple two-dimensional pictures, determine the target basic three-dimensional model as the twin basic three-dimensional model corresponding to the module, wherein the target basic three-dimensional model is the basic three-dimensional model corresponding to the target two-dimensional picture.
[0094] In an exemplary embodiment of the present invention, the generation module 550 can obtain a twin three-dimensional model corresponding to the image to be processed based on the twin basic three-dimensional models corresponding to each module in the following manner: based on the tree-level relationship between modules and the twin basic three-dimensional models corresponding to each module, obtain a twin three-dimensional model corresponding to the image to be processed.
[0095] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the twin three-dimensional model generation method, which includes: obtaining a picture to be processed and a three-dimensional basic model database; performing module segmentation and feature detection on the picture to be processed respectively to obtain multiple modules corresponding to the picture to be processed, and module image features corresponding to the modules, wherein the module image features include at least text labels, geometric features, perspective features and image texture features; based on the module image features, recalling multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database, and performing image processing on the basic three-dimensional models respectively to obtain multiple two-dimensional images corresponding to the multiple basic three-dimensional models; based on the module and the multiple two-dimensional images, determining the twin basic three-dimensional model corresponding to the module, wherein the twin basic three-dimensional model is the basic three-dimensional model that is most similar to the module; based on each of the twin basic three-dimensional models corresponding to each of the modules, obtaining a twin three-dimensional model corresponding to the picture to be processed.
[0096] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the 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 for 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 invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0097] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the twin three-dimensional model generation method provided by the above methods, which method includes: obtaining a picture to be processed and a three-dimensional basic model database; performing module segmentation and feature detection on the picture to be processed respectively to obtain multiple modules corresponding to the picture to be processed, and module image features corresponding to the modules, wherein the module image features include at least text labels, geometric features, perspective features and image texture features; based on the module image features, recalling multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database, and performing image processing on the basic three-dimensional models respectively to obtain multiple two-dimensional images corresponding to the multiple basic three-dimensional models; based on the module and the multiple two-dimensional images, determining the twin basic three-dimensional model corresponding to the module, wherein the twin basic three-dimensional model is the basic three-dimensional model most similar to the module; based on each of the twin basic three-dimensional models corresponding to each of the modules, obtaining a twin three-dimensional model corresponding to the picture to be processed.
[0098] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the twin three-dimensional model generation method provided by the above-mentioned methods, the method comprising: obtaining a picture to be processed and a three-dimensional basic model database; performing module segmentation and feature detection on the picture to be processed respectively, to obtain a plurality of modules corresponding to the picture to be processed, and module image features corresponding to the modules, wherein the module image features include at least text labels, geometric features, perspective features and image texture features; based on the module image features, recalling a plurality of basic three-dimensional models corresponding to the module in the three-dimensional basic model database, and performing image processing on the basic three-dimensional models respectively, to obtain a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models; based on the module and the plurality of two-dimensional images, determining the twin basic three-dimensional model corresponding to the module, wherein the twin basic three-dimensional model is the basic three-dimensional model most similar to the module; based on each of the twin basic three-dimensional models corresponding to each of the modules, obtaining a twin three-dimensional model corresponding to the picture to be processed.
[0099] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0101] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the 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 invention.
Claims
1. A twin 3D model generation method, It is characterized in that The method comprises: Obtain the image to be processed and the three-dimensional basic model database; The image to be processed is respectively subjected to module segmentation and feature detection to obtain a plurality of modules corresponding to the image to be processed, and module image features corresponding to the modules, wherein the module image features at least include text labels, geometric features, viewing angle features, and image texture features, wherein the module image features also include tree-level relationships between modules, and the image to be processed is respectively subjected to module segmentation and feature detection to obtain a plurality of modules corresponding to the image to be processed, and module image features corresponding to the modules, including: Performing hierarchical module segmentation and feature detection on the image to be processed respectively, to obtain a plurality of modules corresponding to the image to be processed, and a tree-level relationship between modules corresponding to the modules, wherein the tree-level relationship between modules represents a positional relationship between different modules; Recalling a plurality of basic three-dimensional models corresponding to the module in the three-dimensional basic model database based on the module picture feature, and performing image processing on the basic three-dimensional models respectively to obtain a plurality of two-dimensional pictures corresponding to the plurality of basic three-dimensional models, wherein the recalling a plurality of basic three-dimensional models corresponding to the module in the three-dimensional basic model database based on the module picture feature comprises: Based on the text label and the geometric feature, recalling a plurality of basic three-dimensional models corresponding to the module in the three-dimensional basic model database; The performing image processing on the basic three-dimensional model to obtain a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models includes: Based on the viewing angle feature and the image texture feature, respectively adjusting the viewing angle and rendering the texture of the basic three-dimensional model to obtain a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models; Based on the module and the plurality of the two-dimensional images, a twin basic three-dimensional model corresponding to the module is determined, wherein the twin basic three-dimensional model is the basic three-dimensional model most similar to the module, wherein the determining the twin basic three-dimensional model corresponding to the module based on the module and the plurality of the two-dimensional images includes: Based on the module and the plurality of two-dimensional images, respectively determining similarity values between the module and each of the two-dimensional images by similarity calculation, and respectively determining similarity recommendation values between the module and each of the two-dimensional images by collaborative filtering calculation; Based on the similarity value and the similarity recommendation value, generating a probability distribution of candidate three-dimensional models corresponding to the module; Based on the probability distribution of the candidate three-dimensional models, determining a twin basic three-dimensional model corresponding to the module; Based on the twin basic three-dimensional models corresponding to the modules, a twin three-dimensional model corresponding to the image to be processed is obtained.
2. The twin 3D model generation method according to claim 1, It is characterized in that After obtaining a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models, the method further comprises: Determine the association probability between the modules based on the inter-module co-occurrence constraint model of the conditional random field; The generating, based on the similarity value and the similarity recommendation value, a probability distribution of candidate three-dimensional models corresponding to the module comprises: Based on the similarity value, the similarity recommendation value and the association probability, a probability distribution of candidate three-dimensional models corresponding to the module is generated.
3. The twin 3D model generation method according to claim 2, It is characterized in that The generating, based on the similarity value, the similarity recommendation value and the association probability, a probability distribution of candidate three-dimensional models corresponding to the module comprises: Based on the similarity value, the similarity recommendation value and the weighted average of the association probability, the probability distribution of the candidate three-dimensional model corresponding to the module is determined, wherein the weight value in the weighted calculation process is a hyperparameter.
4. The twin 3D model generation method according to claim 1, It is characterized in that The step of determining a twin basic three-dimensional model corresponding to the module based on the module and the plurality of two-dimensional images includes: In response to a user selecting a target two-dimensional picture from among the multiple two-dimensional pictures, a target basic three-dimensional model is determined to be a twin basic three-dimensional model corresponding to the module, wherein the target basic three-dimensional model is a basic three-dimensional model corresponding to the target two-dimensional picture.
5. The twin 3D model generation method according to claim 1, It is characterized in that The step of obtaining a twin 3D model corresponding to the image to be processed based on each of the twin basic 3D models corresponding to each of the modules includes: Based on the tree-level relationship between modules and the twin basic three-dimensional models corresponding to each module, a twin three-dimensional model corresponding to the image to be processed is obtained.
6. A twin 3D model generation device, It is characterized in that The device comprises: An acquisition module is used to acquire the image to be processed and the three-dimensional basic model database; A detection module is used to perform module segmentation and feature detection on the image to be processed respectively, to obtain a plurality of modules corresponding to the image to be processed, and module image features corresponding to the modules, wherein the module image features at least include text labels, geometric features, viewing angle features, and image texture features, wherein the module image features also include tree-level relationships between modules, and the module segmentation and feature detection are performed on the image to be processed respectively to obtain a plurality of modules corresponding to the image to be processed, and module image features corresponding to the modules, including: Performing hierarchical module segmentation and feature detection on the image to be processed respectively, to obtain a plurality of modules corresponding to the image to be processed, and a tree-level relationship between modules corresponding to the modules, wherein the tree-level relationship between modules represents a positional relationship between different modules; A recall module is used to recall multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database based on the module image feature, and perform image processing on the basic three-dimensional models respectively to obtain multiple two-dimensional images corresponding to the multiple basic three-dimensional models, wherein the recalling of multiple basic three-dimensional models corresponding to the module in the three-dimensional basic model database based on the module image feature includes: Based on the text label and the geometric feature, recalling a plurality of basic three-dimensional models corresponding to the module in the three-dimensional basic model database; The performing image processing on the basic three-dimensional model to obtain a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models includes: Based on the viewing angle feature and the image texture feature, respectively adjusting the viewing angle and rendering the texture of the basic three-dimensional model to obtain a plurality of two-dimensional images corresponding to the plurality of basic three-dimensional models; A processing module, configured to determine a twin basic three-dimensional model corresponding to the module based on the module and the plurality of two-dimensional images, wherein the twin basic three-dimensional model is the basic three-dimensional model most similar to the module, wherein the determining the twin basic three-dimensional model corresponding to the module based on the module and the plurality of two-dimensional images comprises: Based on the module and the plurality of two-dimensional images, respectively determining similarity values between the module and each of the two-dimensional images by similarity calculation, and respectively determining similarity recommendation values between the module and each of the two-dimensional images by collaborative filtering calculation; Based on the similarity value and the similarity recommendation value, generating a probability distribution of candidate three-dimensional models corresponding to the module; Based on the probability distribution of the candidate three-dimensional models, determining a twin basic three-dimensional model corresponding to the module; A generation module is used to obtain a twin three-dimensional model corresponding to the image to be processed based on the twin basic three-dimensional models corresponding to each of the modules.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the twin three-dimensional model generation method as described in any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the twin three-dimensional model generation method as described in any one of claims 1 to 5 is implemented.
9. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the twin three-dimensional model generation method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Three dimensional object real time detection method and system
CN108509848A
3D object modeling method based on depth sensor
CN109087388A
