Three-dimensional modeling system and method based on hand-drawn sketch, intelligent association modeling method, sketch model editing method, and related device

Through a three-dimensional modeling system based on hand-drawn sketches, using technologies such as multi-layer perceptrons and convolutional neural networks, it solves the problems of difficulty in use and insufficient customization by novice users in the existing technology, and achieves fast, realistic and creative 3D model generation.

WO2024222821A1PCT designated stage expired Publication Date: 2024-10-31MOXIN (HUZHOU) TECH CO LTD

Patent Information

Application Number
PCT/CN2024/089911
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2024-04-25
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing 3D modeling methods are not friendly to novice users, require precise line drawings of multiple views or complex workflows, and lack customization and flexibility, making it difficult to meet the simple and fast modeling needs of mass users.

Method used

A three-dimensional modeling system based on hand-drawn sketches is used to convert the hand-drawn sketches into a three-dimensional model through the conversion unit. The rendering unit represents the three-dimensional model in two-dimensional space. The constraint unit includes a perspective prediction module, a view perception module, an outline enhancement module, a symmetry module and The projective symmetry module combines multi-layer perceptrons and convolutional neural networks to optimize the generation of 3D models.

Benefits of technology

It realizes the rapid and simple generation of 3D models, improves the realism and structure perception of the model, reduces the impact of sparseness and fuzziness of hand-drawn sketches, adapts to the styles of different creators, and provides higher cross-domain generalization capabilities and Creative.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089911_31102024_PF_FP_ABST
    Figure CN2024089911_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of computers. Provided are a three-dimensional modeling system and method based on a hand-drawn sketch, an intelligent association modeling method, a sketch model editing method, and a related device. The system comprises: a conversion unit, which converts a hand-drawn sketch into a three-dimensional model; a rendering unit, which is used for rendering and converting a two-dimensional projection of the three-dimensional model, and representing the three-dimensional model in a two-dimensional space; and a constraint unit, which constrains the hand-drawn sketch and / or the converted three-dimensional model and / or the two-dimensional projection of the three-dimensional model. In the present invention, a hand-drawn sketch is converted into a three-dimensional model, such that the establishment of the three-dimensional model is easier and faster, and the three-dimensional model, which has higher fidelity, is generated in terms of effectiveness; and the problem of inaccurate generation of the three-dimensional model due to sparsity, abstraction and ambiguity of the hand-drawn sketch is alleviated by means of visual-angle constraint on the hand-drawn sketch, symmetry constraint on the three-dimensional model and / or symmetry constraint on a two-dimensional projection of the three-dimensional model, and enhancement of the silhouette of the three-dimensional model.
Need to check novelty before this filing date? Find Prior Art

Description

A three-dimensional modeling system and method based on hand-drawn sketches, an intelligent associative modeling method, a sketch model editing method and related equipment Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a three-dimensional modeling system and method based on hand-drawn sketches, an intelligent associative modeling method, a sketch model editing method and related equipment. Background Art

[0002] The rapid development of portable displays and AR / VR has created a huge demand for 3D content. Computer-aided design (CAD) methods require users to master complex CAD software commands and be able to parse shapes into sequential commands, which limits its application among professional users. These limitations drive the demand for alternative methods that can open the door to 3D modeling for the public. Sketch-based 3D modeling can be a potential solution because sketching is one of the most natural ways for us humans to express ideas. Most existing works either require precise line drawings from multiple views or apply step-by-step workflows with required strategic knowledge, which is not friendly to novice users. Currently, a retrieval-based method is proposed from existing models, but its method lacks customization and is not flexible enough. Therefore, it is necessary for those skilled in the art to design a simple and fast modeling method.

[0003] Summary of the Invention

[0004] In order to solve the above problems, the present invention provides the following technical solutions:

[0005] The present invention provides a three-dimensional modeling system based on hand-drawn sketches, comprising:

[0006] Conversion unit, which converts hand-drawn sketches into three-dimensional models;

[0007] A rendering unit, used to render and transform the two-dimensional projection of the three-dimensional model, and represent the three-dimensional model in a two-dimensional space;

[0008] A constraint unit constrains the hand-drawn sketch and / or the converted 3D model and / or the 2D projection of the 3D model.

[0009] Furthermore, the constraint unit includes a perspective prediction module that generates an estimated perspective for constraining the hand-drawn sketch. The perspective prediction module includes a multi-layer perceptron or multi-layer convolution that learns through a series of labeled sketches to obtain the ability to output a perspective through an input sketch.

[0010] Furthermore, the constraint unit also includes a view perception module for constraining the viewing angle of the hand-drawn sketch, and the view perception module includes a multi-layer perceptron.

[0011] Furthermore, the constraint unit includes a contour enhancement module for constraining the contour of the 3D model to improve the structural perception of the 3D model;

[0012] The outline enhancement module includes a position-aware attention module and a post-processing module.

[0013] Furthermore, the constraint unit includes a three-dimensional model symmetry module, which is used to flip the three-dimensional model after sampling at any viewing angle, and then optimize the three-dimensional model through a loss function.

[0014] Furthermore, the constraint unit includes a projection symmetry module, which flips the three-dimensional model after sampling the projection at any viewing angle, and then optimizes the three-dimensional model through a loss function.

[0015] Furthermore, the conversion unit includes an encoding module and a decoding module;

[0016] The encoding module includes a multi-layer convolutional neural network that generates a latent code from the hand-drawn sketch, wherein the latent code is a feature vector in a high-dimensional space; the hand-drawn sketch can be an image in RGB format or a vector representation; the decoding module includes a multi-layer convolutional neural network that decodes the latent code into a three-dimensional model;

[0017] The conversion unit includes a transformer-structured neural network that converts the hand-drawn sketch into a plurality of tokens and then into a three-dimensional model. Furthermore, the hand-drawn sketch has a perspective constraint, where the hand-drawn sketch perspective is set to a default perspective, a perspective predicted by a perspective prediction module, or a perspective directly input by a human.

[0018] Furthermore, the rendering unit includes a rendering module and a comparison module;

[0019] The rendering module includes a renderer for rendering a two-dimensional projection of the transformed three-dimensional model to represent the three-dimensional model in a two-dimensional space;

[0020] The comparison module includes a similarity comparator, which compares the two-dimensional projection and the hand-drawn sketch, calculates the similarity, and uses the similarity to adjust the parameters in the conversion unit.

[0021] Furthermore, the 3D modeling system further includes a shape identification module, which calculates the realism of the generated 3D model through the shape identification module, forcing the encoding module and the decoding module to generate a more realistic 3D model. The shape identification module includes a discriminator, which takes a set of projections of the 3D model as input and outputs the realism of the model. The obtained realism is added to a loss function and optimized using an optimizer, thereby forcing the encoding module and the decoding module to generate a more realistic 3D model.

[0022] The set of projections of the three-dimensional model includes a projection based on a hand-drawn sketch perspective and at least one projection of an estimated perspective output by a perspective prediction module.

[0023] Furthermore, the 3D modeling system further includes a structure perception module, which first captures the structure perception features of the 3D model through the structure perception module, and then enhances the structure perception of the 3D model using the contour enhancement module;

[0024] The specific implementation process of the structure perception module is as follows:

[0025] Input is the camera pose distribution p ξ Randomly sample N camera poses ξ 1...N , and use different renderers to render the outline S of the projection corresponding to the 3D model generated based on the hand-drawn sketch perspective 1...N And rendering the outline S of the corresponding projection of the 3D model generated based on the estimated view output by a view prediction module r {1...N}, so that the geometric structure of the object under the cross-view outline can be known when generating the 3D object;

[0026] Among them, the camera pose distribution p ξ It can be given manually, such as a uniform distribution or a Gaussian distribution near the front of the model;

[0027] Or by collecting a hand-drawn dataset and then counting the distribution of different poses.

[0028] Furthermore, the 3D modeling system also includes a domain adaptation module for adapting to domain differences from different creators, synthetic and real datasets, including a domain discriminator with a multi-layer convolutional structure, specifically:

[0029] [Corrected 24.06.2024 according to Rule 26] The high-dimensional feature vectors obtained by the encoder and the high-dimensional feature vectors in the training set for the hand-drawn sketches created by the same creator or the same group of creators are then input into the domain discriminator to obtain the sketch features D after the domain adaptation module is adapted. d And calculate its adversarial loss to optimize and avoid the deterioration of the results caused by domain differences. The specific formula of adversarial loss is: L dd =-E Ss [log(D d (S s ))]-E Sh [1-log(D d (S h ))]

[0030] Among them, S s and S hThese are user-generated hand-drawn sketches and sketches from real datasets;

[0031] E Ss Training data, specifically hand-drawn sketches of corresponding 3D models;

