Three-dimensional paint spraying system and method based on generative large model texture generation
By combining generative large models and three-dimensional object reconstruction technology, RGB-D cameras and robotic arms are used to achieve high-quality texture spraying of three-dimensional objects, which solves the problem of insufficient authenticity and interactivity of texture generation in the existing technology. The generated texture Textures are more realistic and natural.
Patent Information
- Application Number
- CN202410786190.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Existing 3D object texture generation methods have shortcomings in authenticity and customization. In particular, diffusion-based generative large models are difficult to achieve high-quality texture generation under the constraints of high-quality 3D data sets and computing resources, and lack of virtual worlds. interaction with the real world.
Combining generative large models with three-dimensional object reconstruction and realistic feedback reinforcement learning, multi-view data is collected through RGB-D cameras, a grid model is generated, customized textures are generated using stable diffusion models and Unet models, and physical textures are achieved through robotic arm spraying Textures, using human feedback reinforcement learning algorithms to fine-tune models.
It achieves high-quality customized texture spraying of three-dimensional objects, improves the effects of digital manufacturing and visual presentation, enhances the interaction ability between the virtual world and the real world, and generates texture maps that are more realistic and natural.
Smart Images

Figure CN118357083B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of three-dimensional model scanning and spraying, and in particular relates to a three-dimensional paint spraying system and method based on generative large model texture generation. Background Art
[0002] In recent years, the field of computer graphics has been constantly pursuing more realistic and high-quality graphics effects, among which the generation of digital textures is a key issue. Traditional methods have some limitations in digital texture generation, including the lack of realism and difficulty in customization. Before the era of large language models, 3D generation methods mostly used generative adversarial networks and contrastive language image pre-training. In recent years, with the accessibility of pre-trained large language models, many researchers have adopted diffusion-based methods to generate better quality 3D models.
[0003] Compared with traditional digital texture generation based on rules and statistical methods, generative large models have obvious advantages. First, they can capture more complex and realistic texture features, making the generated digital textures more realistic. Second, generative large models are highly customizable and can achieve personalized generation of textures by adjusting the parameters or inputs of the model. This makes it possible to more flexibly adapt to different scenarios and application requirements in computer graphics.
[0004] However, current research mainly focuses on the field of image generation, and there are relatively few applications for the generation of surface textures of three-dimensional objects. At present, diffusion-based generative large models still face some challenges in the generation of three-dimensional object textures, including the lack of high-quality three-dimensional data sets, the complex data structure of high-dimensional objects, and the limitation of computing resources. When traditional generative large models are applied to the generation of three-dimensional object textures, they can usually only be trained in the digital world and lack direct feedback from the real world, that is, there is a lack of interaction between the digital texture of the virtual world and the physical texture of the real world, which leads to low authenticity of the model and poor final spraying effect. Summary of the invention
[0005] In order to solve the above technical problems, the present invention proposes a three-dimensional paint spraying system and method based on generative large model texture generation, which can realize high-quality customized texture spraying of three-dimensional objects.
[0006] The present invention provides a system and method for generating digital textures using a generative large model. The method realizes high-quality customized texture spraying of three-dimensional objects by combining the generative large model with technologies such as three-dimensional object reconstruction and reality feedback reinforcement learning. In addition, by combining the spraying technology with the three-dimensional object reconstruction technology, the digital texture generated by the generative large model can be converted into a physical texture, thereby realizing reinforcement learning based on human feedback for the generative large model. The method described in the present invention aims to promote the development of digital texture generation in the field of computer graphics, improve the effects of digital manufacturing and visual presentation, and provide more channels for the interaction and function between the virtual world and the real world.
[0007] The technical solution provided by the present invention is as follows:
[0008] In a first aspect, the present invention provides a three-dimensional paint spraying method based on generative large model texture generation, comprising the following steps:
[0009] S1, collect multi-view image data;
[0010] S2, processing the multi-view image data to obtain a three-dimensional point cloud model and the coordinate value of each point corresponding to the real world, and then reconstructing to obtain a mesh model of the object to be sprayed;
[0011] S3, combining with the mesh model, generates a specific digital texture and its UV mapping relationship with the mesh model according to user requirements;
[0012] S4, texture spraying path planning;
[0013] S5, texture spray.
[0014] Further, the step S1 includes the following steps: starting the turntable, and the RGB-D camera regularly collects the RGB image and depth image of the object to be sprayed to obtain multi-view image data of the object to be sprayed.
[0015] Further, the step S2 includes the following sub-steps:
[0016] Performing data preprocessing on the multi-view image data to obtain preprocessed image data;
[0017] Perform point cloud stitching on the pre-processed image data to obtain a three-dimensional point cloud model and the coordinate value of each point corresponding to the real world;
[0018] The Poisson surface reconstruction algorithm is used on the three-dimensional point cloud model to obtain the mesh model of the object to be sprayed.
[0019] Furthermore, in step S2, the preprocessing includes the following sub-steps:
[0020] (1) Through filtering: Set the threshold range on the x, y, and z axes respectively, filter out points that are not within the specified range, and retain the point cloud of the model on the turntable;
[0021] (2) Statistical filtering: Compare the statistical properties of each point with those in its domain and filter or repair outliers.
[0022] Further, the step S3 includes the following sub-steps:
[0023] S31, initializing the input mesh model using random texture;
[0024] S32, using the posture positions of the camera and the object in the 3D reconstruction obtained in S1, by aligning the coordinate systems of the camera in the physical world and the digital world, converting the rotation representation and translation representation of the camera in the physical world, obtaining the 2D texture images under each camera perspective in the digital world and the UV mapping relationship between the 2D texture images and the corresponding parts of the mesh model;
[0025] S33, input the 2D texture image into the stable diffusion model and convert it into a noisy latent space image through the encoder in the diffusion model variational autoencoder (dVAE);
[0026] S34, inputting the text description or picture provided by the user and the depth information of each view into the Unet model as conditions to guide the denoising process; in the sampler of the Unet model, iteratively denoising the noisy image, and back-projecting the generated texture images of each view into the texture space after each iteration; updating the texture pixel values of the overlapping parts according to the joint distribution of each overlapping texture pixel to ensure the consistency of the texture; and then obtaining a set of 3D consistent latent images and latent texture maps;
[0027] S35 decodes the latent image through latent texture aggregation and the decoder in the diffusion model variational autoencoder (dVAE) to generate a user-customized specific digital texture and its UV mapping relationship with the mesh model.
[0028] Furthermore, in step S33, the stable diffusion model adopts the architecture of the open source model Stable Diffusion2.0. After training on the digital world substrate, the model is combined with the actual physical texture after spraying. By fine-tuning the model using a reinforcement learning algorithm based on human feedback, more realistic texture map generation is achieved, so that the surface of the object after spraying presents a higher degree of realism.
[0029] Further, the step S4 includes the following sub-steps:
[0030] S41, using the specific digital texture obtained in S3 and its UV mapping relationship with the mesh model to convert the texture of the surface of the object to be sprayed into a two-dimensional image, then performing contour detection and color detection on the two-dimensional image, and arranging the colors in order from large to small according to their proportion as the order of spraying the colors;
[0031] S42, using the optimal path planning algorithm to plan the spraying path of each contour line according to the UV mapping relationship of each contour and the corresponding relationship between each point of the virtual digital model and the actual model of the physical world, and then planning the spraying order of each color block according to each contour block and color.
[0032] Furthermore, step S5 includes the following sub-steps: first, the object to be sprayed is placed strictly in accordance with the position of the 3D model; second, the robotic arm controls the spray pump to move 360 degrees around the object to be sprayed according to the planned contour spraying path to complete the drawing of all contour lines; then, the robotic arm controls different color spray pumps to spray each contour enclosing block with the corresponding color according to the spraying order of each color until all spraying is completed.
[0033] In a second aspect, the present invention provides a three-dimensional paint spraying system based on generative large model texture generation, which is used to implement the three-dimensional paint spraying method based on generative large model texture generation as described in the first aspect, comprising:
[0034] A turntable for placing the object to be sprayed;
[0035] A working platform with slide rails is set around the turntable;
[0036] A mechanical arm is arranged on the slide rail;
[0037] A spray pump is arranged on the gripper of the robot arm;
[0038] RGB-D camera, installed on the outside of the slide rail;
[0039] and a user operating platform for data processing and component control.
[0040] Furthermore, the robot arm can rotate 360 degrees around the object to be sprayed along the slide rail.
[0041] Furthermore, the spray pump sprays paints of multiple colors, and the robot arm sprays each color block in sequence according to the spray color sequence after controlling the spraying of the texture outline.
[0042] Furthermore, the RGB-D camera has the ability to capture RGB (color images) and depth (distance information), and is used in conjunction with an automated rotating turntable to collect visual data of an object from multiple perspectives and generate a high-quality three-dimensional point cloud model of the target object.
[0043] The beneficial effects of the present invention are as follows:
[0044] (1) The three-dimensional paint spraying system provided by the present invention uses three-dimensional object scanning to build a digital model, then generates customized digital textures through a generative large model, and then performs point-by-point spraying on the physical model through texture spraying path planning and automatic spraying and coloring. It can be applied to a variety of complex objects to achieve high-quality customized texture spraying operations on objects.
[0045] (2) The present invention adopts a generative large model and, by utilizing a stable diffusion model, generates multi-angle texture images based on the description text and reversely projects these texture images into the texture space, thereby achieving texture aggregation of the entire model and generating a more natural texture map.
[0046] (3) The present invention adopts a generative large model. By using the actual physical texture after spraying and combining it with an algorithm based on human feedback reinforcement learning to fine-tune the pre-trained large model, the generated texture map is more realistic.
[0047] (4) The method provided by the present invention can convert digital texture into physical texture, and then fine-tune the model through the texture of the physical world, thereby realizing the interaction between the virtual world and the physical world, so as to spray high-quality, personalized digital texture on three-dimensional objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 The present invention provides a flowchart for reconstructing a three-dimensional mesh model according to the method of the present invention.
[0049] Figure 2 A simplified structural diagram of the system of the present invention;
[0050] In the figure: 1-RGB-D camera, 2-turntable, 3-working platform with slide rails, 31-slide rails, 4-user operation platform, 5-robotic arm, 6-spraying pump, 7-object to be sprayed. DETAILED DESCRIPTION
[0051] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but the content of the present invention is not limited to these.
[0052] Example 1
[0053] This embodiment provides a three-dimensional paint spraying method based on generative large model texture generation, comprising the following steps:
[0054] S1, collect multi-view image data;
[0055] S2, processing the multi-view image data and reconstructing it to obtain a mesh model of the object to be sprayed;
[0056] S3, combining with the mesh model, generates a specific digital texture and its UV mapping relationship with the mesh model according to user requirements;
[0057] S4, texture spraying path planning;
[0058] S5, texture spray.
[0059] As a specific embodiment, step S1 includes the following steps: starting the turntable, and the RGB-D camera regularly collects the RGB image and depth image of the object to be sprayed to obtain multi-view image data of the object to be sprayed.
[0060] As a specific embodiment, Figure 1 As shown, step S2 includes the following sub-steps:
[0061] Performing data preprocessing on the multi-view image data to obtain preprocessed image data;
[0062] Perform point cloud stitching on the pre-processed image data to obtain a three-dimensional point cloud model and the coordinate value of each point corresponding to the real world;
[0063] The Poisson surface reconstruction algorithm is used on the three-dimensional point cloud model to obtain the mesh model of the object to be sprayed.
[0064] As an improved embodiment, in step S2, the preprocessing includes the following sub-steps:
[0065] (1) Through filtering: Set the threshold range on the x, y, and z axes to filter out points that are not within the specified range and retain the point cloud of the model on the turntable;
[0066] (2) Statistical filtering: Compare the statistical properties of each point with those in its domain and filter or repair outliers.
[0067] As a specific embodiment, step S3 includes the following sub-steps:
[0068] S31, initializing the input mesh model using random texture;
[0069] S32, using the posture positions of the camera and the object in the 3D reconstruction obtained in S2, by aligning the coordinate systems of the camera in the physical world and the digital world, converting the rotation representation and translation representation of the camera in the physical world, obtaining the 2D texture image under each camera perspective in the digital world and the UV mapping relationship between the image and the corresponding part of the mesh model;
[0070] S33, the 2D texture image is input into the stable diffusion model and converted into a noisy latent space image through the decoder in the diffusion model variational autoencoder (dVAE);
[0071] S34, inputting the text description or picture provided by the user and the depth information of each view into the Unet model as conditions to guide the denoising process; in the sampler of the Unet model, iteratively denoising the noisy latent space image, and back-projecting the generated texture images of each view into the texture space after each iteration; updating the texture pixel values of the overlapping parts according to the joint distribution of each overlapping texture pixel to ensure the consistency of the texture; and then obtaining a set of 3D consistent latent images and latent texture mappings;
[0072] S35 decodes the latent image through latent texture aggregation and the decoder in the diffusion model variational autoencoder (dVAE), and uses the mapping relationship between the latent image and the latent texture mapping to generate a user-customized specific digital texture and its UV mapping relationship with the mesh model.
[0073] Exemplarily, dVAE consists of an encoder that transforms from data space to latent space Z and a decoder that transforms from latent space to data space.
[0074] Exemplarily, in step S34, the method of back-projecting the texture images of each view into the texture space is as follows: the texture space refers to a two-dimensional coordinate space composed of UV coordinates, where each UV coordinate corresponds to a pixel on the texture image. The texture images of different views generated are projected into this common texture space through their respective UV mapping relationships. In this space, the texture information from multiple views is fused to synthesize a complete texture map.
[0075] As an improved embodiment, in step S33, the stable diffusion model adopts the architecture of the open source model StableDiffusion2.0. After training on the digital world substrate, the model is combined with the actual physical texture after spraying. By applying a reinforcement learning algorithm based on human feedback to fine-tune the stable diffusion model, more realistic texture map generation is achieved, so that the surface of the object after spraying presents a higher degree of realism.
[0076] As an improved embodiment, in step S33, the method of combining the model with the actual physical texture after spraying is: the input description text and the physical texture image after spraying are matched one by one to form a text-image data pair, and then combined with the user's score of the actual physical texture to form a text-image-score triple data set, and the PPO algorithm is used to fine-tune the model.
[0077] As an improved embodiment, in step S33, the method for fine-tuning the stable diffusion model by applying a reinforcement learning algorithm based on human feedback comprises the following steps:
[0078] First, the diffusion model is pre-trained using the labeled text image dataset;
[0079] Secondly, a triplet dataset containing input description text, output physical texture image and reward is collected; the output physical texture image can be obtained through 3D scanning, and the reward is the user's evaluation and scoring of the generated output result;
[0080] The model is then fine-tuned using the Proximal Policy Optimization (PPO) algorithm using this new dataset;
[0081] Finally, we repeatedly collect feedback and refine the model through reinforcement learning.
[0082] As an improved embodiment, in step S34, the method for updating the texture pixel values of the overlapping part according to the joint distribution of each overlapping texture pixel is as follows:
[0083] Using the UV mapping matrix, the texture image is reversely projected into the texture space to obtain texture pixels with repeated positions;
[0084] Then, in the image space, the effect of texture mapping is evaluated by calculating the negative Jacobian value of each repeated position texture pixel under the corresponding UV mapping; the higher the value, the better the adaptability of the position to the camera perspective; the texture pixel with the highest negative Jacobian value is selected as the texture pixel of the repeated position. The image space is the pixel space of the original image, in which each pixel has its specific coordinate position and pixel value.
[0085] As a specific embodiment, step S4 includes the following sub-steps:
[0086] S41, using the specific digital texture obtained in S3 and its UV mapping relationship with the mesh model to convert the texture of the surface of the object to be sprayed into a two-dimensional image, then performing contour detection and color detection on the two-dimensional image, and arranging the colors in order from large to small according to their proportion as the order of spraying the colors;
[0087] S42, using the optimal path planning algorithm to plan the spraying path of each contour line according to the UV mapping relationship of each contour and the corresponding relationship between each point of the virtual digital model and the actual model of the physical world, and then planning the spraying order of each color block according to each contour block and color.
[0088] As an improved embodiment, the step S41 further includes: using an edge detection algorithm to detect the two-dimensional texture image, and then using a contour detection algorithm to accurately point-spray each color block according to the correspondence between the physical world and the virtual world.
[0089] As an improved embodiment, the optimal path planning algorithm is a general algorithm, and the optimal path is found by the algorithm, such as algorithm.
[0090] As a specific embodiment, step S5 includes the following sub-steps:
[0091] First, the objects to be sprayed are placed strictly according to the position of the 3D model;
[0092] Secondly, the robot arm controls the spray pump to move 360 degrees around the object to be sprayed according to the planned contour spray path to complete the drawing of the contour line;
[0093] Then, the robot arm controls different color spray pumps according to the color spraying sequence to spray the corresponding colors on each contour enclosed block until all the spraying is completed.
[0094] Example 2
[0095] The present invention realizes high-quality, personalized digital texture spraying of three-dimensional objects by combining the generative large model with three-dimensional object reconstruction, path planning and other technologies.
[0096] like Figure 2 As shown, a three-dimensional paint spraying system based on generative large model texture generation is used to implement the three-dimensional paint spraying method based on generative large model texture generation as described in Example 1, comprising:
[0097] A turntable 2, for placing an object 7 to be sprayed;
[0098] A working platform 3 with a slide rail 31 is arranged around the turntable 2;
[0099] A mechanical arm 5 is arranged on the slide rail 31;
[0100] A spray pump 6 is arranged on the gripper of the mechanical arm 5;
[0101] RGB-D camera 1, arranged outside the slide rail;
[0102] and a user operating platform 4 for data processing and component control.
[0103] As a specific embodiment, the robot arm 5 can rotate 360 degrees around the object to be sprayed along the slide rail.
[0104] As a specific embodiment, the spray pump 6 sprays paints of multiple colors, and the robot arm 5 sprays each color block in sequence according to the spray color sequence after controlling the spraying of the texture profile.
[0105] As a specific embodiment, the RGB-D camera 1 has RGB (color image) and depth (distance information) capture capabilities, and is used in conjunction with an automated rotating turntable to collect visual data of an object from multiple perspectives to generate a high-quality three-dimensional point cloud model of the target object.
[0106] As a specific embodiment, the spray pump 6 is connected to a paint box, the paint box is loaded with CMKY paint, and is connected to the spray heads through a feed pipe.
[0107] The above description is only a preferred specific implementation manner of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention should be included in the scope of protection of the invention.
Claims
1. A three-dimensional paint spraying method based on generative large model texture generation, characterized in that: The following steps are involved: S1, collects multi-view image data through a camera; S2, processing the multi-view image data collected by the camera to obtain a three-dimensional point cloud model and the coordinate value of each point corresponding to the physical world, and then obtaining a mesh model of the object to be sprayed through three-dimensional reconstruction; S3, combining the mesh model, generating a specific digital texture and a UV mapping relationship between the digital texture and the mesh model according to user requirements, including the following sub-steps: S31, initializing the input mesh model using random texture; S32, using the posture positions of the camera and the object to be sprayed in the three-dimensional reconstruction obtained in S2, by aligning the coordinate systems of the camera in the physical world and the digital world, converting the rotation representation and translation representation of the camera in the physical world, so as to obtain the 2D texture image under each camera perspective in the digital world and the UV mapping relationship between the 2D texture image and the corresponding part of the mesh model; S33, inputting the 2D texture image into the stable diffusion model, and converting it into a noisy latent space image through an encoder in the diffusion model variational autoencoder; S34, inputting the text description or picture provided by the user and the depth information of each view into the Unet model as conditions to guide the denoising process; In the sampler of the Unet model, the noisy latent space image is iteratively denoised, and the texture images of each view generated are back-projected into the texture space after each iteration; the texture pixel values of the overlapping parts are updated according to the joint distribution of each overlapping texture pixel to ensure the consistency of the texture; thus, a set of 3D consistent latent images and latent texture maps are obtained; S35, decoding the latent image through latent texture aggregation and a decoder in the diffusion model variational autoencoder, and using the mapping relationship between the latent image and the latent texture mapping to generate a user-customized specific digital texture and its UV mapping relationship with the mesh model; S4, texture spraying path planning, includes the following sub-steps: S41, using the specific digital texture obtained in S3 and its UV mapping relationship with the grid model, converting the digital texture of the surface of the object to be sprayed into a two-dimensional image, then performing contour detection and color detection on the two-dimensional image, and arranging the colors in order from large to small according to their proportions as the order of spraying the colors; S42, according to the UV mapping relationship of each contour and the correspondence between each point of the virtual digital model and the actual model of the physical world, the spraying path of each contour line is planned using the optimal path planning algorithm, and then the spraying order of each color block is planned according to each contour block and color; S5, texture spray.
2. The three-dimensional paint spraying method based on generative large model texture generation according to claim 1 is characterized in that: Step S1 includes the following steps: starting the turntable, and the RGB-D camera regularly collects the RGB image and depth image of the object to be sprayed to obtain multi-view image data of the object to be sprayed.
3. The three-dimensional paint spraying method based on generative large model texture generation according to claim 1 is characterized in that: Step S2 includes the following steps: Performing data preprocessing on the multi-view image data to obtain preprocessed image data; Perform point cloud stitching on the pre-processed image data to obtain a three-dimensional point cloud model and the coordinate value of each point corresponding to the physical world; The Poisson surface reconstruction algorithm is used on the three-dimensional point cloud model to obtain the mesh model of the object to be sprayed.
4. The three-dimensional paint spraying method based on generative large model texture generation according to claim 3 is characterized in that: In step S2, the preprocessing includes the following steps: (1) Through filtering: Set the threshold range on the x, y, and z axes respectively, filter out points that are not within the specified range, and retain the point cloud of the model on the turntable; (2) Statistical filtering: Compare the statistical properties of each point with those in its domain and filter or repair outliers.
5. The three-dimensional paint spraying method based on generative large model texture generation according to claim 1, characterized in that: In step S33, the stable diffusion model adopts the architecture of the open source model Stable Diffusion2.0; after training on the digital world base, the model is combined with the actual physical texture after spraying; the model is fine-tuned by applying a reinforcement learning algorithm based on human feedback to achieve realistic texture map generation.
6. A three-dimensional paint spraying system based on generative large model texture generation, characterized in that: A three-dimensional paint spraying method based on generative large model texture generation as described in any one of claims 1 to 5, comprising: A turntable for placing the object to be sprayed; A working platform with slide rails is set around the turntable; A mechanical arm is arranged on the slide rail; A spray pump is arranged on the gripper of the robot arm; RGB-D camera, installed on the outside of the slide rail; and a user operating platform for data processing and component control.
7. The three-dimensional paint spraying system based on generative large model texture generation according to claim 6 is characterized in that: The mechanical arm can rotate 360 degrees around the object to be sprayed along the slide rail.
8. The three-dimensional paint spraying system based on generative large model texture generation according to claim 6 is characterized in that: The spray pump sprays paints of multiple colors, and the robot arm sprays each color block in sequence according to the spray color sequence after controlling the spraying of the texture outline.
Citation Information
Patent Citations
Method for preparing stainless steel biological porous implant material by selective laser sintering
CN102634687A
High-strength plate laser heating processing method for thermal forming
CN103551438A
