A method for building a real-time training digital twin model
By using inertial measurement units and Visual Inertial Odometry technology to build a 3D mesh model in real time on mobile devices, and combining texture mapping and graph cutting algorithm optimization, it solves the problems of time-consuming and insufficient accuracy of existing 3D modeling technology, and achieves rapid , accurate three-dimensional modeling promotes the marketization and industrialization process of virtual reality and augmented reality technology.
Patent Information
- Application Number
- CN202010174216.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-03-13
AI Technical Summary
Existing 3D modeling technology is time-consuming and insufficient in accuracy when building complex and dynamic 3D models, which limits the marketization and industrialization process of virtual reality and augmented reality technology.
Collect attitude information through the built-in inertial measurement unit of a general-purpose mobile device, use Visual Inertial Odometry technology to recover three-dimensional features in real time, establish a three-dimensional grid model, and optimize texture mapping and graph cutting algorithms through a differentiable renderer to achieve real-time construction of training figures Twin model.
It achieves fast, accurate and dynamic 3D modeling, lowers the modeling threshold, is suitable for many fields, and improves productivity.
Smart Images

Figure CN111369670B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional modeling, and in particular to a method for constructing a training digital twin model in real time. Background Art
[0002] With the continuous development of computer hardware and software technology, and the increasing popularity of augmented reality, virtual reality, and mixed reality, the demand for 3D modeling is increasing exponentially, which has put forward new requirements for the speed, complexity, and realism of 3D models. Although traditional 3D modeling tools are improving day by day, building relatively complex and dynamic 3D models is still a very time-consuming professional task.
[0003] The existing mainstream 3D modeling is mainly achieved by manual modeling and image point cloud modeling.
[0004] 1) Manual modeling requires a large number of personnel with professional modeling qualities to create, which takes a long time. The degree of simulation varies depending on the ability of the practitioners, and the creation cycle is long.
[0005] 2) The image point cloud modeling method first uses professional image acquisition equipment to collect images, and then uses computers with super computing power and professional software to build models. Due to limitations of professional equipment, computing power, and insufficient success accuracy, these modeling technologies have not been effectively promoted and popularized.
[0006] With the continuous development of virtual reality and augmented reality technologies, and the three-dimensional models being the core components of these products, the fast, accurate, real-time and dynamic modeling technology will surely promote the marketization and industrialization of virtual reality and augmented reality, and serve all walks of life. Summary of the invention
[0007] The purpose of the present invention is to provide a method for constructing a training digital twin model in real time, which has the advantages of universality, ease of use and accuracy.
[0008] The objective of the present invention is achieved through the following technical solutions:
[0009] A method for building a training digital twin model in real time, comprising:
[0010] Step 1: The inertial measurement unit built into the general mobile device is used to collect the posture information of the target object when shooting, so as to estimate the three-dimensional features of the target object, and the visual inertial odometry technology is used to restore the three-dimensional features of the target object in real time, so as to obtain the actual three-dimensional size of the target object, and then establish the corresponding three-dimensional mesh model;
[0011] Step 2: Rendering the 3D mesh model with texture mapping by using a differentiable renderer to obtain a 3D mesh model with texture information;
[0012] Step 3: Using the geometry and texture information of the 3D mesh model and the region of interest information provided by the user interaction, a cost function in the graph cut algorithm is constructed to identify all the facets in the 3D mesh model to identify the facets containing impurities and remove them from the 3D mesh model to obtain an optimized 3D mesh model.
[0013] Step 4. In practical training, use a general mobile device to capture the target object in real time, and use consistency verification to determine whether the missing part of the target object is detected. If so, the missing part is modeled using steps 1 to 3 and mapped to the optimized three-dimensional mesh model obtained previously.
[0014] It can be seen from the technical solution provided by the present invention that real-time dynamic modeling of the target object can be performed through a universal mobile device, thereby lowering the threshold for three-dimensional modeling. It can be applied to multiple fields such as manufacturing, education, culture, health, and entertainment, and promote productivity improvement in these fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0016] Figure 1 A flowchart of a method for real-time construction of a training digital twin model provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 protection scope of the present invention.
[0018] The embodiment of the present invention provides a method for constructing a training digital twin model in real time, such as Figure 1 As shown, the method mainly includes:
[0019] Step 1: The inertial measurement unit (IMU) built into a general mobile device is used to collect the posture information of the target object when shooting, so as to estimate the three-dimensional features of the target object, and use the Visual Inertial Odometry technology to restore the three-dimensional features of the target object in real time, obtain the actual three-dimensional size of the target object, and then establish the corresponding three-dimensional mesh model.
[0020] In the embodiment of the present invention, the universal mobile device is a smart phone or a tablet computer.
[0021] In an embodiment of the present invention, the inertial measurement unit includes an accelerometer and a gyroscope.
[0022] In the embodiment of the present invention, the preferred implementation method of estimating the three-dimensional features of the target object is as follows:
[0023] Step 11: Calculate the position and rotation angle of each continuous image frame according to the posture information through a general mobile device (specifically, it can be a mobile computing program), extract high-dimensional feature points of the continuous image frames, and calculate the three-dimensional coordinates of the corresponding feature points of the target object, and asynchronously construct a feature point database of the continuous image frames.
[0024] Step 12: Determine whether the total number of feature points extracted from the target object meets the requirement. If so, proceed to step 15; if not, proceed to step 13.
[0025] In the embodiment of the present invention, the number of feature points is related to the type of feature points, and the total number may vary depending on the target object. The total number of feature points can be pre-calibrated for different target objects (the specific value is set according to the situation), so in step 12, the calibrated total number value can be directly compared with the value of the number of feature points extracted in step 11 to determine whether the requirement is met.
[0026] In the embodiment of the present invention, when shooting the target object, two methods, video shooting and photo shooting, can be used. The video shooting method collects continuous image frames, and the photo shooting method collects discrete image frames. The key frames are captured in the video after shooting. Because there is a difference in resolution between the continuous image frames and discrete image frames shot by the same mobile device, the resolution of the discrete image frames is higher than that of the continuous image frames. When the key frame resolution of the continuous image frame is too low to extract enough feature points, the discrete image frames are additionally shot to compensate for the extracted feature points.
[0027] For each image frame captured by video and photo shooting, the inertial measurement unit will record the corresponding attitude information.
[0028] Step 13, calculate the position and rotation angle of the discrete image frame when shooting according to the posture information through a post-processing calculation program (which can be set in a computer); at the same time, extract the high-dimensional feature points of the discrete image frame, and calculate the three-dimensional coordinates of the corresponding feature points of the target object to construct a feature point database of the discrete image frame.
[0029] Step 14: Match and merge the feature point database of the discrete image frames with the feature point database of the continuous image frames to obtain a merged feature point database.
[0030] Step 15: Using Visual Inertial Odometry technology and combining it with the obtained feature point database (i.e., the result of step 12 or step 14), the three-dimensional features of the target object are restored to obtain the actual three-dimensional size of the target object, and then a corresponding three-dimensional mesh model is established.
[0031] Step 2: Render the three-dimensional mesh model with texture mapping using a differentiable renderer to obtain a three-dimensional mesh model with texture information.
[0032] In the embodiment of the present invention, a more realistic three-dimensional model can be obtained by performing texture mapping rendering on the three-dimensional mesh model.
[0033] Step 3: Using the geometry and texture information of the 3D mesh model and the region of interest information provided by user interaction, a cost function in the Graph Cut algorithm is constructed to identify all facets in the 3D mesh model to identify facets containing impurities and remove them from the 3D mesh model to obtain an optimized 3D mesh model.
[0034] In the embodiment of the present invention, the specific implementation process of constructing the cost function in the Graph Cut algorithm can be referred to the prior art and will not be described in detail.
[0035] In the embodiment of the present invention, all facets are judged by using a cost function to distinguish which facets meet the requirements and which facets contain impurities, thereby removing the facets containing impurities.
[0036] In this step, the geometric information of the three-dimensional mesh model comes from the actual three-dimensional size of the target object obtained in step 1, and the texture information is the texture information generated when texture mapping is performed in step 2.
[0037] Step 4. In practical training, use a general mobile device to capture the target object in real time, and use consistency verification to determine whether the missing part of the target object is detected. If so, the missing part is modeled using steps 1 to 3 and mapped to the optimized three-dimensional mesh model obtained previously.
[0038] In the embodiment of the present invention, the training work may include various target objects, such as mechanical objects, biological objects (eg, human faces), parts, etc.
[0039] In this step, the universal mobile device uses the acquired feature point database to identify in real time whether other continuous image frames taken contain the target object. If so, the position of the target object in the image frame is estimated, and the corresponding feature points are extracted to detect whether the target object has changed with the optimized three-dimensional mesh model. When a low-resolution continuous image frame containing the missing part of the target object in the optimized three-dimensional mesh model is taken, high-resolution discrete image frames are automatically taken by photo shooting according to the estimated position of the target object in the image frame, and the three-dimensional mesh model of the missing part of the target object is constructed using the high-resolution discrete image frames. The specific implementation process of this part of the work can be referred to steps 13 and 15 in the aforementioned step 1; that is, the feature points of the missing part are extracted from the discrete image frames, and the three-dimensional coordinates of the corresponding feature points are calculated to construct a feature point database of the discrete image frames, and the three-dimensional mesh model of the missing part is constructed by Visual Inertial Odometry technology.
[0040] As mentioned before, the resolution of discrete image frames is higher than that of continuous image frames. Therefore, they can be called low-resolution continuous image frames and high-resolution discrete image frames. The high and low resolutions here mainly reflect the relative high and low resolutions of the image frames under the two shooting methods, and do not focus on the specific numerical value of the resolution.
[0041] After obtaining the 3D mesh model of the missing part, it is rendered and optimized through steps 2 and 3 and mapped to the optimized 3D mesh model obtained previously.
[0042] In actual applications, the above method can provide digital twin real-time dynamic modeling results for the identity information recognition module and the virtual simulation teaching module, realize dual-network interconnection and release through the service terminal module and use 5G technology, and finally realize real-time data update.
[0043] In a specific application, if the target object is a three-dimensional model of a person's face, the identity information recognition module can perform matching based on feature points of the three-dimensional model of the person's face to achieve identity recognition.
[0044] The present invention implements the above-mentioned scheme in real time, and can utilize common general-purpose mobile devices such as smart phones and tablets to perform real-time dynamic modeling of the target object, thereby lowering the threshold for three-dimensional modeling; at the same time, through a variety of image algorithms, it can complete real portrayal and description modeling, thereby improving modeling efficiency and accuracy.
[0045] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0046] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for building a real-time training digital twin model, It is characterized in that include: Step 1: The inertial measurement unit built into the general mobile device is used to collect the posture information of the target object when shooting, so as to estimate the three-dimensional features of the target object, and the visual inertial odometry technology is used to restore the three-dimensional features of the target object in real time, so as to obtain the actual three-dimensional size of the target object, and then establish the corresponding three-dimensional mesh model; Step 2: Rendering the 3D mesh model with texture mapping by using a differentiable renderer to obtain a 3D mesh model with texture information; Step 3: Using the geometry and texture information of the 3D mesh model and the region of interest information provided by the user interaction, a cost function in the graph cut algorithm is constructed to identify all the facets in the 3D mesh model to identify the facets containing impurities and remove them from the 3D mesh model to obtain an optimized 3D mesh model. Step 4: In the practical training, the target object is captured in real time by a general mobile device, and consistency verification is performed to determine whether the missing part of the target object is detected. If so, the missing part is modeled using steps 1 to 3 and mapped to the optimized three-dimensional mesh model obtained previously. Wherein, the step of estimating the three-dimensional features of the target object comprises: Step 11, using a universal mobile device; calculating the position and rotation angle of each continuous image frame when it is shot according to the posture information, extracting feature points of the continuous image frames, and calculating the three-dimensional coordinates of the corresponding feature points of the target object, and asynchronously constructing a feature point database of the continuous image frames; Step 12: determine whether the total number of feature points extracted from the target object meets the requirement. If yes, proceed to step 15; if not, proceed to step 13; Step 13: Calculate the position and rotation angle of the discrete image frame when it is shot according to the posture information through a post-processing calculation program, extract high-dimensional feature points of the discrete image frame, and calculate the three-dimensional coordinates of the corresponding feature points of the target object to build a feature point database of the discrete image frame; Step 14: Match and merge the feature point database of the discrete image frame with the feature point database of the continuous image frame to obtain a merged feature point database; Step 15: Using Visual Inertial Odometry technology and the acquired feature point database, the three-dimensional features of the target object are restored to obtain the actual three-dimensional size of the target object, and then a corresponding three-dimensional mesh model is established.
2. A method for constructing a real-time training digital twin model according to claim 1, It is characterized in that The universal mobile device is a smart phone or a tablet computer.
3. According to the method of claim 1, It is characterized in that The inertial measurement unit includes an accelerometer and a gyroscope.
4. A method for constructing a real-time training digital twin model according to claim 1, It is characterized in that In step 4, the universal mobile device uses the acquired feature point database to identify in real time whether other continuous image frames taken contain the target object. If so, the position of the target object in the image frame is estimated, and the corresponding feature points are extracted to detect whether the target object has changed from the optimized three-dimensional mesh model. When continuous image frames containing the missing part of the target object in the optimized three-dimensional mesh model are taken, discrete image frames are automatically taken by photo shooting according to the estimated position of the target object in the image frame, and the three-dimensional mesh model of the missing part of the target object is constructed by using the discrete image frames; that is, the feature points of the missing part are extracted from the discrete image frames, and the three-dimensional coordinates of the corresponding feature points are calculated to construct a feature point database of the discrete image frames, and the three-dimensional mesh model of the missing part is constructed by using the Visual Inertial Odometry technology.
Citation Information
Patent Citations
3D (three-dimensional) visualization method for coverage range based on quick estimation of attitude of camera
CN103400409A
Method for constructing three-dimensional human face model based on multi-frame video image
CN104077804A