[0032] E Sh The training data is hand-drawn sketches without corresponding 3D models.

[0033] The present invention also provides a three-dimensional modeling method based on a hand-drawn sketch, and the three-dimensional modeling method includes: converting the hand-drawn sketch into a three-dimensional model.

[0034] Furthermore, the hand-drawn sketch has a perspective constraint, and the hand-drawn sketch perspective is to set the hand-drawn sketch perspective to the normal perspective by default, or the perspective predicted by the perspective prediction module, or the perspective predicted by the view perception module.

[0035] Furthermore, the specific steps of converting the hand-drawn sketch into a three-dimensional model are:

[0036] (1) Convert hand-drawn sketches into 3D models;

[0037] (2) A viewpoint of the 3D model is generated into a 2D projection through a rendering module, and the 2D projection is compared with the sketch to calculate the similarity. The similarity is used to adjust the parameters of each unit of the encoder and decoder; the viewpoint is the default viewpoint of the hand-drawn sketch or the estimated viewpoint output by a viewpoint prediction module;

[0038] (3) Constraining the three-dimensional model and / or constraining the two-dimensional projection.

[0039] Furthermore, before executing step (1), the hand-drawn sketch is subjected to perspective constraints. The constraint on the perspective of the hand-drawn sketch is to set the perspective of the hand-drawn sketch to the normal perspective by default, or the perspective predicted by the perspective prediction module, or the perspective predicted by the view perception module.

[0040] Furthermore, the specific steps of converting the hand-drawn sketch into a three-dimensional model are:

[0041] (11) The hand-drawn sketch is output through the encoder to generate a latent code, which is an A-dimensional feature vector;

[0042] Among them, the hand-drawn sketch I∈{0,1} W×H , where there is a marked pixel I[i, j] = 0, and an unmarked pixel I[i, j] = 1; normally, black strokes are drawn on a white background, but white strokes on a black background can better train the network, so when there is a marked pixel I[i, j] = 1, the unmarked pixel I[i, j] = 1;

[0043] (12) The implicit code generates a set of corner point displacement value arrays through the decoder, and uses the values ​​of the array to displace a three-dimensional model template to obtain a three-dimensional model.

[0044] Furthermore, the three-dimensional modeling method further includes:

[0045] The hand-drawn sketch generates a latent code through the decoder, and also generates a perspective code. This perspective code is input into the perspective prediction module to output an estimated perspective (including roll and pitch perspective); the perspective code is an X-dimensional vector.

[0046] Furthermore, the three-dimensional modeling method further includes:

[0047] Optimize the shape of the 3D model, specifically:

[0048] By calculating the realism of the 3D model, adding the obtained realism to the loss function, and optimizing it with an optimizer, the encoder and decoder are forced to generate more realistic 3D models.

[0049] Specifically, the generated 3D model is used as a fake input, and the 3D model corresponding to the sketch in the training data is used as the real input; alternatively, the generated 3D model is used as the real input, the estimated view is passed through the encoder to generate a view encoding, and the 3D model generated by the decoder is used as the fake input, and the shape of the 3D model is optimized through adversarial optimization.

[0050] Or directly move the corner displacement value of the model after calculating the realism.

[0051] Furthermore, the three-dimensional modeling method further includes constraining the symmetry of the three-dimensional model, specifically:

[0052] The generated 3D model is flipped after sampling at any perspective, and then the shape of the 3D model is optimized. The optimization can be performed by adding the obtained realism to the loss function and using an optimizer to force the encoder and decoder to generate a more realistic 3D model. The displacement value of the model's corners can also be directly moved after calculating the realism.

[0053] The process of optimization through loss function is:

[0054] The flipped expression is:

[0055] Where n is the unit normal vector;

[0056] [Corrected 05.07.2024 according to Article 91] The following metrics are then calculated as part of the loss function:

[0057] Among them, L Vsym A symmetric loss function representing the flipping of a 3D model;

[0058] N represents the total number of vertices of the original three-dimensional model;

[0059] v i is the i-th vertex of the 3D model generated by the hand-drawn sketch; σ i is the symmetry confidence of the model after the ith vertex performs symmetry operation on the 3D model generated by the hand-drawn sketch;

[0060] A vertex set representing a three-dimensional model generated by a hand-drawn sketch;

[0061] v j represents the j-th vertex of the 3D model generated by the hand-drawn sketch;

[0062] Indicates the symmetry confidence of the model after the symmetry operation is performed on the model generated by the hand-drawn sketch;

[0063] λ SymB Indicates manually set hyperparameters, which can also be left unset.

[0064] Furthermore, the three-dimensional modeling method further includes constraining the symmetry of the two-dimensional projection of the three-dimensional model, specifically:

[0065] The generated 3D model is flipped after being sampled at any viewing angle, and then the shape of the 3D model is optimized. The optimization can be performed by adding the obtained realism to the loss function and using an optimizer to force the encoder and decoder to generate a more realistic 3D model. The displacement value of the model's corners can also be directly moved after calculating the realism.

[0066] The process of optimization through loss function is:

[0067] The flipped expression is:

[0068] [Corrected 24.06.2024 according to Rule 26] Given m perspectives P Isym ={p1,...,p m}, and then calculate the following metrics as part of the loss function:

[0069] Among them, L Isym represents the symmetric loss function for projection flipping;

[0070] γ() i,k and λ SymB It is a manually set hyperparameter, which can also be left unset;

[0071] j represents the horizontal coordinate of the jth picture; k represents the vertical coordinate of the kth picture;

[0072] represents the pth projection generated by the estimated view angle i The rendering image is obtained after the camera is symmetrically flipped for each pixel.

[0073] Represents the rendering of the projection generated by the estimated view angle, with p i pixels;

[0074] σ i,k is the symmetry confidence of the model after the i-th vertex performs symmetry operation on the model generated by the hand-drawn sketch;

[0075] Indicates the symmetry confidence of the model generated by the hand-drawn sketch after the symmetry operation is performed.

[0076] The present invention also provides a computer device, comprising an input device, a processing unit and a storage medium, and the computer device can be used to implement the above method.

[0077] The present invention also provides a parts processing device, comprising a motion component, an actuator, and a controller; the controller receives a hand-drawn sketch and executes the above method to convert a 3D model into machine-readable instructions; the combination of the motion component and the actuator is a 3D printer or a CNC engraving machine. The present invention also provides a method for intelligent associative modeling based on hand-drawn sketches, comprising:

[0078] In the first step, the user draws a hand-drawn sketch in the drawing box, and the algorithm converts the hand-drawn sketch into a two-dimensional realistic image;

[0079] In the second step, the user selects a suitable 2D realistic image;

[0080] In the third step, the algorithm performs three-dimensional modeling based on the two-dimensional realistic image to obtain a three-dimensional model.

[0081] Furthermore, users can select the model category and the style description of the 2D realistic image. Based on the description words, the algorithm converts the hand-drawn sketch into multiple candidates for the 2D realistic image that better meets the user's expectations.

[0082] During the user's sketching process, each stroke update corresponds to the synchronous update of the 2D realistic image;

[0083] During the user's hand-drawn sketch, there is an average sketch model with a semi-transparent reference model in the background;

[0084] As the user sketches, the model predicts candidates for the next stroke.

[0085] Furthermore, the specific process of performing 3D modeling based on the 2D simulated image to obtain the 3D model is as follows:

[0086] Step 1: The user inputs information I in one or more modalities. The modal information can be text, audio, color or grayscale images, thermal images, depth maps, normal maps, emotion vectors, 2D sketches, 3D sketches, contour extraction, odors, EEG, point clouds, multi-view photos, video clips, key pairs or codebooks, physical readings, wealth statistics, and the like. Modalities can also be converted between each other.

[0087] In the second step, the modal information I in the first step is used to generate a three-dimensional model using a neural network trained by a three-dimensional model generation network training method to obtain one or more three-dimensional models.

[0088] The third step is an optional step in which the user manually edits the 3D model generated in the second step. The manual editing includes selecting some components and performing operations such as scaling, displacement, and coloring.

[0089] The fourth step is an optional step, which is to stylize or color the three-dimensional model obtained in the third or second step according to the modal information I2 provided by the user. The modal information I2 can be the same text information as the modal information I, audio information, color or grayscale image information, thermal imaging information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-perspective photo, video clip, key pair or code book, physical reading, wealth number, etc., or it can be different text information, audio information, color or grayscale image information, thermal imaging information, depth map, normal map, contour projection, three-dimensional sketch, three-dimensional sketch, point cloud information, multi-perspective stereo photos taken by multiple cameras around the object, video clips, etc. One or more.

[0090] The fifth step is an optional step. Based on the three-dimensional model generated in the second, third, or fourth step and the user's modal information I or I2, the algorithm determines different areas or specific corner points of the model for scaling, displacement modification, and other operations.

