Three-dimensional modeling method, system, device and storage medium
By using a combination of motion adjustment system and projection shooting system in 3D modeling technology, and using different relative coordinate systems for multi-angle scanning data synthesis, the problems of high hardware cost and complex scanning processing in the existing technology are solved, and more efficient is achieved. , a lower threshold 3D modeling process.
Patent Information
- Application Number
- CN202111340755.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-11-12
AI Technical Summary
Among existing 3D modeling technologies, the hardware cost of visual 3D modeling is high and the scanning processing requirements are high, resulting in limited usage scenarios. In particular, when scanning faces, multiple scanning and angle adjustments are complex, and the threshold is high.
Using a three-dimensional modeling method, through the fixed connection between the motion adjustment system and the projection shooting system, different relative coordinate systems are used for data scanning and analysis to generate a three-dimensional model, including the projection shooting system scanning object data based on the X relative coordinate system, calculation and analysis The system generates posture update data, adjusts the system to adjust the shooting position, and realizes the synthesis of multi-angle scan data.
Reduces hardware costs and scan processing requirements, simplifies the scanning process, improves the efficiency and user-friendliness of 3D modeling, reduces strict requirements on initial poses, and enables 3D modeling with less hardware and lower scan processing .
Smart Images

Figure CN113920252B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of three-dimensional modeling, and in particular to a three-dimensional modeling method, system, device and storage medium. Background Art
[0002] In recent years, with the continuous development and innovation of VR technology, people's demand for 3D basic data has been increasing. Currently, an important method for obtaining 3D models is 3D scanning, which can quickly and easily obtain a complete 3D model of the face, and has become a research hotspot.
[0003] Given that the effective working area of current face scanning equipment cannot cover the entire face, the generally used method is to scan and reconstruct multiple times in various areas and angles, and then merge them into a complete three-dimensional face data.
[0004] There are two main methods to obtain 3D data models. One is to model through professional 3D modeling software such as 3DMax and blender. The other is to perform 3D reconstruction through visual methods. The former requires high professionalism, and it takes a lot of time to make a 1:1 restored and high-precision 3D model. The latter is relatively simple to operate and takes much less time. However, at present, the solution of multiple sets of scanning modules first requires two more sets of modules than a single scanning module, and the hardware cost is higher; secondly, the three sets of modules need to be installed according to the characteristic posture, resulting in a very large space occupied by the hardware system and limited usage scenarios. For the solution of a set of scanning modules, whether it is the movement of the module or the movement of the scanned target, there is a problem of coordination between the relative postures of the two. A slight deviation may lead to the failure of the final reconstruction. There is a high threshold, which is extremely unfriendly to people without experience. Therefore, a technology is needed to solve the current high cost of scanning hardware and high requirements for scanning processing in visual 3D modeling. Summary of the invention
[0005] The main purpose of the present invention is to solve the technical problems of excessively high scanning hardware costs and excessively high scanning processing requirements in current visual three-dimensional modeling.
[0006] A first aspect of the present invention provides a three-dimensional modeling method, which is applied to a three-dimensional modeling system. The three-dimensional modeling system specifically includes: a motion adjustment system, a projection shooting system, and a calculation and analysis system. The motion adjustment system is fixedly connected to the projection shooting system. The three-dimensional modeling method includes:
[0007] The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, and sends the Xth spatial data to the calculation and analysis system, wherein the Xth relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative position of the projection shooting system and the object to be modeled, and X is a positive integer;
[0008] The computing and analyzing system receives the Xth spatial data, generates Xth posture update data according to the Xth spatial data, and sends the Xth posture update data to the motion adjustment system;
[0009] The motion adjustment system receives the Xth posture update data, and based on the Xth posture update data, changes the spatial relative position between the projection shooting system and the object to be modeled;
[0010] The projection shooting system scans the X+1th spatial data corresponding to the object to be modeled based on the X+1th relative coordinate system, and sends the X+1th spatial data to the calculation and analysis system, wherein the X+1th relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative position of the projection shooting system and the object to be modeled;
[0011] The computing and analyzing system receives the X+1th spatial data, and generates a three-dimensional model according to the Xth spatial data and the X+1th spatial data.
[0012] Optionally, in a first implementation of the first aspect of the present invention, before the projection shooting system scans out the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, the method further includes:
[0013] The projection and shooting system projects a checkerboard image onto a preset calibration plate, and shoots the calibration plate having the checkerboard image to obtain a first calibration image;
[0014] The projection and shooting system cancels projection of the checkerboard image on the calibration plate, and shoots the calibration plate without the checkerboard image to obtain a second calibration image;
[0015] Based on Zhang Zhengyou's calibration method, the first calibration image and the second calibration image are analyzed to obtain a calibration coordinate system of the calibration plate and a coordinate conversion matrix M1 for converting the calibration coordinate system to a shooting lens coordinate system in the projection shooting system.
[0016] Optionally, in a second implementation of the first aspect of the present invention, the projection shooting system scans out Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, including:
[0017] Fixing the object to be modeled on the calibration plate;
[0018] The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system.
[0019] Optionally, in a third implementation manner of the first aspect of the present invention, generating a three-dimensional model according to the Xth spatial data and the X+1th spatial data includes:
[0020] The computing and analyzing system obtains the connection point coordinate system of the projection shooting system and the motion adjustment system, and obtains the installation point coordinate system of the motion adjustment system;
[0021] Calculate the coordinate conversion matrix M2 from the connection point coordinate system to the installation point coordinate system, and calculate the coordinate conversion matrix M3 from the shooting lens coordinate system to the connection point coordinate system;
[0022] Calculate and generate a coordinate transformation relationship M4 according to the coordinate transformation matrix M1, the coordinate transformation matrix M2, and the coordinate transformation matrix M3;
[0023] According to the coordinate transformation relationship M4, the Xth spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the Xth transformation data, and the X+1th spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the X+1th transformation data;
[0024] A three-dimensional model is generated based on the Xth conversion data and the X+1th conversion data.
[0025] Optionally, in a fourth implementation of the first aspect of the present invention, the coordinate transformation relationship M4 includes:
[0026] Coordinate transformation relationship M4=coordinate transformation matrix M1*coordinate transformation matrix M2*coordinate transformation matrix M3.
[0027] Optionally, in a fifth implementation manner of the first aspect of the present invention, the computing and analysis system receives the X+1th spatial data, and generating a three-dimensional model according to the Xth spatial data and the X+1th spatial data further includes:
[0028] The computing and analyzing system receives the X+1th spatial data, generates the X+1th posture update data according to the X+1th spatial data, and sends the X+1th posture update data to the motion adjustment system;
[0029] The motion adjustment system receives the X+1th posture update data, and based on the X+1th posture update data, changes the spatial relative position between the projection shooting system and the object to be modeled;
[0030] The projection shooting system scans the X+2th spatial data corresponding to the object to be modeled based on the X+2th relative coordinate system, and sends the X+2th spatial data to the calculation and analysis system, wherein the X+2th relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space;
[0031] The calculation and analysis system generates a three-dimensional model based on the Xth spatial data, the X+1th spatial data, and the X+2th spatial data.
[0032] Optionally, in a sixth implementation of the first aspect of the present invention, generating X-th posture update data according to the X-th spatial data includes:
[0033] The lens scanning direction of the X-th spatial data is analyzed to generate an X-th posture update data in which the lens scanning direction is changed by an angle of 45 degrees.
[0034] A second aspect of the present invention provides a three-dimensional modeling system, the three-dimensional modeling system comprising:
[0035] A motion adjustment system, a projection shooting system, and a calculation and analysis system, wherein the motion adjustment system is fixedly connected to the projection shooting system;
[0036] The projection shooting system is used to scan the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, and send the Xth spatial data to the calculation and analysis system, wherein the Xth relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space, and X is a positive integer;
[0037] The computing and analyzing system is used to receive the Xth spatial data, generate Xth posture update data according to the Xth spatial data, and send the Xth posture update data to the motion adjustment system;
[0038] The motion adjustment system is used to receive the X-th posture update data, and based on the X-th posture update data, change the spatial relative position between the projection shooting system and the object to be modeled;
[0039] The projection shooting system is used to scan the X+1th spatial data corresponding to the object to be modeled based on the X+1th relative coordinate system, and send the X+1th spatial data to the calculation and analysis system, wherein the X+1th relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space;
[0040] The computing and analyzing system is used to receive the X+1th spatial data, and generate a three-dimensional model according to the Xth spatial data and the X+1th spatial data.
[0041] The third aspect of the present invention provides a three-dimensional modeling device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the three-dimensional modeling device executes the above-mentioned three-dimensional modeling method.
[0042] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned three-dimensional modeling method.
[0043] In an embodiment of the present invention, by adjusting the position of the projection shooting system and the position of the object to be modeled, scanning processing is performed at different positions, so that the projection shooting system can obtain modeling data of different perspectives and perform modeling rendering based on the same coordinate system, thereby achieving less hardware and lower scanning processing requirements, and solving the problems of excessive hardware cost and excessive scanning processing requirements in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of an embodiment of a three-dimensional modeling method in an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of the overall structural layout of a three-dimensional modeling system of a three-dimensional modeling method in an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of coordinate system conversion of a three-dimensional modeling method in an embodiment of the present invention;
[0047] Figure 4 A schematic diagram of changes in the shooting lens of the three-dimensional modeling method in an embodiment of the present invention;
[0048] Figure 5 A schematic diagram of an embodiment of a three-dimensional modeling system in an embodiment of the present invention;
[0049] Figure 6 A schematic diagram of another embodiment of a three-dimensional modeling system in an embodiment of the present invention;
[0050] Figure 7 It is a schematic diagram of an embodiment of a three-dimensional modeling device in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] Embodiments of the present invention provide a three-dimensional modeling method, system, device and storage medium.
[0052] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0053] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 An embodiment of a three-dimensional modeling method in an embodiment of the present invention is applied to a three-dimensional modeling system. The three-dimensional modeling system specifically includes: a motion adjustment system, a projection shooting system, and a calculation and analysis system. The motion adjustment system is fixedly connected to the projection shooting system. The three-dimensional modeling method includes:
[0054] 101. The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, and sends the Xth spatial data to the calculation and analysis system, wherein the Xth relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative positions of the projection shooting system and the object to be modeled, and X is a positive integer;
[0055] In this embodiment, if Figure 2 The overall structural layout diagram of the 3D modeling system is shown. The 3D modeling system specifically includes: motion adjustment system A, projection shooting system B, and calculation and analysis system. The projection shooting system B includes a shooting lens G and a projection lens F. The projection shooting system B is connected to the motion adjustment system A through a connection point E. Different relative coordinate systems will be generated when the spatial relative positions between the projection shooting system B and the object to be modeled C are different. Different relative coordinate systems are distinguished by the Xth relative coordinate system. The Xth spatial data corresponding to the object to be modeled scanned by the projection shooting system B is transmitted and logically processed in the calculation and analysis system.
[0056] Furthermore, the following steps may be performed before step 101:
[0057] 1011. The projection and shooting system projects a checkerboard image onto a preset calibration plate, and shoots the calibration plate having the checkerboard image to obtain a first calibration image.
[0058] 1012. The projection and shooting system cancels the projection of the checkerboard image on the calibration plate, and shoots the calibration plate without the checkerboard image to obtain a second calibration image.
[0059] 1013. Based on the Zhang Zhengyou calibration method, analyze the first calibration image and the second calibration image to obtain a calibration coordinate system of the calibration plate and a coordinate conversion matrix M1 for converting the calibration coordinate system to a shooting lens coordinate system in the projection shooting system.
[0060] In steps 1011-1013, if Figure 2 As shown, the projection shooting system B first turns on the projection lens F to project the checkerboard image on the calibration plate C, and then the shooting lens G obtains the first calibration image. Then the projection shooting system B first turns off the projection lens F, so that the projected checkerboard image on the calibration plate C disappears, and then uses the shooting lens G to obtain the second calibration image. The first calibration image and the second calibration image are calculated based on the existing Zhang Zhengyou calibration method to obtain the calibration coordinate system H of the calibration plate C, and the coordinate conversion matrix M1 of the calibration coordinate system H to the shooting lens coordinate system G is calculated. Since the conversion of the coordinate system is sequential, it can be understood that the relationship between the two is the shooting lens coordinate system G = calibration coordinate system H * coordinate conversion matrix M1.
[0061] Preferably, “the projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system” may specifically perform the following operations:
[0062] 1014. Fixing the object to be modeled on the calibration plate;
[0063] 1015. The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system.
[0064] In steps 1014 and 1015, the calibration coordinate system is obtained by replacing the calibration plate with the object to be modeled. The calibration coordinate system obtained in 1011-1013 is the coordinate system of the current object to be modeled, and then a scanning operation is performed to obtain the Xth spatial data corresponding to the object to be modeled.
[0065] 102. The computing and analyzing system receives the Xth spatial data, generates the Xth posture update data according to the Xth spatial data, and sends the Xth posture update data to the motion adjustment system;
[0066] In this embodiment, after receiving the content of the X-th spatial data, the computing and analyzing system will generate a posture update data for controlling the motion adjustment system to change the posture, and the posture update instruction is for adjusting the shooting camera to different angles to collect data on the object to be modeled.
[0067] Furthermore, in step 102, the following operations may be performed:
[0068] 1021. Analyze the lens scanning direction of the Xth spatial data, and generate the Xth posture update data in which the lens scanning direction is changed by an angle of 45 degrees.
[0069] In this embodiment, if Figure 4 The schematic diagram of the change of the shooting lens is shown, P1 is the lens scanning direction of the X-th spatial data, and after the angle is changed by 45 degrees, the lens shooting angle P2 is generated, and after the angle is changed by 45 degrees, the lens shooting angle P3 is generated.
[0070] 103. The motion adjustment system receives the Xth posture update data, and based on the Xth posture update data, changes the spatial relative position between the projection shooting system and the object to be modeled;
[0071] In this embodiment, the motion adjustment system A receives the X-th posture update data and adjusts the projection shooting system B so that the projection shooting system B shoots the object to be modeled at a new angle.
[0072] 104. The projection shooting system scans the X+1th spatial data corresponding to the object to be modeled based on the X+1th relative coordinate system, and sends the X+1th spatial data to the calculation and analysis system, wherein the X+1th relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative positions of the projection shooting system and the object to be modeled;
[0073] In this embodiment, the projection shooting system scans the object to be modeled again at the new spatial position to obtain the X+1th spatial data, and then sends the spatial data to the computing and analysis system, where the computing and analysis system performs 3D model rendering according to the spatial data from different shooting angles.
[0074] 105. The computing and analyzing system receives the X+1th spatial data, and generates a three-dimensional model according to the Xth spatial data and the X+1th spatial data.
[0075] In this embodiment, the X+1th spatial data and the Xth spatial data taken at different angles are rendered to generate a three-dimensional model in the same way as the existing method. This method does not require strict requirements on the posture of the face, and the face only needs to be in a rough working area. During the first scan, a facial coordinate system is established, the optimal scanning posture PP1 is analyzed, the robot arm is controlled to move to PP1, the first angle scan is performed, the three-dimensional point cloud is reconstructed in real time, and the new point cloud is used to update XYZ to determine the scanning posture PP2 of the second angle. And so on, until the scan of three angles is completed. In this way, regardless of whether the initial facial posture is optimal, excellent scanning and splicing can be achieved by feedback-adjusting the scanning posture.
[0076] Further, step 105 may perform the following steps:
[0077] 1051. The calculation and analysis system obtains a connection point coordinate system between the projection shooting system and the motion adjustment system, and obtains an installation point coordinate system of the motion adjustment system;
[0078] 1052. Calculate a coordinate conversion matrix M2 for converting the connection point coordinate system to the installation point coordinate system, and calculate a coordinate conversion matrix M3 for converting the shooting lens coordinate system to the connection point coordinate system;
[0079] 1053. Calculate and generate a coordinate transformation relationship M4 according to the coordinate transformation matrix M1, the coordinate transformation matrix M2, and the coordinate transformation matrix M3;
[0080] 1054. According to the coordinate transformation relationship M4, transform the Xth spatial data from the calibration coordinate system to the installation point coordinate system to obtain the Xth transformation data, and transform the X+1th spatial data from the calibration coordinate system to the installation point coordinate system to obtain the X+1th transformation data;
[0081] 1055. Generate a three-dimensional model based on the Xth conversion data and the X+1th conversion data.
[0082] In steps 1051-1055, if Figure 3 The coordinate system transformation diagram shown in Figure 2 As shown in the schematic diagram of the overall structural layout of the three-dimensional modeling system, the calculation and analysis system obtains the connection point coordinate system E between the projection shooting system and the motion adjustment system, obtains the installation point coordinate system D of the motion adjustment system, and then calculates the coordinate conversion matrix M2 from the connection point coordinate system E to the installation point coordinate system D, calculates the coordinate conversion matrix M3 from the shooting lens coordinate system G to the connection point coordinate system E, and calculates the calibration coordinate system H (XYZ) to convert it to the robot arm base installation point coordinate system D (LMN).
[0083] It should be noted that the coordinate transformation relationship M4=coordinate transformation matrix M1*coordinate transformation matrix M2*coordinate transformation matrix M3. The calibration coordinate system H(XYZ)=coordinate transformation relationship M4*calibration coordinate system H(XYZ) is obtained.
[0084] According to the coordinate transformation relationship M4, the Xth spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the Xth transformation data, and the X+1th spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the X+1th transformation data. A three-dimensional model is constructed based on the installation point coordinate system D (LMN).
[0085] Furthermore, step 105 may further perform the following steps:
[0086] 1051. The computing and analyzing system receives the X+1th spatial data, generates the X+1th posture update data according to the X+1th spatial data, and sends the X+1th posture update data to the motion adjustment system;
[0087] 1052. The motion adjustment system receives the X+1th posture update data, and based on the X+1th posture update data, changes the spatial relative position between the projection shooting system and the object to be modeled;
[0088] 1053. The projection shooting system scans the X+2th spatial data corresponding to the object to be modeled based on the X+2th relative coordinate system, and sends the X+2th spatial data to the calculation and analysis system, wherein the X+2th relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative positions of the projection shooting system and the object to be modeled;
[0089] 1054. The computing and analyzing system generates a three-dimensional model based on the Xth spatial data, the X+1th spatial data, and the X+2th spatial data.
[0090] In steps 1051-1054, the X+1th spatial data is sent to the motion adjustment system again, and the motion adjustment system updates the spatial position of the projection shooting system again to ensure that there are enough collected samples, and then generates a three-dimensional model based on the newly collected samples of the Xth spatial data, the X+1th spatial data, and the X+2th spatial data. Here, you can continue to cycle to collect 4 spatial positions, 5 spatial positions, and even N spatial positions. The more you collect, the more accurate the three-dimensional model will be.
[0091] In an embodiment of the present invention, by adjusting the position of the projection shooting system and the position of the object to be modeled, scanning processing is performed at different positions, so that the projection shooting system can obtain modeling data of different perspectives and perform modeling rendering based on the same coordinate system, thereby achieving less hardware and lower scanning processing requirements, and solving the problems of excessive hardware cost and excessive scanning processing requirements in the prior art.
[0092] The above describes the three-dimensional modeling method in the embodiment of the present invention. The following describes the three-dimensional modeling system in the embodiment of the present invention. Figure 5 In one embodiment of the three-dimensional modeling system of the present invention, the three-dimensional modeling system includes:
[0093] A motion adjustment system 501, a projection shooting system 502, and a calculation and analysis system 503, wherein the motion adjustment system 501 is fixedly connected to the projection shooting system 502;
[0094] The projection shooting system 502 is used to scan the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, and send the Xth spatial data to the calculation and analysis system, wherein the Xth relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space, and X is a positive integer;
[0095] The computing and analyzing system 503 is used to receive the X-th spatial data, generate the X-th posture update data according to the X-th spatial data, and send the X-th posture update data to the motion adjustment system;
[0096] The motion adjustment system 501 is used to receive the X-th posture update data, and based on the X-th posture update data, change the spatial relative position between the projection shooting system and the object to be modeled;
[0097] The projection shooting system 502 is used to scan the X+1th spatial data corresponding to the object to be modeled based on the X+1th relative coordinate system, and send the X+1th spatial data to the calculation and analysis system, wherein the X+1th relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space;
[0098] The computing and analyzing system 503 is used to receive the X+1th spatial data, and generate a three-dimensional model according to the Xth spatial data and the X+1th spatial data.
[0099] See also Figure 6 According to another embodiment of the three-dimensional modeling system in the embodiment of the present invention, the three-dimensional modeling system comprises:
[0100] A motion adjustment system 501, a projection shooting system 502, and a calculation and analysis system 503, wherein the motion adjustment system 501 is fixedly connected to the projection shooting system 502;
[0101] The projection shooting system 502 is used to scan the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, and send the Xth spatial data to the calculation and analysis system, wherein the Xth relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space, and X is a positive integer;
[0102] The computing and analyzing system 503 is used to receive the X-th spatial data, generate the X-th posture update data according to the X-th spatial data, and send the X-th posture update data to the motion adjustment system;
[0103] The motion adjustment system 501 is used to receive the X-th posture update data, and based on the X-th posture update data, change the spatial relative position between the projection shooting system and the object to be modeled;
[0104] The projection shooting system 502 is used to scan the X+1th spatial data corresponding to the object to be modeled based on the X+1th relative coordinate system, and send the X+1th spatial data to the calculation and analysis system, wherein the X+1th relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space;
[0105] The computing and analyzing system 503 is used to receive the X+1th spatial data, and generate a three-dimensional model according to the Xth spatial data and the X+1th spatial data.
[0106] The three-dimensional modeling system further includes a calibration system 504, and the calibration system 504 is specifically used for:
[0107] The projection and shooting system projects a checkerboard image onto a preset calibration plate, and shoots the calibration plate having the checkerboard image to obtain a first calibration image;
[0108] The projection and shooting system cancels projection of the checkerboard image on the calibration plate, and shoots the calibration plate without the checkerboard image to obtain a second calibration image;
[0109] Based on Zhang Zhengyou's calibration method, the first calibration image and the second calibration image are analyzed to obtain a calibration coordinate system of the calibration plate and a coordinate conversion matrix M1 for converting the calibration coordinate system to a shooting lens coordinate system in the projection shooting system.
[0110] The projection shooting system 502 is specifically used for:
[0111] Fixing the object to be modeled on the calibration plate;
[0112] The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system.
[0113] The computing and analysis system 503 is specifically used for:
[0114] The computing and analyzing system obtains the connection point coordinate system of the projection shooting system and the motion adjustment system, and obtains the installation point coordinate system of the motion adjustment system;
[0115] Calculate the coordinate conversion matrix M2 from the connection point coordinate system to the installation point coordinate system, and calculate the coordinate conversion matrix M3 from the shooting lens coordinate system to the connection point coordinate system;
[0116] Calculate and generate a coordinate transformation relationship M4 according to the coordinate transformation matrix M1, the coordinate transformation matrix M2, and the coordinate transformation matrix M3;
[0117] According to the coordinate transformation relationship M4, the Xth spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the Xth transformation data, and the X+1th spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the X+1th transformation data;
[0118] A three-dimensional model is generated based on the Xth conversion data and the X+1th conversion data.
[0119] The motion adjustment system 501 is specifically used for:
[0120] The lens scanning direction of the X-th spatial data is analyzed to generate an X-th posture update data in which the lens scanning direction is changed by an angle of 45 degrees.
[0121] The computing and analysis system 503 may also be specifically used for:
[0122] The computing and analyzing system receives the X+1th spatial data, generates the X+1th posture update data according to the X+1th spatial data, and sends the X+1th posture update data to the motion adjustment system;
[0123] The motion adjustment system receives the X+1th posture update data, and based on the X+1th posture update data, changes the spatial relative position between the projection shooting system and the object to be modeled;
[0124] The projection shooting system scans the X+2th spatial data corresponding to the object to be modeled based on the X+2th relative coordinate system, and sends the X+2th spatial data to the calculation and analysis system, wherein the X+2th relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative position of the projection shooting system and the object to be modeled;
[0125] The computing and analyzing system generates a three-dimensional model based on the Xth spatial data, the X+1th spatial data, and the X+2th spatial data.
[0126] In an embodiment of the present invention, by adjusting the position of the projection shooting system and the position of the object to be modeled, scanning processing is performed at different positions, so that the projection shooting system can obtain modeling data of different perspectives and perform modeling rendering based on the same coordinate system, thereby achieving less hardware and lower scanning processing requirements, and solving the problems of excessive hardware cost and excessive scanning processing requirements in the prior art.
[0127] above Figure 5 and Figure 6 The three-dimensional modeling system in the embodiment of the present invention is described in detail from the perspective of modular functional entities, and the three-dimensional modeling device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0128] Figure 7 7 is a schematic diagram of the structure of a three-dimensional modeling device provided by an embodiment of the present invention. The three-dimensional modeling device 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 710 (for example, one or more processors) and a memory 720, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 733 or data 732. Among them, the memory 720 and the storage medium 730 may be temporary storage or permanent storage. The program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the three-dimensional modeling device 700. Furthermore, the processor 710 may be configured to communicate with the storage medium 730 to execute a series of instruction operations in the storage medium 730 on the three-dimensional modeling device 700.
[0129] The three-dimensional modeling device 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input and output interfaces 760, and / or one or more operating systems 731, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 7 The illustrated structure of the three-dimensional modeling device does not constitute a limitation on the three-dimensional modeling device, and may include more or less components than those illustrated, or combine certain components, or arrange the components differently.
[0130] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the three-dimensional modeling method.
[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system or system or unit described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0132] 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 invention 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. 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 invention. 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 codes.
[0133] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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 three-dimensional modeling method, characterized in that: The three-dimensional modeling method is applied to a three-dimensional modeling system, and the three-dimensional modeling system specifically includes: a motion adjustment system, a projection shooting system, and a calculation and analysis system. The motion adjustment system is fixedly connected to the projection shooting system. The three-dimensional modeling method includes: The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, and sends the Xth spatial data to the calculation and analysis system, wherein the Xth relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative position of the projection shooting system and the object to be modeled, and X is a positive integer; The computing and analyzing system receives the Xth spatial data, generates Xth posture update data according to the Xth spatial data, and sends the Xth posture update data to the motion adjustment system; The motion adjustment system receives the Xth posture update data, and based on the Xth posture update data, changes the spatial relative position between the projection shooting system and the object to be modeled; The projection shooting system scans the X+1th spatial data corresponding to the object to be modeled based on the X+1th relative coordinate system, and sends the X+1th spatial data to the calculation and analysis system, wherein the X+1th relative coordinate system includes: a three-dimensional coordinate system established based on the spatial relative position of the projection shooting system and the object to be modeled; The computing and analyzing system receives the X+1th spatial data, and generates a three-dimensional model according to the Xth spatial data and the X+1th spatial data; The step of generating a three-dimensional model according to the Xth spatial data and the X+1th spatial data includes: The computing and analyzing system obtains the connection point coordinate system of the projection shooting system and the motion adjustment system, and obtains the installation point coordinate system of the motion adjustment system; Calculate the coordinate conversion matrix M2 from the connection point coordinate system to the installation point coordinate system, and calculate the coordinate conversion matrix M3 from the shooting lens coordinate system to the connection point coordinate system; Calculate and generate a coordinate transformation relationship M4 according to the coordinate transformation matrix M1, the coordinate transformation matrix M2, and the coordinate transformation matrix M3; According to the coordinate transformation relationship M4, the Xth spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the Xth transformation data, and the X+1th spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the X+1th transformation data; A three-dimensional model is generated based on the Xth conversion data and the X+1th conversion data.
2. The three-dimensional modeling method according to claim 1, characterized in that: Before the projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, the method further includes: The projection and shooting system projects a checkerboard image onto a preset calibration plate, and shoots the calibration plate having the checkerboard image to obtain a first calibration image; The projection and shooting system cancels projection of the checkerboard image on the calibration plate, and shoots the calibration plate without the checkerboard image to obtain a second calibration image; Based on Zhang Zhengyou's calibration method, the first calibration image and the second calibration image are analyzed to obtain a calibration coordinate system of the calibration plate and a coordinate conversion matrix M1 for converting the calibration coordinate system to a shooting lens coordinate system in the projection shooting system.
3. The three-dimensional modeling method according to claim 2, characterized in that: The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, including: Fixing the object to be modeled on the calibration plate; The projection shooting system scans the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system.
4. The three-dimensional modeling method according to claim 1, characterized in that: The coordinate transformation relationship M4 includes: Coordinate transformation relationship M4=coordinate transformation matrix M1*coordinate transformation matrix M2*coordinate transformation matrix M3.
5. The three-dimensional modeling method according to claim 1, characterized in that: The computing and analyzing system receives the X+1th spatial data, and generates a three-dimensional model according to the Xth spatial data and the X+1th spatial data, further comprising: The computing and analyzing system receives the X+1th spatial data, generates the X+1th posture update data according to the X+1th spatial data, and sends the X+1th posture update data to the motion adjustment system; The motion adjustment system receives the X+1th posture update data, and based on the X+1th posture update data, changes the spatial relative position between the projection shooting system and the object to be modeled; The projection shooting system scans the X+2th spatial data corresponding to the object to be modeled based on the X+2th relative coordinate system, and sends the X+2th spatial data to the calculation and analysis system, wherein the X+2th relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space; The calculation and analysis system generates a three-dimensional model based on the Xth spatial data, the X+1th spatial data, and the X+2th spatial data.
6. The three-dimensional modeling method according to claim 1, characterized in that: The generating the Xth posture update data according to the Xth spatial data comprises: The lens scanning direction of the X-th spatial data is analyzed to generate an X-th posture update data in which the lens scanning direction is changed by an angle of 45 degrees.
7. A three-dimensional modeling system, characterized in that: The three-dimensional modeling system comprises: A motion adjustment system, a projection shooting system, and a calculation and analysis system, wherein the motion adjustment system is fixedly connected to the projection shooting system; The projection shooting system is used to scan the Xth spatial data corresponding to the object to be modeled based on the Xth relative coordinate system, and send the Xth spatial data to the calculation and analysis system, wherein the Xth relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space, and X is a positive integer; The computing and analyzing system is used to receive the Xth spatial data, generate Xth posture update data according to the Xth spatial data, and send the Xth posture update data to the motion adjustment system; The motion adjustment system is used to receive the X-th posture update data, and based on the X-th posture update data, change the spatial relative position between the projection shooting system and the object to be modeled; The projection shooting system is used to scan the X+1th spatial data corresponding to the object to be modeled based on the X+1th relative coordinate system, and send the X+1th spatial data to the calculation and analysis system, wherein the X+1th relative coordinate system includes: a three-dimensional coordinate system established between the projection shooting system and the object to be modeled based on the relative position in space; The computing and analyzing system is used to receive the X+1th spatial data, and generate a three-dimensional model according to the Xth spatial data and the X+1th spatial data; The step of generating a three-dimensional model according to the Xth spatial data and the X+1th spatial data includes: The computing and analyzing system obtains the connection point coordinate system of the projection shooting system and the motion adjustment system, and obtains the installation point coordinate system of the motion adjustment system; Calculate the coordinate conversion matrix M2 from the connection point coordinate system to the installation point coordinate system, and calculate the coordinate conversion matrix M3 from the shooting lens coordinate system to the connection point coordinate system; Calculate and generate a coordinate transformation relationship M4 according to the coordinate transformation matrix M1, the coordinate transformation matrix M2, and the coordinate transformation matrix M3; According to the coordinate transformation relationship M4, the Xth spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the Xth transformation data, and the X+1th spatial data is transformed from the calibration coordinate system to the installation point coordinate system to obtain the X+1th transformation data; A three-dimensional model is generated based on the Xth conversion data and the X+1th conversion data.
8. A three-dimensional modeling device, characterized in that: The three-dimensional modeling device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the three-dimensional modeling device to execute the three-dimensional modeling method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the three-dimensional modeling method according to any one of claims 1 to 6 is implemented.