[0091] Furthermore, the specific process of performing 3D modeling based on the 2D simulated image to obtain the 3D model is as follows:

[0092] Step 1: The user inputs information I in one or more modalities, where the information in the modalities may be one or more of text information, audio information, color or grayscale image information, thermal image information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-view photos, video clips, key pairs or code books, physical readings, wealth numbers, etc.;

[0093] Step 2: The information I is converted into one or more corresponding matching images through an algorithm and presented to the user on the interactive interface. The image can be a color image, an outline image, a black and white projection image, or an outline or sketch.

[0094] In the third step, the user clicks on the picture to confirm and obtains a picture that the user is satisfied with. Alternatively, if the user is not satisfied, the user returns to the second or first step. After obtaining a satisfactory picture, the user can choose to enter the fourth step or directly enter the fifth step.

[0095] In the fourth step, the user edits the selected image. The editing can be performed by image editing software, such as erasing, enlarging, or deforming some elements. The image editing can also be guided by another information J. This step is optional.

[0096] In the fifth step, an algorithm is used to generate a 3D model from the image obtained in the fourth step. This 3D model generation method can be a method that uses a 3D model generation network. Alternatively, it can be a retrieval-based method that encodes modal information I using keywords or an encoder, compares it with vectors in a feature vector library, and selects an appropriate model for presentation. The model presented to the consumer can also be one or more.

[0097] Furthermore, the specific process of performing 3D modeling based on the 2D simulated image to obtain the 3D model is as follows:

[0098] Step 1: The user inputs information I in one or more modalities, where the information in the modalities may be one or more of text information, audio information, color or grayscale image information, thermal imaging information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-perspective photo, video clip, key pair or code book, physical reading, wealth number, etc.

[0099] Step 2: Convert the information I into one or more corresponding matching audios through an algorithm and present them to the user on the interactive interface.

[0100] In the third step, the user confirms the audio by clicking on it or speaking a voice response. Alternatively, if the user is dissatisfied, they will return to step 2 or 1. Once satisfied with the audio, the user can proceed to step 4 or directly to step 5.

[0101] The fourth step is for the user to edit the confirmed audio, such as adding additional descriptions. This step is optional.

[0102] In the fifth step, an algorithm is used to generate a three-dimensional model of the audio obtained in the fourth or third step. This three-dimensional model generation method can be a method that uses a three-dimensional model generation network; it can also be a retrieval-based method that encodes certain modal information I using keywords or an encoder, compares it with vectors in a feature vector library, and selects an appropriate model for presentation. The model presented to the consumer can also be one or more.

[0103] The present invention also provides a method for editing a sketch model based on category priors, comprising:

[0104] In the first step, a first three-dimensional model or a first component to be edited is given, which may be a three-dimensional model generated as described above in the claim.

[0105] The second step is to parse the three-dimensional model to obtain labels. The parsing can be to use a pre-trained neural network to perform text labeling on the model, or to convert the three-dimensional model into a vector in a latent space.

[0106] The third step is to obtain the candidate items for editing parts based on the analysis of the 3D model in the second step.

[0107] The candidate items are candidate item associations based on text labels, such as "rabbit" can be associated with "ears", or the candidate items are pre-trained latent space-latent space transformations

[0108] In the fourth step, a suitable neural network is selected based on the candidate items, and a second three-dimensional model or a second component corresponding to the sketch input is output;

[0109] Alternatively, in the fourth step, the corresponding second three-dimensional model or second component is outputted through the method described in the claims;

[0110] In the fifth step, a Boolean operation is performed on the three-dimensional model obtained in the fourth step and the three-dimensional model obtained in the first step. The pose of the second component relative to the first three-dimensional model is based on the connection points specified by the user.

[0111] or,

[0112] Use a pre-trained model fusion network to fuse the two 3D models at the appropriate pose. In step 6, repeat steps 1-5 to achieve editing of any model.

[0113] The present invention also provides a parts processing method, which is applicable to the above-mentioned processing device and comprises the following steps:

[0114] The first step is to get a sketch using an input medium (such as a tablet) or by hand-drawing and then taking a photo;

[0115] The second step is to convert the sketch into a three-dimensional model;

[0116] The second step is to input the generated 3D model into the parser and convert it into machine-readable instructions;

[0117] In the third step, the processing device performs processing according to machine-readable instructions;

[0118] In addition, the generated 3D model can be edited and modified before the second step.

[0119] Furthermore, the steps to obtain a sketch by taking a photo are:

[0120] First, the photos were smoothed using a Gaussian filter to reduce noise and improve image quality;

[0121] Then, calculate the gradient and gradient direction of the image;

[0122] Next, the image is processed with non-maximum suppression (NMS) to eliminate non-edge pixels and retain only some thin lines as candidate strokes;

[0123] Finally, the edge detection process is completed by applying high and low thresholds and connecting the edges to obtain a user-drawn sketch.

[0124] Furthermore, the step of obtaining a sketch by taking a photo is as follows: the photo is fed into a pre-trained image-to-sketch neural network to obtain a hand-drawn sketch.

[0125] Furthermore, an angle is selected or input when sketching, or the angle predicted by the viewing angle is submitted to the user for confirmation.

[0126] Furthermore, after the sketch is drawn, a pre-trained sketch-text retrieval algorithm is used to output the text prompt corresponding to the sketch for the user's reference.

[0127] Furthermore, after drawing the sketch, it is normalized to a fixed size and placed at the center of the image.

[0128] Furthermore, the thickness of the lines is normalized after obtaining the sketch.

[0129] Furthermore, after obtaining the sketch, converting it into sequence information has the following beneficial effects:

[0130] (1) The present invention converts hand-drawn sketches into three-dimensional models, making the creation of three-dimensional models easier and faster, and is effective in generating three-dimensional models with higher fidelity. Due to the sparsity and ambiguity of hand-drawn sketches, the present invention reduces the problem of inaccurate three-dimensional model generation caused by the sparsity, abstractness and ambiguity of hand-drawn sketches by enhancing the perspective constraints of the hand-drawn sketches and / or the symmetry constraints of the three-dimensional model and / or the symmetry constraints of the two-dimensional projection of the three-dimensional model and / or the contour of the three-dimensional model;

[0131] (2) The view prediction module in our invention can explicitly learn view information and use it to adjust the generation process to resolve ambiguity;

[0132] (3) The contour enhancement module in the present invention performs random pose sampling to force learning of realistic and high-fidelity 3D shapes independent of viewpoint;

[0133] (4) The shape identification module in this invention introduces an adversarial training scheme to understand the geometric structure of the object through cross-view projection of the 3D model. The discriminator alleviates the uncertainty caused by sparsity through more visual clues from different viewpoints, resulting in better optimization results.

[0134] (5) Our method is aware of the geometric structure of objects in cross-view projections when generating 3D objects, and the discriminator helps address the challenges of sketch scarcity by providing more visual cues.

[0135] (6) This method pre-selects other categories to be associated with the existing model, so it can achieve good cross-domain generalization capabilities during editing and produce very creative creative model content that does not exist in normal chairs. BRIEF DESCRIPTION OF THE DRAWINGS

[0136] Figure 1 is a 3D modeling neural network pipeline based on sketch views and structures in Example 1.

[0137] FIG2 is a three-dimensional modeling method of Example 2.

[0138] FIG3 is a three-dimensional modeling method based on viewing angle constraint in Example 2.

[0139] FIG4 is the test data result in Example 2.

[0140] Figure 5. Comparison of 3D models generated using various methods.

[0141] FIG6 is a qualitative evaluation table of FIG5.

[0142] FIG7 is a three-dimensional diagram of the existing embodiment 4.

[0143] FIG8 is a three-dimensional diagram obtained by association with FIG7 .

[0144] Among them, the sketch explaining the Input Sketch in Figure 1 is Encoder E, the encoder structure, Decoder D, the decoder structure, the Rasterization structure, the Discriminator: the discriminator structure Real / Fake: whether the output three-dimensional model is real or not, Predicted View: the predicted perspective; Aribitrary View: any perspective input Ev and Dv and Predicted View: the perspective perception module; the three-dimensional model generated by Mesh M, Silhouette S: multi-perspective projection. DETAILED DESCRIPTION

[0145] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be pointed out that the embodiments are only specific explanations of the invention and should not be regarded as limitations of the invention. The purpose of the embodiments is to enable those skilled in the art to better understand and reproduce the technical solutions of the present invention. The scope of protection of the present invention shall still be based on the scope defined by the claims.

[0146] As shown in FIG1 , the present invention provides a three-dimensional modeling system based on hand-drawn sketches, comprising:

[0147] A conversion unit converts the hand-drawn sketch into a three-dimensional model, wherein the hand-drawn sketch can be an image in RGB format or a vector image represented by a vector; the conversion unit includes an encoding module and a decoding module;

[0148] The encoding module includes a multi-layer convolutional neural network that generates a latent code from the hand-drawn sketch, and the latent code is a feature vector in a high-dimensional space;

[0149] The decoding module consists of a multi-layer convolutional neural network that decodes the latent code into a 3D model.

[0150] The specific implementation process is as follows: input a hand-drawn sketch, input each pixel value matrix of the hand-drawn sketch into a multi-layer convolution structure, and output a latent code and a perspective code;

[0151] The implicit code generates a set of corner point displacement value arrays through the decoder, and uses the values ​​of the array to displace a three-dimensional model template to obtain a closed three-dimensional model; preferably, the template three-dimensional model is a sphere or a three-dimensional model retrieved from the library that is closest to the input sketch.

[0152] Or the conversion unit includes a neural network with a transformer structure, which converts the hand-drawn sketch into several tokens and then into a three-dimensional model.

[0153] The view encoding is input into the view prediction module to output an estimated view. The view encoding is an X-dimensional vector, including the roll and pitch view angles.

[0154] A rendering unit, used to render and transform the two-dimensional projection of the three-dimensional model, and represent the three-dimensional model in a two-dimensional space;

[0155] In some preferred embodiments, the three-dimensional modeling system further includes a rendering module and a comparison module;

[0156] The rendering module includes a renderer for rendering and transforming the two-dimensional projection of the three-dimensional model to represent the three-dimensional model in a two-dimensional space; preferably, the renderer can be a SoftRas renderer or other differentiable renderers.

[0157] A comparison module includes a similarity comparator, which compares the two-dimensional projection and the hand-drawn sketch, calculates the similarity, and uses the similarity to adjust the parameters in the conversion unit (encoder and decoder);

[0158] More specifically, adjusting parameters is a training process of a neural network, which can be implemented by an optimizer, which can be an Adam optimizer or an SGD optimizer, and adjusting the network structure by comparing loss indicators to achieve the minimum loss indicator.

[0159] [Corrected 24.06.2024 according to Rule 26] During the training process, the resolution of the sketch is continuously increased as the number of training iterations increases, that is, the multi-range mIoU loss L is used sp , measuring the similarity between rendered contours and ground-truth contours, multi-range mIoU loss L sp The calculation formula is:

[0160] [Corrected 24.06.2024 according to Rule 26] Where, N means a total of N ranges; λ si represents manually tuned hyperparameters; represents the i-th IoU loss;

[0161] [Corrected 24.06.2024 in accordance with Article 26]

[0162] In addition, flatten loss and Laplacian smooth loss are introduced to make the three-dimensional model more realistic and have higher visual quality.

[0163] The constraint unit constrains the hand-drawn sketch and / or the converted three-dimensional model and / or the two-dimensional projection of the three-dimensional model. It can perform perspective constraints on the hand-drawn sketch alone or further constrain the three-dimensional model and two-dimensional projection based on the perspective constraints.

[0164] The perspective constrained by the hand-drawn sketch can be the default perspective of the hand-drawn sketch as the positive perspective, or the perspective predicted by the perspective prediction module, or the perspective directly input by humans.

[0165] Among them, the perspective prediction module generates an estimated perspective for constraining the hand-drawn sketch. The perspective prediction module includes a multi-layer perceptron or multi-layer convolution, which learns through a series of labeled sketches to obtain the ability to output perspective through input sketches.

[0166] The constraint unit also includes a view perception module for constraining the viewing angle of the hand-drawn sketch. The view perception module includes a multi-layer perceptron.

[0167] Constraining the three-dimensional model can be performed by a contour enhancement module, a three-dimensional model symmetry module and / or a projection symmetry module;

[0168] The contour enhancement module is used to constrain the contours of the 3D model and improve the structural perception of the 3D model. Sketch-based 3D modeling differs from traditional monocular 3D reconstruction tasks. In single-view 3D reconstruction tasks, the input image has rich texture and multifunctional features, which can predict depth information. However, in sketch-based modeling tasks, the input sketch and projected projection are single-color, so depth prediction results cannot be effectively obtained. In addition, the contour enhancement module is introduced to fully utilize the monochrome information for feature extraction. The contour enhancement module includes a position-aware attention module and a post-processing module.

[0169] The 3D model symmetry module is used to flip the 3D model after sampling at any viewing angle.

[0170] The shape of the 3D model is then optimized. This can be done by adding the obtained realism to the loss function and using an optimizer to force the encoder and decoder to generate a more realistic 3D model. The model's corner displacement values ​​can also be directly moved after calculating the realism.

[0171] The process of optimization through loss function is:

[0172] The specific process is: flip the generated 3D model after sampling at any viewing angle, and the expression after flipping is:

[0173] Where n is the unit normal vector;

[0174] [Corrected 05.07.2024 according to Article 91] The following metrics are then calculated as part of the loss function:

[0175] Among them, L VsymA symmetric loss function representing the flipping of a 3D model;

[0176] N represents the total number of vertices of the original three-dimensional model;

[0177] v i is the i-th vertex of the 3D model generated by the hand-drawn sketch; σ i is the symmetry confidence of the model after the ith vertex performs symmetry operation on the 3D model generated by the hand-drawn sketch;

[0178] A vertex set representing a three-dimensional model generated by a hand-drawn sketch;

[0179] v j represents the j-th vertex of the 3D model generated by the hand-drawn sketch;

[0180] Indicates the symmetry confidence of the model after the symmetry operation is performed on the model generated by the hand-drawn sketch;

[0181] λ SymB Indicates manually set hyperparameters, which can also be left unset.

[0182] The projection symmetry module flips the 3D model after sampling it at any viewing angle.

[0183] The shape of the 3D model is then optimized. This can be done by adding the obtained realism to the loss function and using an optimizer to force the encoder and decoder to generate a more realistic 3D model. The model's corner displacement values ​​can also be directly moved after calculating the realism.

[0184] , where the projection of the dimensional model at any viewing angle is obtained through the rendering module;

[0185] The process of optimization through the loss function is as follows: Specifically, the 3D model is flipped after being sampled at any viewing angle. The expression after flipping is:

[0186] [Corrected 24.06.2024 according to Rule 26] Given m perspectives P Isym ={p1,...,p m}, and then calculate the following metrics as part of the loss function:

[0187] Among them, L Isym Represents the symmetric loss function for flipping the projected image;

[0188] γ() i,k and λ SymB It is a manually set hyperparameter, which can also be left unset;

[0189] j represents the horizontal coordinate of the jth picture; k represents the vertical coordinate of the kth picture;

[0190] represents the pth projection generated by the estimated view angle i The rendering image is obtained after the camera is symmetrically flipped for each pixel.

[0191] Represents the rendering of the projection generated by the estimated view angle, with p i pixels;

[0192] σ i,k is the symmetry confidence of the model after the i-th vertex performs symmetry operation on the model generated by the hand-drawn sketch;

[0193] Indicates the symmetry confidence of the model generated by the hand-drawn sketch after the symmetry operation is performed.

[0194] In some preferred embodiments, the three-dimensional modeling system further comprises a shape identification module, which calculates the authenticity of the generated three-dimensional model through the shape identification module to force the encoding module and the decoding module to generate a more realistic three-dimensional model;

[0195] The shape identification module includes a discriminator, which takes a set of projections of a three-dimensional model as input and outputs the realism of the model. By adding the obtained realism to a loss function and optimizing it with an optimizer, the encoding module and the decoding module generate a more realistic three-dimensional model; the loss function can be GAN Loss.

[0196] The set of projections of the three-dimensional model includes a projection of a default orthographic perspective based on the hand-drawn sketch and at least one projection of an estimated perspective output by a perspective prediction module.

[0197] During the discriminator's adversarial shape optimization process, in addition to outputting a "true" or "false" result label or result array, the discriminator also outputs a perspective corresponding to the hand-drawn sketch (a perspective array). The perspective prediction module is used for perspective supervision, allowing the discriminator to also learn perspective information.

[0198] In some preferred embodiments, the 3D modeling system further comprises a structure perception module, which first captures the structure perception features of the 3D model through the structure perception module, and then enhances the structure perception of the 3D model using the contour enhancement module;

[0199] The specific implementation process of the structure perception module is as follows:

[0200] Input is the camera pose distribution p ξ Randomly sample N camera poses ξ 1...N, and use different renderers to render the corresponding projection outline S of the 3D model generated based on the hand-drawn sketch perspective 1...N And rendering the outline S of the corresponding projection of the 3D model generated based on the estimated view output by a view prediction module r {1...N}, so that the geometric structure of the object under the cross-view outline can be known when generating the 3D object;

[0201] Among them, the camera pose distribution p ξ It can be given manually, such as a uniform distribution or a Gaussian distribution near the front of the model;

[0202] Or by collecting a hand-drawn dataset and then counting the distribution of different poses.

[0203] In some preferred embodiments, the 3D modeling system further includes a domain adaptation module for adapting to domain differences from different creators, synthetic and real datasets, including a domain discriminator with a multi-layer convolutional structure, specifically:

[0204] [Corrected 24.06.2024 according to Rule 26] The high-dimensional feature vectors obtained by the encoder and the high-dimensional feature vectors in the training set for the hand-drawn sketches created by the same creator or the same group of creators are then input into the domain discriminator to obtain the sketch features D after the domain adaptation module is adapted. d And calculate its adversarial loss to optimize and avoid the deterioration of the results caused by domain differences. The specific formula of adversarial loss is: L dd =-E Ss [log(D d (S s ))]-E Sh [1-log(D d (S h ))]

[0205] Among them, S s and S h These are user-generated hand-drawn sketches and sketches from real datasets;

[0206] E Ss Training data, specifically hand-drawn sketches of corresponding 3D models;

[0207] E Sh The training data is hand-drawn sketches without corresponding 3D models.

[0208] The present invention converts hand-drawn sketches into three-dimensional models, making the establishment of three-dimensional models easier and faster, and is effective in generating three-dimensional models with higher fidelity. Due to the sparsity and ambiguity of hand-drawn sketches, the problem of inaccurate three-dimensional model generation caused by the sparsity, abstraction and ambiguity of hand-drawn sketches is reduced by enhancing the perspective constraints of the hand-drawn sketches and / or the symmetry constraints of the three-dimensional model and / or the symmetry constraints of the two-dimensional projection of the three-dimensional model and / or the outline of the three-dimensional model.

[0209] Example 2

[0210] As shown in FIG2-3, the present invention also provides a three-dimensional modeling method based on a hand-drawn sketch, the three-dimensional modeling method comprising:

[0211] (1) Convert hand-drawn sketches into 3D models;

[0212] (11) The hand-drawn sketch is output through the encoder to generate a latent code, which is an A-dimensional feature vector;

[0213] Among them, the hand-drawn sketch I∈{0,1} W×H , where there is a marked pixel I[i, j] = 0, and an unmarked pixel I[i, j] = 1; normally, black strokes are drawn on a white background, but white strokes on a black background can better train the network, so when there is a marked pixel I[i, j] = 0, the unmarked pixel I[i, j] = 1;

[0214] (12) The implicit code generates a set of corner point displacement value arrays through the decoder, and uses the values ​​of the array to displace a three-dimensional model template to obtain a three-dimensional model.

[0215] (2) A viewpoint of the 3D model is generated into a 2D projection through a rendering module, and the 2D projection is compared with the sketch to calculate the similarity. The similarity is used to adjust the parameters of each unit of the encoder and decoder; the viewpoint is the default viewpoint of the hand-drawn sketch or the estimated viewpoint output by a viewpoint prediction module;

[0216] (3) Constraining the three-dimensional model and / or constraining the two-dimensional projection.

[0217] Step (1) can also be to transform the hand-drawn sketch into several tokens through a neural network with a transformer structure and then convert it into a three-dimensional model.

[0218] Before executing step (1), the hand-drawn sketch is subjected to perspective constraints. The constraint on the perspective of the hand-drawn sketch is to set the perspective of the hand-drawn sketch to the normal perspective by default, or the perspective predicted by the perspective prediction module, or the perspective directly input by humans.

[0219] Furthermore, the three-dimensional modeling method further includes:

[0220] The hand-drawn sketch is decoded to generate a latent code and a view code at the same time. The view code is input into the view prediction module to output an estimated view. The view code is an X-dimensional vector that includes the roll and pitch view angles.

[0221] In some preferred embodiments, the three-dimensional modeling method further comprises:

[0222] Optimize the shape of the 3D model, specifically:

[0223] By calculating the realism of the 3D model, adding the obtained realism to the loss function, and optimizing it with an optimizer, the encoder and decoder are forced to generate more realistic 3D models.

[0224] Specifically, the generated 3D model is used as a fake input, and the 3D model corresponding to the sketch in the training data is used as the real input; alternatively, the generated 3D model is used as the real input, the estimated view is passed through the encoder to generate a view encoding, and the 3D model generated by the decoder is used as the fake input, and the shape of the 3D model is optimized through adversarial optimization.

[0225] Or directly move the corner displacement value of the model after calculating the realism.

[0226] In some preferred embodiments, the three-dimensional modeling method further includes constraining the symmetry of the three-dimensional model, specifically:

[0227] The generated 3D model is flipped after sampling at any perspective, and then the shape of the 3D model is optimized. The optimization can be performed by adding the obtained realism to the loss function and using an optimizer to force the encoder and decoder to generate a more realistic 3D model. The displacement value of the model's corners can also be directly moved after calculating the realism.

[0228] The process of optimization through the loss function is: the expression after flipping is:

[0229] Where n is the unit normal vector;

[0230] [Corrected 05.07.2024 according to Article 91] The following metrics are then calculated as part of the loss function:

[0231] Among them, L Vsym A symmetric loss function representing the flipping of a 3D model;

[0232] N represents the total number of vertices of the original three-dimensional model;

[0233] vi is the i-th vertex of the 3D model generated by the hand-drawn sketch; σ i is the symmetry confidence of the model after the ith vertex performs symmetry operation on the 3D model generated by the hand-drawn sketch;

[0234] A vertex set representing a three-dimensional model generated by a hand-drawn sketch;

[0235] v j represents the j-th vertex of the 3D model generated by the hand-drawn sketch;

[0236] Indicates the symmetry confidence of the model after the symmetry operation is performed on the model generated by the hand-drawn sketch;

[0237] λ SymB Indicates manually set hyperparameters, which can be left unset.

[0238] In some preferred embodiments, the three-dimensional modeling method further includes constraining the symmetry of the two-dimensional projection of the three-dimensional model, specifically:

[0239] The generated 3D model is flipped after being sampled at any viewing angle, and then the shape of the 3D model is optimized. The optimization can be performed by adding the obtained realism to the loss function and using an optimizer to force the encoder and decoder to generate a more realistic 3D model. The displacement value of the model's corners can also be directly moved after calculating the realism.

[0240] The process of optimization through loss function is:

[0241] The flipped expression is:

[0242] [Corrected 24.06.2024 according to Rule 26] Given m perspectives P Isym ={p1,...,p m}, and then calculate the following metrics as part of the loss function:

[0243] Among them, L Isym Represents the symmetric loss function for flipping the projected image;

[0244] γ() i,k and λ SymB It is a manually set hyperparameter, which can also be left unset;

[0245] j represents the horizontal coordinate of the jth picture; k represents the vertical coordinate of the kth picture;

[0246] represents the pth projection generated by the estimated view anglei The rendering image is obtained after the camera is symmetrically flipped for each pixel.

[0247] Represents the rendering of the projection generated by the estimated view angle, with p i pixels;

[0248] σ i,k is the symmetry confidence of the model after the i-th vertex performs symmetry operation on the model generated by the hand-drawn sketch;

[0249] Indicates the symmetry confidence of the model generated by the hand-drawn sketch after the symmetry operation is performed.

[0250] Figure 4 shows the experimental results of the present invention, demonstrating its effectiveness. Figure 5 compares 3D models generated using various methods. As can be seen from the visual comparison and Figure 5, the model obtained by the present invention outperforms the existing state-of-the-art in most categories, demonstrating the effectiveness of the method. In some categories, even without domain adaptation (DA), the present method outperforms existing methods. The introduction of DA can further improve the performance of some categories by narrowing the gap between real data and synthetic data.

[0251] Figure 6 shows a qualitative evaluation table for Figure 5. Figure 6 shows that the model obtained by our method outperforms the existing state-of-the-art in most categories, demonstrating the effectiveness of our approach. In some categories, our method outperforms existing methods even without domain adaptation (DA). The introduction of DA can further improve performance in some categories by narrowing the gap between real and synthetic data.

[0252] Example 3

[0253] This embodiment provides a method for intelligent associative modeling based on hand-drawn sketches, including:

[0254] In the first step, the user draws a hand-drawn sketch in the drawing box, and the algorithm converts the hand-drawn sketch into a two-dimensional realistic image;

[0255] In the second step, the user selects a suitable 2D realistic image;

[0256] In the third step, the algorithm performs three-dimensional modeling based on the two-dimensional realistic image to obtain a three-dimensional model.

[0257] In some preferred embodiments, the user can select a model category and a style description of a 2D realistic image, and the algorithm converts the hand-drawn sketch into multiple candidates of 2D realistic images that better meet the user's expectations based on the description words;

[0258] During the user's sketching process, each stroke update corresponds to the synchronous update of the 2D realistic image;

[0259] During the user's hand-drawn sketch, there is an average sketch model with a semi-transparent reference model in the background;

[0260] As the user sketches, the model predicts candidates for the next stroke.

[0261] In some preferred embodiments, the specific process of performing three-dimensional modeling based on the two-dimensional simulated image to obtain the three-dimensional model is as follows:

[0262] Step 1: The user inputs information I in one or more modalities. The modal information can be text, audio, color or grayscale images, thermal images, depth maps, normal maps, emotion vectors, 2D sketches, 3D sketches, contour extraction, odors, EEG, point clouds, multi-view photos, video clips, key pairs or codebooks, physical readings, wealth statistics, and the like. Modalities can also be converted between each other.

[0263] In the second step, the modal information I in the first step is used to generate a three-dimensional model using a neural network trained by a three-dimensional model generation network training method to obtain one or more three-dimensional models.

[0264] The third step is an optional step in which the user manually edits the 3D model generated in the second step. The manual editing includes selecting some components and performing operations such as scaling, displacement, and coloring.

[0265] The fourth step is an optional step, which is to stylize or color the three-dimensional model obtained in the third or second step according to the modal information I2 provided by the user. The modal information I2 can be the same text information as the modal information I, audio information, color or grayscale image information, thermal imaging information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-perspective photo, video clip, key pair or code book, physical reading, wealth number, etc., or it can be different text information, audio information, color or grayscale image information, thermal imaging information, depth map, normal map, contour projection, three-dimensional sketch, three-dimensional sketch, point cloud information, multi-perspective stereo photos taken by multiple cameras around the object, video clips, etc. One or more.

[0266] The fifth step is an optional step. Based on the three-dimensional model generated in the second, third, or fourth step and the user's modal information I or I2, the algorithm determines different areas or specific corner points of the model for scaling, displacement modification, and other operations.

[0267] In some preferred embodiments, the specific process of performing three-dimensional modeling based on the two-dimensional simulated image to obtain the three-dimensional model is as follows:

[0268] Step 1: The user inputs information I in one or more modalities, where the information in the modalities may be one or more of text information, audio information, color or grayscale image information, thermal image information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-view photos, video clips, key pairs or code books, physical readings, wealth numbers, etc.;

[0269] Step 2: The information I is converted into one or more corresponding matching images through an algorithm and presented to the user on the interactive interface. The image can be a color image, an outline image, a black and white projection image, or an outline or sketch.

[0270] In the third step, the user clicks on the picture to confirm and obtains a picture that the user is satisfied with. Alternatively, if the user is not satisfied, the user returns to the second or first step. After obtaining a satisfactory picture, the user can choose to enter the fourth step or directly enter the fifth step.

[0271] In the fourth step, the user edits the selected image. The editing can be performed by image editing software, such as erasing, enlarging, or deforming some elements. The image editing can also be guided by another information J. This step is optional.

[0272] In the fifth step, an algorithm is used to generate a 3D model from the image obtained in the fourth step. This 3D model generation method can be a method that uses a 3D model generation network. Alternatively, it can be a retrieval-based method that encodes modal information I using keywords or an encoder, compares it with vectors in a feature vector library, and selects an appropriate model for presentation. The model presented to the consumer can also be one or more.

[0273] In some preferred embodiments, the specific process of performing three-dimensional modeling based on the two-dimensional simulated image to obtain the three-dimensional model is as follows:

[0274] Step 1: The user inputs information I in one or more modalities, where the information in the modalities may be one or more of text information, audio information, color or grayscale image information, thermal imaging information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-perspective photo, video clip, key pair or code book, physical reading, wealth number, etc.

[0275] Step 2: Convert the information I into one or more corresponding matching audios through an algorithm and present them to the user on the interactive interface.

[0276] In the third step, the user confirms the audio by clicking on it or speaking a voice response. Alternatively, if the user is dissatisfied, they will return to step 2 or 1. Once satisfied with the audio, the user can proceed to step 4 or directly to step 5.

[0277] The fourth step is for the user to edit the confirmed audio, such as adding additional descriptions. This step is optional.

[0278] In the fifth step, an algorithm is used to generate a three-dimensional model of the audio obtained in the fourth or third step. This three-dimensional model generation method can be a method that uses a three-dimensional model generation network; it can also be a retrieval-based method that encodes certain modal information I using keywords or an encoder, compares it with vectors in a feature vector library, and selects an appropriate model for presentation. The model presented to the consumer can also be one or more.

[0279] As shown in Figures 7-8, for example, if we take the image "chair" and associate it with "wings," then we draw wings on it to create "wings." This is because typical deep learning models are typically limited to a single category. For example, an algorithmic model for a chair can only model chairs. This method pre-selects other categories to associate with the existing model. This allows for excellent cross-domain generalization during editing, resulting in highly creative models that don't exist for standard chairs. Otherwise, wings wouldn't be edited onto a chair.

[0280] Example 4

[0281] This embodiment provides a method for editing a sketch model based on category priors, including:

[0282] In the first step, a first three-dimensional model or a first component to be edited is given, which may be a three-dimensional model generated as described above in the claim.

[0283] The second step is to parse the three-dimensional model to obtain labels. The parsing can be to use a pre-trained neural network to perform text labeling on the model, or to convert the three-dimensional model into a vector in a latent space.

[0284] The third step is to obtain the candidate items for editing parts based on the analysis of the 3D model in the second step.

[0285] The candidate items are candidate item associations based on text labels, such as "rabbit" can be associated with "ears", or the candidate items are pre-trained latent space-latent space transformations

[0286] In the fourth step, a suitable neural network is selected based on the candidate items, and a second three-dimensional model or a second component corresponding to the sketch input is output;

[0287] Alternatively, in the fourth step, the corresponding second three-dimensional model or second component is outputted through the method described in the claims;

[0288] In the fifth step, a Boolean operation is performed on the three-dimensional model obtained in the fourth step and the three-dimensional model obtained in the first step. The pose of the second component relative to the first three-dimensional model is based on the connection points specified by the user.

[0289] or,

[0290] Use a pre-trained model fusion network to fuse the two 3D models at the appropriate pose. In step 6, repeat steps 1-5 to achieve editing of any model.

[0291] Example 5

[0292] This embodiment provides a computer device, including an input device, a processing unit, and a storage medium. The computer device can be used to implement the method in Example 2 and / or Example 4.

[0293] Example 6

[0294] This embodiment provides a parts processing device, which includes a motion component, an actuator and a controller; the controller receives a hand-drawn sketch and runs the method in Example 2 and / or Example 4 to convert the 3D model into machine-readable instructions. The combination of the motion component and the actuator is a 3D printer or a CNC engraving machine.

[0295] Example 7

[0296] This embodiment provides a parts processing method, which is applicable to the processing device of embodiment 5 and includes the following steps:

[0297] The first step is to get a sketch using an input medium (such as a tablet) or by hand-drawing and then taking a photo;

[0298] The second step is to convert the sketch into a three-dimensional model;

[0299] The second step is to input the generated 3D model into the parser and convert it into machine-readable instructions;

[0300] In the third step, the processing device performs processing according to machine-readable instructions;

[0301] In addition, the generated 3D model can be edited and modified before the second step.

[0302] The steps to obtain a sketch by taking a photo are:

[0303] First, the photos were smoothed using a Gaussian filter to reduce noise and improve image quality;

[0304] Then, calculate the gradient and gradient direction of the image;

[0305] Next, the image is processed with non-maximum suppression (NMS) to eliminate non-edge pixels and retain only some thin lines as candidate strokes;

[0306] Finally, the edge detection process is completed by applying high and low thresholds and connecting the edges to obtain a user-drawn sketch.

[0307] Alternatively, you can use a pre-trained image-to-sketch neural network to generate a hand-drawn sketch from the photo.

[0308] Optionally, an angle is selected or entered while sketching, or the angle predicted by the viewfinder is submitted to the user for confirmation.

[0309] Optionally, after the sketch is drawn, a pre-trained sketch-text retrieval algorithm is used to output a text prompt corresponding to the sketch for the user's reference.

[0310] Optionally, after drawing the sketch, it is normalized to a fixed size and placed in the center of the image.

[0311] Optionally, normalize the thickness of the lines after obtaining the sketch.

[0312] Optionally, after obtaining the sketch, it is converted into sequence information.

[0313] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.

[0314] It should be noted that the technical features not described in detail in the present invention can be implemented by any existing technology.

Claims

1. A 3D modeling system based on hand-drawn sketches, characterized in that: include: A conversion unit that converts hand-drawn sketches into three-dimensional models; A rendering unit, used for rendering and transforming a two-dimensional projection of the three-dimensional model, and representing the three-dimensional model in a two-dimensional space; A constraint unit constrains the hand-drawn sketch and / or the converted 3D model and / or the 2D projection of the 3D model.

2. A 3D modeling system based on hand-drawn sketches according to claim 1, characterized in that: The constraint unit includes a perspective prediction module that generates an estimated perspective for constraining a hand-drawn sketch. The perspective prediction module includes a multi-layer perceptron or a multi-layer convolution that learns through a series of labeled sketches to obtain the ability to output a perspective through an input sketch.

3. A 3D modeling system based on hand-drawn sketches according to claim 2, characterized in that: The constraint unit also includes a view perception module for constraining the viewing angle of the hand-drawn sketch, and the view perception module includes a multi-layer perceptron.

4. A 3D modeling system based on hand-drawn sketches according to claim 1, characterized in that: The constraint unit includes a contour enhancement module for constraining the contour of the three-dimensional model and improving the structural perception of the three-dimensional model; The contour enhancement module includes a position-aware attention module and a post-processing module.

5. The three-dimensional modeling system based on hand-drawn sketches according to claim 1, characterized in that: The constraint unit includes a three-dimensional model symmetry module, which is used to flip the three-dimensional model after sampling at any viewing angle, and then optimize the three-dimensional model through a loss function.

6. A 3D modeling system based on hand-drawn sketches according to claim 1, characterized in that: The constraint unit includes a projection symmetry module, which flips the three-dimensional model after sampling the projection at any viewing angle, and then optimizes the three-dimensional model through a loss function.

7. The three-dimensional modeling system based on hand-drawn sketches according to claim 1, characterized in that: The conversion unit includes an encoding module and a decoding module; The encoding module includes a multi-layer convolutional neural network, which generates a latent code from the hand-drawn sketch, and the latent code is a feature vector in a high-dimensional space; the decoding module includes a multi-layer convolutional neural network, which decodes the latent code into a three-dimensional model; Or the conversion unit includes a transformer-structured neural network, which converts the hand-drawn sketch into a number of tokens and then into a three-dimensional model.

8. The three-dimensional modeling system based on hand-drawn sketches according to claim 1, characterized in that: The hand-drawn sketch has a perspective constraint, and the hand-drawn sketch perspective is to set the hand-drawn sketch perspective as a normal perspective by default, or a perspective predicted by a perspective prediction module, or a perspective directly input manually.

9. The three-dimensional modeling system based on hand-drawn sketches according to claim 1, characterized in that: The rendering unit includes a rendering module and a comparison module; The rendering module includes a renderer for rendering a two-dimensional projection of the transformed three-dimensional model to represent the three-dimensional model in a two-dimensional space; The comparison module includes a similarity comparator, which compares the two-dimensional projection and the hand-drawn sketch, calculates the similarity, and uses the similarity to adjust the parameters in the conversion unit.

10. A 3D modeling system based on hand-drawn sketches according to claim 9, characterized in that: The three-dimensional modeling system also includes a shape identification module, which calculates the authenticity of the generated three-dimensional model through the shape identification module, forcing the encoding module and the decoding module to generate a more realistic three-dimensional model. The shape identification module includes a discriminator, which takes a set of projections of the three-dimensional model as input and outputs the authenticity of the model. The obtained authenticity is added to the loss function and optimized with an optimizer, so that the encoding module and the decoding module can generate a more realistic three-dimensional model.

11. The three-dimensional modeling system based on hand-drawn sketches according to claim 9, characterized in that: The three-dimensional modeling system also includes a structure perception module, which first captures the structure perception features of the three-dimensional model through the structure perception module, and then enhances the structure perception of the three-dimensional model using the contour enhancement module; The specific implementation process of the structure perception module is as follows: Input is the camera pose distribution p ξ Randomly sample N camera poses ξ 1...N , and use different renderers to render the corresponding projection outline S of the 3D model generated based on the hand-drawn sketch perspective 1...N And rendering the contour S corresponding to the projection of the 3D model generated based on the estimated view output by a view prediction module r {1...N}, so that the geometric structure of the object under the cross-view outline can be known when generating a 3D object.

12. [Corrected 24.06.2024 in accordance with Rule 26] A three-dimensional modeling system based on hand-drawn sketches according to claim 9, characterized in that: The 3D modeling system further includes a domain adaptation module for adapting to domain differences from different creators, synthetic and real data sets, including a domain discriminator with a multi-layer convolutional structure, specifically: The high-dimensional feature vectors obtained by the encoder and the high-dimensional feature vectors in the training set for the hand-drawn sketches created by the same creator or the same group of creators are then input into the domain discriminator to obtain the sketch features D after being adapted by the domain adaptation module. d And calculate its adversarial loss to optimize and avoid the deterioration of results caused by domain differences. The specific formula of adversarial loss is: Among them, S s and S h These are the hand-drawn sketches created by users and the sketches in the real dataset; E Ss Training data, specifically hand-drawn sketches with corresponding 3D models; E Sh The training data is hand-drawn sketches without corresponding 3D models.

13. A three-dimensional modeling method based on hand-drawn sketches, characterized in that: The three-dimensional modeling method comprises: (1) Convert hand-drawn sketches into 3D models; (2) generating a two-dimensional projection of a view of the three-dimensional model through a rendering module, comparing the two-dimensional projection with the sketch, calculating the similarity, and using the similarity to adjust the parameters of each unit of the encoder and decoder; wherein the view is the default view of the hand-drawn sketch or the estimated view output by a view prediction module; (3) Constraining the three-dimensional model and / or the two-dimensional projection.

14. A three-dimensional modeling method based on hand-drawn sketches according to claim 13, characterized in that: Before executing step (1), the hand-drawn sketch is subjected to perspective constraints. The constraint on the perspective of the hand-drawn sketch is to set the perspective of the hand-drawn sketch to the normal perspective by default, or the perspective predicted by the perspective prediction module, or the perspective predicted by the view perception module.

15. A three-dimensional modeling method based on hand-drawn sketches according to claim 13 or 14, characterized in that: The specific steps of converting the hand-drawn sketch into a three-dimensional model are: (11) The hand-drawn sketch is output through an encoder to generate a latent code, which is an A-dimensional feature vector; Among them, the hand-drawn sketch I∈{0,1} W×H , where the pixel with a mark is I[i, j]=0, and the pixel without a mark is I[i, j]=1; (12) The implicit code generates a set of corner point displacement value arrays through the decoder, and uses the values ​​of the array to displace a three-dimensional model template to obtain a three-dimensional model.

16. A three-dimensional modeling method based on hand-drawn sketches according to claim 15, characterized in that: The three-dimensional modeling method also includes: The hand-drawn sketch generates a hidden code through the decoder and also generates a view code, which is input into the view prediction module to output an estimated view; the view code is an X-dimensional vector.

17. The three-dimensional modeling method based on hand-drawn sketch according to claim 15, characterized in that: The three-dimensional modeling method also includes: Optimize the shape of the 3D model, specifically: By calculating the realism of the 3D model, adding the obtained realism to the loss function, and optimizing it with the optimizer, the encoder and decoder are forced to generate a more realistic 3D model. Or directly move the corner displacement value of the model after calculating the realism.

18. The three-dimensional modeling method based on hand-drawn sketch according to claim 13, characterized in that: The three-dimensional modeling method further includes constraining the symmetry of the three-dimensional model, specifically: The generated 3D model is flipped after sampling at any viewing angle, and then the shape of the 3D model is optimized.

19. The three-dimensional modeling method based on hand-drawn sketch according to claim 13, characterized in that: The three-dimensional modeling method further includes constraining the symmetry of the two-dimensional projection of the three-dimensional model, specifically: The generated three-dimensional model is flipped after sampling the three-dimensional model at any viewing angle, and then the shape of the three-dimensional model is optimized.

20. A method for intelligent associative modeling based on hand-drawn sketches, characterized in that: include: In the first step, the user draws a hand-drawn sketch in the drawing box, and the algorithm converts the hand-drawn sketch into a two-dimensional realistic image; In the second step, the user selects a suitable 2D immersive image; In the third step, the algorithm performs three-dimensional modeling based on the two-dimensional simulated image to obtain a three-dimensional model.

21. The method for intelligent associative modeling based on hand-drawn sketches according to claim 20, characterized in that: Users can select model categories and style descriptions of 2D realistic images, and the algorithm converts the hand-drawn sketches into multiple candidates for 2D realistic images that better meet the user's expectations based on the descriptions. When the user sketches by hand, each stroke update corresponds to the synchronous update of the 2D realistic image; During the user's hand-drawn sketching, an average sketch model with a semi-transparent reference model in the background; As the user sketches, the model predicts candidates for the next stroke.

22. The method for intelligent associative modeling based on hand-drawn sketches according to claim 20, characterized in that: The specific process of obtaining a 3D model based on a 2D simulated image is as follows: Step 1: The user inputs one or more modal information I, which may be one or more of text information, audio information, color or grayscale image information, thermal image information, depth map information, normal map, emotion vector, 2D sketch, 3D sketch, contour extraction, smell, EEG, point cloud, multi-view photos, video clips, key pairs or codebooks, physical readings, wealth numbers, etc. The modalities can also be converted to each other. In the second step, the modal information I in the first step is used to generate a three-dimensional model using a neural network trained by a three-dimensional model generation network training method to obtain one or more three-dimensional models. The third step is an optional step in which the user manually edits the 3D model generated in the second step. The manual editing includes selecting some components for scaling, displacement, coloring, and other operations. The fourth step is an optional step, which is to stylize or color the three-dimensional model obtained in the third step or the second step according to the modal information I2 provided by the user. The modal information I2 can be the same text information as the modal information I, audio information, color or grayscale image information, thermal imaging information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-perspective photo, video clip, key pair or code book, physical reading, wealth number, etc., or it can be different text information, audio information, color or grayscale image information, thermal imaging information, depth map, normal map, contour projection, three-dimensional sketch, three-dimensional sketch, point cloud information, multi-perspective stereo photos taken by multiple cameras around the object, video clips, etc. One or more. The fifth step is an optional step. Based on the three-dimensional model generated in the second, third or fourth step and the user's modal information I or I2, the algorithm determines different areas or specific corner points of the model for scaling, displacement modification and other operations.

23. The method for intelligent associative modeling based on hand-drawn sketches according to claim 20, characterized in that: The specific process of obtaining a 3D model based on a 2D simulated image is as follows: Step 1: The user inputs one or more modal information I, where the modal information may be one or more of text information, audio information, color or grayscale image information, thermal image information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-view photos, video clips, key pairs or code books, physical readings, wealth numbers, etc.; Step 2: The information I is converted into one or more corresponding matching pictures through an algorithm, and presented to the user on the interactive interface. The picture can be a color picture, a contour picture, a black and white projection picture, or a contour picture or sketch; In the third step, the user clicks on the picture to confirm and obtains a picture that the user is satisfied with. Alternatively, if the user is not satisfied, the user returns to the second or first step. After obtaining a satisfactory picture, the user can choose to enter the fourth step or directly enter the fifth step. In the fourth step, the user edits the selected picture, which can be edited by image editing software, such as erasing, enlarging, and deforming some elements, or the image editing can be guided by another information J. This step is optional. The fifth step is to generate a three-dimensional model of the image obtained in the fourth step through an algorithm. The three-dimensional model generation method can be a method in a three-dimensional model generation method using a three-dimensional model generation network; the three-dimensional model generation method can also be a retrieval-based method, which encodes a certain modal information I through keywords or encoders, and then selects a suitable model for presentation after comparing it with the vectors in the feature vector library. The model presented to the consumer can also be one or more.

24. The method for intelligent associative modeling based on hand-drawn sketches according to claim 20, characterized in that the specific process of obtaining a three-dimensional model by performing three-dimensional modeling based on a two-dimensional simulated image is: Step 1: The user inputs information I in one or more modalities, and the information in the modalities can be one or more of text information, audio information, color or grayscale image information, thermal imaging information, depth map information, normal map, emotion vector, two-dimensional sketch, three-dimensional sketch, contour extraction, smell, EEG, point cloud, multi-perspective photo, video clip, key pair or code book, physical reading, wealth number, etc. Step 2: Convert information I into one or more corresponding matching audios through an algorithm and present them to the user on the interactive interface. In the third step, the user confirms the audio by clicking or speaking. Alternatively, if the user is not satisfied, the user returns to the second or first step. After obtaining satisfactory audio, the user can choose to proceed to the fourth step or directly to the fifth step. Step 4: The user edits the confirmed audio, such as adding additional descriptions. This step is optional. In the fifth step, the audio obtained in the fourth or third step is used to generate a three-dimensional model through an algorithm. The three-dimensional model generation method can be a method in a three-dimensional model generation method using a three-dimensional model generation network; the three-dimensional model generation method can also be a retrieval-based method, which encodes a certain modal information I through keywords or encoders, and then selects a suitable model for presentation after comparing it with the vectors in the feature vector library. The model presented to the consumer can also be one or more.

25. A method for editing a sketch model based on category priors, comprising: In the first step, a first three-dimensional model or a first component to be edited is given, and the model may be a three-dimensional model generated by any one of claims 20-24. The second step is to parse the three-dimensional model to obtain a label. The parsing may be to use a pre-trained neural network to perform text labeling on the model, or to convert the three-dimensional model into a vector in a latent space. The third step is to obtain the candidate items for editing parts based on the analysis of the 3D model in the second step. The candidate items are candidate item associations based on text labels, such as "rabbit" can be associated with "ears", or the candidate items are pre-trained latent space-latent space transformations In the fourth step, a suitable neural network is selected based on the candidate items, and a corresponding second three-dimensional model or second component is output based on the sketch input; Alternatively, in the fourth step, the corresponding second three-dimensional model or second component is outputted by the method described in any one of claims 20 to 24; In the fifth step, the three-dimensional model obtained in the fourth step and the three-dimensional model in the first step are subjected to Boolean operation. The posture of the second component relative to the first three-dimensional model is based on the connection point specified by the user. or, Use a pre-trained model fusion network to fuse the two 3D models at the appropriate pose. In step 6, repeat steps 1 to 5 to achieve editing of any model.

26. A computer device, comprising an input device, a processing unit and a storage medium, characterized in that the computer device can be used to implement any method described in claims 13-19 and / or claim 25.

27. A parts processing device, characterized in that: The processing device includes a motion component, an actuator and a controller; the controller receives a hand-drawn sketch and runs any method in claims 13-19 and / or claim 25 to convert the 3D model into machine-readable instructions, and the combination of the motion component and the actuator is a 3D printer or a CNC engraving machine.

28. A parts processing method, characterized in that: The processing method is suitable for use in the processing device in claim 27, and the processing method The following steps are involved: The first step is to get a sketch using input media or hand-drawn and photographed; The second step is to convert the sketch into a three-dimensional model; The second step is to input the generated 3D model into the parser and convert it into machine-readable instructions; In the third step, the processing device performs processing according to the machine-readable instructions; In addition, the generated 3D model can be edited and modified before the second step.

29. A parts processing method according to claim 28, characterized in that: The steps to obtain a sketch by taking a photo are: First, the photos were smoothed using a Gaussian filter to reduce noise and improve image quality; Then, calculate the gradient and gradient direction of the image; Next, the image is processed with non-maximum suppression (NMS) to eliminate non-edge pixels and retain only some thin lines as candidate strokes; Finally, the edge detection process is completed by applying high and low thresholds and connecting the edges to obtain a user hand-drawn sketch.

30. A parts processing method according to claim 28, characterized in that: The steps to obtain a sketch by taking a photo are as follows: the photo is passed through a pre-trained image-to-sketch neural network to obtain a hand-drawn sketch.

31. A parts processing method according to claim 28, characterized in that: Select or enter an angle when sketching, or submit the predicted angle for user confirmation.

32. A parts processing method according to claim 28, characterized in that: After drawing the sketch, a pre-trained sketch-text retrieval algorithm is used to output the text prompt corresponding to the sketch for the user's reference.

33. A parts processing method according to claim 28, characterized in that: After drawing the sketch, it is normalized to a fixed size and placed in the center of the image.

34. A parts processing method according to claim 28, characterized in that: Normalize the line thickness after getting the sketch.

35. A parts processing method according to claim 28, characterized in that: After getting the sketch, it is converted into sequence information.

Citation Information

Patent Citations

  • Deep convolutional neural network-based three-dimensional model retrieval algorithm

    CN107122396A

  • Three-dimensional model generation method and device based on single freehand sketch and electronic equipment

    CN113129447A

  • Face three-dimensional reconstruction model training method, reconstruction method and device based on sketch

    CN115457197A

Cited By

  • Method for generating 3D cabinet body based on image recognition

    CN119152124A

  • Three-dimensional scene reconstruction method based on multi-modal regularization and temperature smoothing constraint

    CN119169208A

  • Three-dimensional model editing method and device based on multiple modes, equipment and medium

    CN119540504A

  • Method and device for automatically generating stroke drawing by using sketch

    CN119648853A

  • A method and apparatus for automatically generating a sketch from a sketch

    CN119648853B