Image processing method and apparatus, and device, storage medium and computer program
By obtaining and utilizing the morphological description information and contour information of the 3D character's face, the 3D character's facial morphology is automatically corrected to match the expected morphology, which solves the problem of low manual adjustment efficiency in the existing technology and achieves efficient morphological correction.
Patent Information
- Application Number
- PCT/CN2022/128637
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-01-10
- Filing Date
- 2022-10-31
- Publication Date
- 2024-09-12
AI Technical Summary
In the production of 3D character expressions, due to the difference between the shape of the 3D character's facial parts and the shape of the character's facial parts in the image, manual adjustment to correct the facial shape is inefficient and consumes human resources.
By obtaining the shape of the target part in the image to be processed, its description information and contour information, the shape is automatically corrected until it matches the expected shape, avoiding manual correction.
It improves the efficiency of shape correction, saves human resources, and ensures the matching between the target part shape and the expected shape.
Smart Images

Figure CN2022128637_12092024_PF_FP_ABST
Abstract
Description
Image processing method, device, equipment, storage medium and computer program
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on January 10, 2022, with application number 2022100241125 and application name “Image processing method, device, equipment, storage medium and computer program”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to image processing technology. Background Art
[0003] In some virtual reality and gaming applications, 3D (three-dimensional) technology is often used to create virtual characters such as player characters and monster characters in order to provide users with a more realistic effect. Furthermore, to make the 3D characters more realistic, expressions are also created for them, such as a smile or a sad expression.
[0004] The production of 3D character expressions is generally achieved through a facial controller. For example, when producing 3D character expressions, the controller parameters of the facial controller bound to the 3D character's face can be edited and adjusted based on an image including the character's face, thereby producing corresponding facial expressions on the 3D character.
[0005] However, the morphology of 3D characters' faces often differs from that of the person in the image. The morphology of these facial features plays a crucial role in interpreting facial expressions, and even small differences can significantly impact the emotional expression of an expression. Therefore, in many cases, the expressions of 3D characters created using these methods differ significantly from the intended facial expressions of the person in the image. In these cases, manual adjustments are required to correct the 3D character's facial morphology. Manual correction is not only labor-intensive but also inefficient.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide an image processing method, apparatus, device, storage medium and computer program, which improve the efficiency of morphological correction of target parts of an object.
[0008] In one aspect, an embodiment of the present application provides an image processing method, which is executed by a computer device and includes:
[0009] Acquiring an image to be processed, wherein the image to be processed includes a target part of an object, the morphology of the target part is a first morphology, and the first morphology does not match an expected morphology;
[0010] Acquiring description information corresponding to the first form, and acquiring contour information of the target part when in the first form;
[0011] The shape of the target part is corrected based on the description information and the contour information, and the shape of the target part is corrected from the first shape to a second shape, and the second shape matches the expected shape.
[0012] In one aspect, an embodiment of the present application further provides an image processing device, comprising:
[0013] an acquisition unit, configured to acquire an image to be processed, wherein the image to be processed includes a target part of an object, the morphology of the target part is a first morphology, and the first morphology does not match an expected morphology;
[0014] The acquisition unit is further configured to acquire description information corresponding to the first form, and acquire contour information of the target part when in the first form;
[0015] A correction unit is used to modify the shape of the target part based on the description information and the contour information, and correct the shape of the target part from the first shape to a second shape, where the second shape matches the expected shape.
[0016] On the one hand, an embodiment of the present application provides a computer device, comprising: a processor, suitable for implementing one or more computer programs; a computer storage medium, wherein the computer storage medium stores one or more computer programs, and the one or more computer programs are suitable for being loaded by the processor and executing the image processing method provided by the embodiment of the present application.
[0017] On the one hand, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor of an image processing device, it is used to execute the image processing method provided by the embodiment of the present application.
[0018] On the one hand, an embodiment of the present application provides a computer program product or computer program, wherein the computer program product includes a computer program, and the computer program is stored in a computer storage medium; the processor of the image processing device reads the computer program from the computer storage medium, and the processor executes the computer program, so that the image processing device performs the image processing method provided by the embodiment of the present application.
[0019] In an embodiment of the present application, when the target part of the object in the image to be processed is in a first form, if the first form does not match the expected form, the description information corresponding to the first form and the contour information of the target part when in the first form can be obtained. Furthermore, the target part is morphologically corrected based on the description information corresponding to the first form and the contour information of the target part, so as to correct the form of the target part from the first form to the second form, which matches the expected form. In this way, there is no need to manually correct the first form. Instead, the target part is automatically morphologically corrected based on the description information of the first form and the contour information of the target part when in the first form, so that the form of the target part meets the expected form. This eliminates the human resource consumption caused by manual correction and improves the efficiency of morphological correction. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] FIG1a is a schematic diagram of binding a 3D character image and a form controller provided by an embodiment of the present application;
[0021] FIG1b is a schematic diagram of correcting lip shape according to an embodiment of the present application;
[0022] FIG2 is a flow chart of an image processing method provided in an embodiment of the present application;
[0023] FIG3 is a schematic diagram of an association between an image to be processed and an image grid provided by an embodiment of the present application;
[0024] FIG4a is a schematic diagram of the outline and mesh vertices of a target part provided in an embodiment of the present application;
[0025] FIG4b is a schematic diagram of contour information of a target part provided in an embodiment of the present application;
[0026] FIG4c is a schematic diagram of contour information of another target part provided in an embodiment of the present application;
[0027] FIG5 is a schematic diagram of the structure of a parameter prediction model provided in an embodiment of the present application;
[0028] FIG6 is a flow chart of another image processing method provided in an embodiment of the present application;
[0029] FIG7 a is a schematic diagram of a training method for a parameter prediction model provided by an embodiment of the present application;
[0030] FIG7 b is a schematic diagram of training a position prediction model according to an embodiment of the present application;
[0031] FIG8 is a schematic diagram of another training parameter prediction model provided in an embodiment of the present application;
[0032] FIG9 is a schematic structural diagram of an image processing device provided in an embodiment of the present application;
[0033] FIG10 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.
[0035] An embodiment of the present application provides an image processing method, which, after obtaining an image to be processed, determines that a target part of an object in the image to be processed is in a first form, and further detects whether the first form of the target part of the object in the image to be processed matches an expected form. When the first form of the target part does not match the expected form, the target part can be morphologically corrected based on the contour information of the target part when in the first form and the description information corresponding to the first form, so that the form of the target part is corrected from the first form to a second form that matches the expected form.
[0036] In one embodiment, the image processing method can be executed by an image processing device, which can be a terminal, such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a smart home appliance, an intelligent voice interaction device, etc.; or, the image processing device can also be a server, such as an independent physical server, a server cluster or distributed system composed of multiple physical servers, a cloud server providing cloud computing services, etc.
[0037] In another embodiment, the image processing method can be collaboratively executed by an image processing device and an image management device. For example, the image management device can store the image to be processed and send the image to be processed to the image processing device. The image processing device executes the above-mentioned image processing method after obtaining the image to be processed. For another example, the image processing device can obtain the image to be processed from local storage, and then obtain the description information corresponding to the first form of the target part in the image to be processed and the contour information of the target part when it is in the first form. Then, the image processing device transmits the description information and the contour information to the image management device, and the image management device corrects the form of the target part based on the description information and the contour information, and finally feeds back the correction result to the image processing device.
[0038] It should be noted that the above-mentioned image processing device and image management device are both computer devices.
[0039] Optionally, the target part of the object in the image to be processed may refer to any one or more of the facial features of the object, such as the eyes, lips, nose, ears, and eyebrows; or the target part of the object in the image to be processed may refer to other parts of the object's body, such as fingers, arms, etc. For ease of description, unless otherwise specified, this embodiment of the application uses the lips as an example to describe the target part.
[0040] The image processing method provided in the embodiment of the present application can be applied to a 3D character expression production scenario. For example, the image to be processed is a 3D character image. The following steps (1) and (2) are performed to produce an expression for a 3D character in the 3D character image. The shape of the target part in the produced expression is the first shape. Specifically:
[0041] (1) Binding a 3D character image to a morphology controller. FIG1a is a schematic diagram of binding a 3D character image to a morphology controller provided in an embodiment of the present application. 101 represents a 3D character image, which is associated with an image grid. Each part of the face of the object in the 3D character image can be described by a vertex of the corresponding grid. For example, the lips can be described by the grid vertices in 103. 102 represents a part control in the morphology controller corresponding to the 3D character image. For example, 1021 represents a part control in the morphology controller that is bound to the lips of the 3D character. The controller parameters in the morphology controller may include parameters for each part control. The parameters for each part control may determine the size information, shape information, etc. of the part to which it is bound.
[0042] (2) The animator edits the morphology controller parameters based on the image including the character's face to produce the corresponding expression. For example, the shape of the character's lips in the image is shown as 11 in FIG. 1b , and the shape of the lips is the expected shape. The morphology controller parameters are edited to produce the expression of the 3D character image. In the produced expression, the shape of the lips is shown as 12 in FIG. 1b , and the lip shape can be regarded as the first shape.
[0043] By comparison, it can be found that the first form shown in 12 is different from the lip form (expected form) of the person in the image. Therefore, the image processing method provided in the embodiment of the present application can be used to correct the lip form. Specifically, the description information corresponding to the current form of the lips is obtained. The description information can be the position information of multiple grids used to represent the lips in the image grid, and the contour information of the lips in the current form is obtained. Further, the morphology is corrected based on the contour information and the description information to obtain the corrected lip form as shown in 13 in Figure 1b. The lip form can be regarded as the second form.
[0044] As can be seen from Figure 1b, the morphology corrected by the image processing method provided in the embodiment of the present application has a high degree of matching with the expected morphology, and the image processing method of the present application does not require manual correction, which can save correction time and improve correction efficiency.
[0045] Optionally, the above-mentioned 3D character can be a virtual character in a game application. Before the game application is officially released, in order to achieve a more realistic game effect, some expressions can be pre-designed for the virtual character. In different game scenes, the virtual character can present different expressions. For example, in a game battle scene, the virtual character can present a relatively excited expression. After winning the game battle, the virtual character can show a smiling expression, etc. Different expressions can be designed for the virtual character through the above-mentioned steps (1) and (2). If the morphology of the target part in the designed expression does not match the expected morphology, the morphology of the target part can be modified by the image processing method provided in this application to make the expression of the virtual character more accurate.
[0046] Optionally, the above-mentioned 3D character can also be a virtual object in a human-computer interaction scene based on a virtual object. The scene of human-computer interaction based on a virtual object can be: the virtual object is a product customer service, and the user can discuss or learn about related products by chatting with the virtual object. In order to let the user experience the realism of chatting with a real person, several expressions can be designed for the virtual object in advance, and the virtual object can show different labels in different chat scenes. For example, if the chat scene is that the user praises the product, the virtual object can show a smiling expression; if the chat scene is that the user is dissatisfied with the product, the virtual object can show a sad expression. Similarly, expressions can be designed for virtual objects through the above steps (1) and (2). If the morphology of the target part in the designed expression does not match the expected morphology, the image processing method provided by this application is used to correct the morphology of the target part.
[0047] In other embodiments, virtual object-based human-computer interaction scenarios may also include: a virtual object acting as an application guide. When a user first uses the application, the virtual object can instruct the user on how to use the application through some physical gestures. Alternatively, a virtual object-based human-computer interaction scenario may include: a virtual object being a user's avatar within an application. The user can use this avatar to represent themselves, interact with friends within the application through this avatar, or participate in simulated real-life activities within the application using this avatar, such as growing vegetables, attending meetings, or making friends.
[0048] The above are only the application scenarios of the image processing method listed in the embodiments of the present application. In specific implementation, any application scenario involving object morphology correction can adopt the image processing method proposed in the embodiments of the present application to achieve the purpose of saving correction time and improving correction efficiency.
[0049] Based on the above-mentioned image processing solution, an embodiment of the present application provides an image processing method. See FIG2 , which is a flow chart of an image processing method provided by an embodiment of the present application. The image processing method shown in FIG2 can be executed by a computer device, specifically by a processor of the computer device, which can be the image processing device or image management device mentioned above. The image processing method shown in FIG2 may include the following steps:
[0050] Step S201: Acquire an image to be processed, where the image to be processed includes a target part of an object, and the shape of the target part is a first shape, which does not match the expected shape.
[0051] The image to be processed may be stored locally on the computer device, in which case the computer device may directly obtain the image to be processed from the local storage; or the image to be processed may be generated by other devices and stored in other devices, in which case the computer device may receive the image to be processed sent by other devices.
[0052] The image to be processed may include the face of an object, which may be any object with facial expression such as a person or an animal. The image to be processed may refer to a 3D character image in 3D character expression production. The image to be processed may be synthesized using 3D technology. For example, see FIG. 1a where 101 may represent an image to be processed.
[0053] The target part of the object in the image to be processed can refer to any of the five facial features of the object, such as the eyes, eyebrows, nose, lips, and ears. The morphology of the target part can be a first morphology, which can be generated by a facial controller. A detailed description can be found in the previous section on determining the morphology of facial parts using a facial controller or a morphology controller, and will not be repeated here. Assuming that the target part is the lips, the first morphology can include an open mouth state, a smiling state, a laughing state, etc.
[0054] In one embodiment, the first form of the target part in the image to be processed can be compared with the expected form to determine whether the first form matches the expected form. If the first form does not match the expected form, subsequent steps S202 and S203 need to be executed to correct the form of the target part. If the first form matches the expected form, steps S202 and S203 can be omitted. For example, if the target part is the lips, the first form is a smiling state, and the expected form is an open-mouthed smile, then the first form and the expected form do not match. Alternatively, if the first form and the expected form are both smiling states, but the degree of smile is different, this can also cause the first form and the expected form to not match.
[0055] In one embodiment, comparing the first form of the target part in the image to be processed with the expected form to determine the match between the first form and the expected form may include: manually visually comparing the first form with the expected form, and feeding back the match between the first form and the expected form to the computer device based on the comparison result.
[0056] In another embodiment, comparing the first form of the target part in the image to be processed with the expected form to determine the match between the first form and the expected form may include: using image similarity analysis technology to perform similarity comparison processing on the target part in the first form and the target part in the expected form to obtain the similarity between the target parts in the two forms; if the similarity comparison result is less than or equal to the similarity threshold, it can be determined that the first form and the expected form do not match; if the similarity result is greater than the similarity threshold, it is determined that the first form and the expected form match.
[0057] The expected form can be any pre-specified form, which can be the form of the target part of the face of an object in any picture or any video. For example, in making a 3D character expression, the form of the target part of the character in the reference image is pre-specified as the expected form.
[0058] Step S202: Obtain description information corresponding to the first form, and obtain contour information of the target part in the first form.
[0059] The image to be processed can be associated with an image grid, which can include M grid vertices. A grid vertex refers to a point that makes up the grid. The image grid includes multiple grids, each of which can be composed of multiple vertices. The target part corresponds to N grid vertices among the M grid vertices. A positional change of the N grid vertices (here, the positional change of the N grid vertices can refer to a change in any one or more of the N grid vertices) can cause the target part to present a different morphology. Therefore, the position information of the N grid vertices can be used as descriptive information of the first morphology.
[0060] For example, Figure 3 is a schematic diagram of an embodiment of the present application illustrating the association between an image to be processed and an image grid. The image grid may include multiple grid vertices. For example, 301 and 302 in Figure 3 represent grid vertices. Each part of the subject's face in the image to be processed may correspond to a number of grid vertices. For example, the grid vertices in region 303 correspond to the lips. Assuming the target part is the lips, the description information of the lips in the first form is the position information of the multiple grid vertices in region 303.
[0061] In one embodiment, the target part may include an inner contour and an outer contour. The inner contour may correspond to L mesh vertices, and the outer contour may correspond to P mesh vertices. For example, the target part is the lip. Figure 4a is a correspondence between the contour and mesh vertices of a target part provided in an embodiment of the present application. In Figure 4a, 401 represents the target part, the black dotted line in 402 represents the inner contour of the target part, and the black solid line represents the outer contour of the target part; the solid circle represents the L mesh vertices corresponding to the inner contour, and the hollow circle represents the P mesh vertices corresponding to the outer contour.
[0062] The contour information of the target part may include a first distance between the inner contour and the outer contour. Specifically, the first distance between the inner contour and the outer contour may include the distance between L mesh vertices and P mesh vertices having a corresponding relationship. For example, referring to Figure 4b, the solid circles and hollow circles with connecting lines in Figure 4b are a group of mesh vertices having a corresponding relationship. The distance between the corresponding solid circles and hollow circles is called the first distance between the inner contour and the outer contour. For example, the length of line segment A, the length of line segment B, and the length of line segment C are all first distances.
[0063] The contour information of the target part may further include a second distance between every two mesh vertices among the P mesh vertices corresponding to the outer contour. For example, referring to FIG4c , the distance between every two solid circles in FIG4c (the solid circles in FIG4c are essentially the hollow circles in FIG4a and FIG4b ) is the second distance. For example, the length of line segment D, the length of line segment E, and the length of line segment F are all the second distance.
[0064] Step S203: Correct the shape of the target part based on the description information and the contour information, and correct the shape of the target part from the first shape to the second shape, where the second shape matches the expected shape.
[0065] In one embodiment, the morphology of the target part is corrected based on the description information and the contour information, and the morphology of the target part is corrected from a first morphology to a second morphology, including: predicting a target parameter based on the description information and the contour information, calling a morphology controller to adjust the description information based on the target parameter, and the adjusted description information is used to make the morphology of the target part appear in the second morphology.
[0066] Predicting target parameters based on the description information and contour information can be achieved by calling a parameter prediction model, which can be pre-trained. In a specific implementation, step S203 corrects the morphology of the target part based on the description information and contour information, and corrects the morphology of the target part from a first morphology to a second morphology, including: splicing the description information and contour information; calling the parameter prediction model to perform parameter prediction based on the splicing result to obtain target parameters of the morphology controller; calling the morphology controller to adjust the description information based on the target parameters, and the adjusted description information is used to make the morphology of the target part present the second morphology.
[0067] Specifically, when splicing the description information and the outline information, a dimensionality reduction matrix can be first obtained, and the dimensionality reduction matrix can be used to reduce the dimensionality of the description information, and then the description information and the outline after the dimensionality reduction process can be used for splicing. Here, the principal component analysis (PCA) algorithm can be used to reduce the dimensionality of the description information.
[0068] In addition, the parameter prediction model can be any deep network structure. See Figure 5, which is a structural diagram of a parameter prediction model provided in an embodiment of the present application. The parameter prediction model shown in Figure 5 can include three fully connected layers, each of which can correspond to an activation function, which can be ReLU. The working principle of ReLU can be expressed by the formula y = ReLU (w * x + b), where x is the input, w is the weight of the fully connected layer, b is the bias, and y is the output of the current layer.
[0069] In an embodiment of the present application, the target part of the face of the object in the image to be processed is in a first form. If the first form does not match the expected form, the description information corresponding to the first form and the contour information of the target part when in the first form can be obtained. Further, the target part is morphologically corrected based on the description information corresponding to the first form and the contour information of the target part, so as to correct the form of the target part from the first form to the second form, and the second form matches the expected form. In this way, there is no need to manually correct the first form. The target part can be automatically morphologically corrected based on the description information of the first form and the contour information of the target part when in the first form, so that the form of the target part meets the expected form. This eliminates the human resource consumption caused by manual correction and improves the efficiency and accuracy of morphological correction.
[0070] Based on the above-mentioned image processing method, the embodiment of the present application also provides another image processing method. See Figure 6, which is a flow chart of another image processing method provided by the embodiment of the present application. The image processing method shown in Figure 6 can be executed by a computer device, specifically by a processor of the computer device, which can specifically be the image processing device or image management device mentioned above. The image processing method shown in Figure 6 may include the following steps:
[0071] Step S601: Acquire an image to be processed, where the image to be processed includes a target part of an object, and the shape of the target part is a first shape, which does not match the expected shape.
[0072] Step S602: Obtain description information corresponding to the first form, and obtain contour information of the target part in the first form.
[0073] Among them, some feasible implementations included in step S601 can refer to the relevant description of step S201 in the embodiment of Figure 2, and will not be repeated here. Some feasible implementations included in step S602 can refer to the relevant description of step S202 in the embodiment of Figure 2, and will not be repeated here.
[0074] Step S603: perform splicing processing on the description information and the contour information, and call the parameter prediction model to perform parameter prediction based on the splicing processing result to obtain the target parameters of the morphology controller.
[0075] In one embodiment, the parameter prediction model can be obtained by training based on the first training sample, which may specifically include the following steps s1-s4:
[0076] s1: Obtain a first training sample, which may include a first sample image and label information corresponding to each first sample image. The first sample image includes a target part of the object's face. The label information corresponding to the first sample image may include first description information corresponding to the target part in the first sample image when it is in a first training form, and second description information corresponding to the target part in the first sample image when it is in a second training form.
[0077] Wherein, the first sample image corresponds to the image grid, and the facial features of the subject in the first sample image all correspond to a number of grid vertices. The target part can be the same as the target part in step S601, and can be any part of the facial features. The first description information corresponding to the target part in the first sample image when it is in the first training form can be the first position information of multiple grid vertices corresponding to the target part in the image grid associated with the first sample image, and the second description information corresponding to the target part in the first sample image when it is in the second training form can be the second position information of multiple grid vertices corresponding to the target part. If the first training form does not match the expected training form, the second training form matches the expected training form. The method for determining the expected training form can be the same as the method for determining the aforementioned expected form, and both can be the form of the target part of the person in the reference image.
[0078] The number of the first sample images may be X, where X is an integer greater than or equal to 1. Assume that the first description information is represented by M coarse , the second description information is represented by M fine , the number of grid vertices corresponding to the target part is N1, and the dimension of each grid vertex is 3-dimensional, then M coarse The dimension is (X, N1*3), where N1 is much smaller than X. In other words, if the number of first sample images is X, then the first description information includes the first description information of each first sample image, and the first description information of each first sample image can be regarded as a collection of position information of N1 mesh vertices.
[0079] The first description information may include X lines, each line including the first position information of N1 mesh vertices in a first sample image. For example, the first position information of a mesh vertex can be represented by a three-dimensional coordinate (x, y, z), and each line of the first description information may be represented as (x1, y1, z1, x2, y2, z3, ..., x N1 ,y N1 , z N1 ), that is, each row of the first description information is composed of the position information of N1 mesh vertices in a first sample image. Similarly, each row of the second description information is the second position information of N1 mesh vertices in a first sample image.
[0080] s2: obtaining training contour information of the target part in the first sample image when the target part is in the first training form, and performing splicing processing on the training contour information and the first description information.
[0081] It should be noted that, unless otherwise specified, the description here is based on a first sample image as an example. The same processing steps are used for other first sample images to obtain the training contour information of the target part in each first sample image when it is in the first training form.
[0082] Optionally, the embodiment of the present application can adopt the same method as that of obtaining the contour information of the target part in the image to be processed when it is in the first form in step S202 to obtain the training contour information of the target part in the first sample image when the target part is in the first training form. The specific implementation method can be found in the description in step S202 and will not be repeated here.
[0083] In one embodiment, in order to reduce the sparsity of features and improve the learning efficiency of the parameter prediction model, before the training profile information and the first description information are spliced together, the first description information can be first subjected to dimensionality reduction processing, and the first description information after dimensionality reduction processing is spliced together with the training profile information. The first description information can be subjected to dimensionality reduction processing using the PCA algorithm. The principle of dimensionality reduction processing using the PCA algorithm is to generate a dimensionality reduction matrix based on the first description information and the second description information; and to multiply the first description information and the dimensionality reduction matrix to obtain the first description information after dimensionality reduction processing. Assume that the first description information is represented by M coarse , the dimension reduction matrix is represented as D K , the dimensionality reduction processing of the first description information is expressed by the following formula (1):
[0084] MD coarse =M coarse *D K (1)
[0085] Among them, MD coarse Represents the first description information after dimensionality reduction processing. Assume that the dimension of the dimensionality reduction matrix is (N1*3, K) and the dimension of the first description information is (X, N1*3). After dimensionality reduction processing, the dimension of the first description information is reduced to (X, K), where K is an integer much smaller than N1*3.
[0086] In one embodiment, generating a dimensionality reduction matrix based on the first description information and the second description information includes:
[0087] s21. Concatenate the first description information and the second description information to obtain a description information matrix; assuming that the first description information is represented by M coarse , the second description information can be expressed as Mfine , the dimensions of the first description information and the second description information are both (X, N1*3). After concatenating the first description information and the second description information, a description information matrix is obtained, denoted as M, where the dimensions of M are (X*2, N1*3). The concatenation of the first description information and the second description information can be expressed by the following formula (2):
[0088]
[0089] s22. Perform singular value decomposition on the description information matrix to obtain an eigenvector matrix and an eigenvalue matrix. The eigenvector matrix includes multiple eigenvectors; the eigenvalue matrix includes the eigenvalues corresponding to each eigenvector. The eigenvectors in the eigenvector matrix and the eigenvalues in the eigenvalue matrix are in one-to-one correspondence. The process of performing singular value decomposition on the description information matrix can be expressed by the following formula (3):
[0090] M=UVD T (3)
[0091] In formula (3), D represents the eigenvector matrix with dimension (N1*3, N1*3), V represents the eigenvalue matrix, which is a non-negative rectangular diagonal matrix with dimension (X*2, N1*3). The values on the diagonal of the eigenvalue matrix V are the eigenvalues corresponding to each eigenvector, and U is a matrix orthogonal to D with the same dimension as D.
[0092] s23. Adjust the eigenvector matrix. After the adjustment, the eigenvectors in the eigenvector matrix are arranged in descending order according to their corresponding eigenvalues. Assume that the eigenvalues of the eigenvectors can be expressed as x1, x2, x3, ..., x N1*3 .
[0093] s24. Based on the eigenvalue of each eigenvector in the adjusted eigenvector matrix, select K eigenvectors in order, and determine the matrix composed of these K eigenvectors as a dimensionality reduction matrix, where the sum of the eigenvalues corresponding to the K eigenvectors is greater than or equal to the feature threshold. In other words, the selected K eigenvectors must ensure that information in the descriptive information matrix that is greater than or equal to the feature threshold is retained.
[0094] In the specific implementation, suppose x=x1+x2+x3+...+x N1*3 , K is the first value that makes the following formula (4) valid:
[0095]
[0096] In general, the feature threshold can be set to 99%. After solving K through the above formula (4), the matrix composed of the first K feature vectors is determined as the dimensionality reduction matrix. The dimension of the dimensionality reduction matrix is (N1*3, K), where K is much smaller than N1*3.
[0097] s3: Call the parameter prediction model to be trained to perform parameter prediction based on the splicing processing results to obtain the training parameters of the morphological controller.
[0098] As can be seen from the foregoing, the number of first sample images can be X. Therefore, the number of first description information and the number of training profile information are both X. The splicing result here can be obtained by splicing the first description information and training profile information corresponding to any first sample image. In other words, splicing the first description information and training profile information corresponding to each of the X first sample images will produce a splicing result. Therefore, for the first training sample, the number of splicing results is also X. When training the parameter prediction model, these X splicing results can be input into the parameter prediction model one by one. Specifically, assuming that the number of first sample images is X, and the target part in each first sample image corresponds to N1 grid vertices, and the position information of each grid vertex is 3-dimensional, then the dimensions of the first description information are represented as (X, N1*3), the dimensions of the first description information after dimensionality reduction are represented as (X, K), and the dimensions of the training profile information are (X, D). After splicing the first description information and training profile information after dimensionality reduction, the dimensions of the splicing result are (X, K+D).
[0099] When training the parameter prediction model, each time the first description information corresponding to a first sample image is concatenated with the training contour information, the concatenated result is input into the parameter prediction model, and the high-parameter prediction model outputs a training parameter. The process of the parameter prediction model performing parameter prediction based on the concatenated result can be represented by Figure 7a. The parameter prediction model can also be referred to as (Meah2Params). The dimension of the concatenated result input into the parameter prediction model is (1, K+C). The dimension of the training parameter output by the parameter prediction model is (1, H), where H represents the number of parameters used in the morphology controller to control the morphology of the target part.
[0100] s4: Predicting description information based on the training parameters to obtain first predicted description information corresponding to the target part in the second training state, and training the parameter prediction model based on the first predicted description information and the second description information.
[0101] Among them, training the parameter prediction model according to the first prediction description information and the second description information can specifically include: calculating the first loss function based on the first prediction description information and the second description information; using the back propagation algorithm to update the network parameters in the parameter prediction model based on the first loss function.
[0102] For example, the first loss function is calculated based on the first prediction description information and the second description information, which can be expressed by the following formula (5):
[0103] L loss =MeanSquaredError(MD predict , MD fine ) (5)
[0104] In formula (5), L loss Represents the first loss function, MD predict Indicates the first prediction description information, MD fine represents the second description information, and MeanSquaredError(·) represents the mean square error calculation function.
[0105] The network parameters are updated by calculating the partial derivatives of the first loss function with respect to the network parameters, which can be expressed by the following formula (6):
[0106]
[0107] Among them, w t represents the network parameters before updating in the parameter prediction model, w t+1 is the updated network parameter, α is the learning rate, which is generally around 10e-3. The network parameters are iteratively optimized until the first loss function no longer changes.
[0108] In one embodiment, the above-mentioned prediction of description information based on training parameters to obtain the first predicted description information corresponding to the target part in the second training morphology can be executed by calling a position prediction model. In a specific implementation, the training parameters are used as input to the position prediction model, and the position prediction model is called to predict the description information to obtain the first predicted description information. It can be seen that the role of the position prediction model is to obtain a description information based on the parameter prediction of the morphology controller. In other words, the position prediction model can imitate the process of the morphology controller controlling the description information based on the parameters.
[0109] The position prediction model can be a pre-trained model trained based on a second training sample. The second training sample includes a second sample image and a correspondence between third descriptive information and a second training parameter of a morphology controller. The second sample image includes a target part of a subject's face, and the third descriptive information is descriptive information corresponding to the target part in the second sample image when it is in a third form. The correspondence between the third descriptive information in the second training sample and the second training parameter of the morphology controller can include multiple sets. The third form of the target part in the second sample image can be a form that matches an expected training form or a form that does not match an expected training form. For example, if the expected training form is the form of the target part in a person's expression in a reference image, the third form can be a form automatically generated by the morphology controller based on the person's expression. This form may differ from the expected training form and may not be completely accurate. Alternatively, the third form can be a form automatically generated by the morphology controller based on the person's expression in the reference image, followed by manual adjustment of the automatically generated form, so that the third form matches the expected training form. The expected training form here can be the same as or different from the aforementioned expected training form.
[0110] The second sample image can correspond to the image grid, the target part corresponds to certain grid vertices in the image grid, and the third description information when the target part is in the third form refers to the position information of the grid vertices corresponding to the target part. The correspondence between the third description information and the second training parameter in the morphology controller can be determined based on the morphology controller and the third description position information. Specifically, a second training parameter can be randomly generated in the morphology controller, and the morphology of the target part in the second sample image can be modified based on the second training parameter. At this time, the third description information corresponding to the morphology of the target part is the third description information corresponding to the current second training parameter. Repeating the above process several times can obtain multiple sets of correspondences between the third description information and the second training parameters.
[0111] Furthermore, a set of third description information and second training parameters are used as a training data pair. The position prediction model is invoked to predict description information based on the second training parameters in a training data pair, thereby obtaining second predicted description information. The third description information used here is reduced in dimension using a dimensionality reduction matrix. Assuming that X sets of correspondences between third description information and second training parameters are obtained, each description information has a dimension of 3, and each description information corresponds to N1 mesh vertices, then the dimension of the third description information is (X, N1*3); the dimension of the third description information after dimensionality reduction using the aforementioned matrix is (X, K); assuming that the second training parameters include H parameters, then the dimension of the second training parameters is (X, H). See Figure 7b, which is a training diagram of a position prediction model provided in an embodiment of the present application. The position prediction model can also be referred to as (Params2Mesh, P2M). Each time the second training parameter in a training data pair is input into the P2M model, the dimension of the second training parameter input into the P2M model is (1, H). The P2M model predicts description information based on the second training parameter and outputs second prediction description information. The dimension of the second prediction description information is (1, K).
[0112] Then, based on the second prediction description information and the third description information, the location prediction model is trained. Specifically, based on the second prediction description information and the third description information, a second loss function corresponding to the location prediction model is determined; by calculating the partial derivatives of the second loss function with respect to the network parameters in the location prediction model, the network parameters in the location prediction model are updated, thereby achieving the training of the location prediction model. For example, the second loss function corresponding to the location prediction model determined based on the second prediction description information and the third description information can be expressed by the following formula (7):
[0113] L loss’ =MeanSquareError(M predict‘ M ground truth ) (7)
[0114] Among them, L loss‘ Represents the second loss function, M predict‘ Represents the second prediction description information, M ground truth Indicates the third description information.
[0115] The network parameters are updated by calculating the partial derivatives of the second loss function with respect to the network parameters in the position prediction model, which can be expressed by the following formula (8):
[0116]
[0117] In formula (8), w' t+1represents the updated network parameters in the location prediction model, w' t Represents the network parameters before updating in the location prediction model.
[0118] Optionally, the position prediction model can also be any deep network structure, as long as it can meet the input and output requirements and can be iteratively optimized through training, and finally input the parameters of a controller to obtain the correct description information. The position prediction model provided in the embodiment of the present application can have the same network structure as the parameter prediction model, see Figure 5; the difference between the position prediction model and the parameter prediction model is: the input data is different, the input data of the position prediction model is the parameters of the morphological controller, and the input data of the parameter prediction model is the description information; and, the output data is different, the output data of the position prediction model is the description information, and the output data of the parameter prediction model is the parameters of the morphological controller; and, the number of hidden units in each fully connected layer is different.
[0119] Step S604: calling the morphology controller to adjust the description information based on the target parameters, and the adjusted description information is used to make the morphology of the target part present a second morphology, and the second morphology matches the pre-set morphology.
[0120] In one embodiment, some feasible implementations included in step S604 can be found in the relevant description of step S203 in the embodiment of FIG. 2 , which will not be repeated here.
[0121] Based on the description of steps s1-s4 above, the embodiment of the present application proposes a training diagram of a parameter prediction model, see Figure 8. In Figure 8, assuming that the target part refers to the lips, the label information corresponding to the first sample image includes first description information corresponding to the lips when the first sample image is in the first training form. The first description information does not match the expected training form, so the first description information can be understood as the grid vertex position of the rough mouth form. The label information also includes second description information corresponding to the lips when the first sample image is in the second training form. The second description information matches the expected training form, so the second description information can be understood as the grid vertex position of the accurate mouth form.
[0122] The training contour information may refer to the contour information of the mouth, which includes the distance between the inner contour and the outer contour, and the distance between every two mesh vertices in the outer contour, which are collectively referred to as the distance features between the inner contour and the outer contour of the mouth.
[0123] After PCA dimensionality reduction processing is performed on the mesh vertex positions of the rough mouth shape, they are spliced with the distance features between the inner and outer contours of the mouth; the data obtained after splicing are input into the parameter prediction model M2P, M2P predicts parameters based on the input data, and outputs training parameters; the training parameters are used as input data of the position prediction model P2M, P2M predicts description information based on the input training parameters, and obtains first predicted description information, which can be understood as the predicted mesh vertex positions of the mouth shape; further, according to the predicted mesh vertex positions of the mouth shape and the mesh vertex positions of the accurate mouth shape after dimensionality reduction processing, the loss function of the parameter prediction model M2P is calculated, and the M2P model is trained based on the loss function.
[0124] In the embodiment of the present application, a first sample is used to train an M2P model. This M2P model can predict accurate description information based on rough description information and contour information of the target part. The trained M2P model is used to correct the morphology of the target part to obtain a target part morphology that matches the expected morphology. The trained M2P model can eliminate the human resources consumed by manual correction and avoid the errors caused by manual correction, thereby improving the efficiency and accuracy of morphology correction.
[0125] Based on the above-mentioned image processing method embodiment, the present application embodiment provides an image processing device. See Figure 9, which is a structural diagram of an image processing device provided by the present application embodiment. The image processing device shown in Figure 9 can run the following units:
[0126] An acquiring unit 901 is configured to acquire an image to be processed, wherein the image to be processed includes a target part of a subject's face, the shape of the target part is a first shape, and the first shape does not match an expected shape;
[0127] The acquisition unit 901 is further configured to acquire description information corresponding to the first form, and acquire contour information of the target part in the first form;
[0128] The correction unit 902 is configured to modify the shape of the target part based on the description information and the contour information, and correct the shape of the target part from the first shape to a second shape, where the second shape matches the expected shape.
[0129] In one embodiment, the target part is bound to a morphology controller. Based on the description information and the contour information, the correction unit 902 performs the following steps when correcting the morphology of the target part from a first morphology to a second morphology:
[0130] performing splicing processing on the description information and the outline information;
[0131] Calling a parameter prediction model to perform parameter prediction based on the splicing processing result to obtain target parameters of the morphology controller;
[0132] The morphology controller is called to adjust the description information based on the target parameter, and the adjusted description information is used to make the morphology of the target part present the second morphology.
[0133] In one embodiment, the correction unit 902 performs the following steps when splicing the description information and the contour information:
[0134] Obtaining a dimensionality reduction matrix, and performing dimensionality reduction processing on the description information using the dimensionality reduction matrix;
[0135] The description information after dimensionality reduction processing and the contour information are spliced together.
[0136] In one embodiment, the image to be processed is associated with an image grid, the image grid includes M grid vertices, the target part corresponds to N grid vertices among the M grid vertices, M and N are both integers greater than 1, and N is less than or equal to M; the descriptive information corresponding to the first form includes position information of the N grid vertices.
[0137] In one embodiment, the target part includes an inner contour and an outer contour, the inner contour corresponds to L mesh vertices, the outer contour corresponds to P mesh vertices, and the sum of L and P is less than N;
[0138] The contour information of the target part includes a first distance between the inner contour and the outer contour, and a second distance between every two mesh vertices among the P mesh vertices corresponding to the outer contour; the first distance includes the distance between the L mesh vertices and the mesh vertices with corresponding relationships among the P mesh vertices.
[0139] In one embodiment, the image processing apparatus shown in FIG9 further includes a processing unit 903:
[0140] The acquisition unit 901 is further configured to acquire a first training sample, wherein the first training sample includes a first sample image and label information corresponding to the first sample image; the first sample image includes a target part of a subject's face, and the label information includes first description information corresponding to the target part in a first training form in the first sample image, and second description information corresponding to the target part in a second training form in the first sample image; the first training form does not match an expected training form, and the second training form matches the expected training form;
[0141] The acquiring unit 901 is further configured to acquire training contour information of the target part in the first sample image when the target part is in the first training form, and to perform splicing processing on the training contour information and the first description information;
[0142] A processing unit 903 is configured to call the parameter prediction model to be trained to perform parameter prediction based on the splicing processing result to obtain training parameters of the morphology controller;
[0143] Descriptive information is predicted based on the training parameters to obtain first predicted descriptive information corresponding to the target part when it is in the second training form, and the parameter prediction model is trained based on the first predicted descriptive information and the second descriptive information.
[0144] In one embodiment, when the processing unit 903 predicts the description information based on the training parameters and obtains the first predicted description information corresponding to the target part in the second training form, the processing unit 903 performs the following steps:
[0145] The training parameters are used as input of a position prediction model, and the position prediction model is called to predict description information to obtain first predicted description information; the position prediction model is used to predict description information according to parameters of the morphology controller.
[0146] In one embodiment, the acquiring unit 901 is further configured to acquire a second training sample, the second training sample including a second sample image and a correspondence between third description information and a second training parameter of the morphology controller, the second sample image including a target part of the subject's face, and the third description information being description information corresponding to the target part in the second sample image when the target part is in the third morphology;
[0147] The processing unit 902 is also used to call the position prediction model to be trained, predict the description information based on the second training parameters, and obtain the second predicted description information; and train the position prediction model based on the second predicted description information and the third description information.
[0148] In one embodiment, when training the parameter prediction model based on the difference between the first prediction description information and the second description information, the processing unit 903 performs the following steps:
[0149] Determining a first loss function corresponding to the parameter prediction model based on the first prediction description position information and the second description information;
[0150] The back propagation algorithm is used to update the network parameters in the parameter prediction model based on the first loss function. In one embodiment, the acquisition unit 901 is used to perform the following steps when splicing the training profile information and the first description information:
[0151] Obtaining a dimensionality reduction matrix, and performing dimensionality reduction processing on the first description information using the dimensionality reduction matrix;
[0152] The first description information after the dimensionality reduction process and the training profile information are spliced together.
[0153] In one embodiment, when acquiring the dimensionality reduction matrix, the acquisition unit 901 is configured to perform the following steps:
[0154] Concatenating the first description information and the second description information to obtain a description information matrix;
[0155] Performing singular value decomposition on the description information matrix to obtain an eigenvector matrix and an eigenvalue matrix; the eigenvector matrix includes a plurality of eigenvectors; the eigenvalue matrix includes eigenvalues corresponding to each eigenvector matrix;
[0156] Adjusting the eigenvector matrix, arranging the eigenvectors in the adjusted eigenvector matrix in descending order according to the corresponding eigenvalues;
[0157] According to the eigenvalue of each eigenvector in the adjusted eigenvector matrix, K eigenvectors are selected in sequence, and a matrix composed of the selected K eigenvectors is determined as a dimensionality reduction matrix, and the sum of the eigenvalues corresponding to the K eigenvectors is greater than or equal to the feature threshold.
[0158] According to one embodiment of the present application, the steps involved in the image processing method shown in Figures 2 and 6 can be performed by various units in the image processing apparatus shown in Figure 9. For example, steps S201 and S202 shown in Figure 2 can be performed by the acquisition unit 901 in the image processing apparatus shown in Figure 9, and step S203 can be performed by the correction unit 902 in the image processing apparatus shown in Figure 9. For another example, steps S601 and S602 can be performed by the acquisition unit 901 in the image processing apparatus shown in Figure 9; steps S603 and S604 can be performed by the processing unit 903 in the image processing apparatus shown in Figure 9.
[0159] According to another embodiment of the present application, the various units in the image processing device shown in Figure 9 can be separately or all merged into one or several other units to constitute, or one (some) of the units can be further split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, other units can also be included based on the image processing device. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0160] According to another embodiment of the present application, an image processing apparatus as shown in FIG9 can be constructed, and the image processing method of the embodiment of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding methods shown in FIG2 and FIG9 on a general-purpose computing device such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), a random access memory medium (RAM), and a read-only memory medium (ROM). The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into the image processing device via the computer-readable storage medium and executed therein.
[0161] In an embodiment of the present application, the target part of the face of the object in the image to be processed is in a first form. If the first form does not match the expected form, the description information corresponding to the first form and the contour information of the target part when in the first form can be obtained. Further, the target part is morphologically corrected based on the description information corresponding to the first form and the contour information of the target part, so as to correct the form of the target part from the first form to the second form, which matches the expected form. In this way, there is no need to manually correct the first form. Instead, the target part is automatically morphologically corrected based on the description information of the first form and the contour information of the target part when in the first form, so that the form of the target part meets the expected form. This eliminates the human resource consumption caused by manual correction and improves the efficiency of morphological correction.
[0162] Based on the above-mentioned image processing method embodiment and image processing apparatus embodiment, the present application provides a computer device. Referring to Figure 10 , which is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, the computer device shown in Figure 10 may include a processor 1001, an input interface 1002, an output interface 1003, and a computer storage medium 1004. The processor 1001, input interface 1002, output interface 1003, and computer storage medium 1004 may be connected via a bus or other means.
[0163] Computer storage medium 1004 can be stored in the memory of the image processing device. The computer storage medium 1004 is used to store computer programs, and the processor 1001 is used to execute the computer programs stored in the computer storage medium 1004. Processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device. It is suitable for implementing one or more computer programs, and is specifically suitable for loading and executing the image processing method provided in the embodiments of the present application.
[0164] The embodiment of the present application also provides a computer storage medium (Memory), which is a memory device of a computer device for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium of the computer device and, of course, the extended storage medium supported by the computer device. The computer storage medium provides a storage space that stores the operating system of the computer device. In addition, one or more computer programs suitable for being loaded and executed by the processor 1001 are also stored in the storage space. It should be noted that the computer storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.
[0165] In one embodiment, one or more computer programs stored in the computer storage medium can be loaded by the processor 1001 and execute the image processing method provided in the embodiment of the present application.
Claims
1. An image processing method, executed by a computer device, comprising: Acquire an image to be processed, wherein the image to be processed includes a target part of an object, the shape of the target part is a first shape, and the first shape does not match the expected shape; Acquire description information corresponding to the first form, and acquire contour information of the target part when in the first form; The shape of the target part is modified based on the description information and the contour information, and the shape of the target part is modified from the first shape to a second shape, and the second shape matches the expected shape.
2. The method according to claim 1, wherein the target part is bound to a morphology controller, and the morphology of the target part is modified based on the description information and the contour information to modify the morphology of the target part from a first morphology to a second morphology, comprising: Performing splicing processing on the description information and the outline information; Calling a parameter prediction model to perform parameter prediction based on the splicing processing result to obtain target parameters of the morphology controller; The morphology controller is called to adjust the description information based on the target parameter, and the adjusted description information is used to make the morphology of the target part present the second morphology.
3. The method according to claim 2, wherein the splicing processing of the description information and the contour information comprises: Obtaining a dimensionality reduction matrix, and using the dimensionality reduction matrix to perform dimensionality reduction processing on the description information; The description information after the dimensionality reduction process and the contour information are concatenated.
4. The method according to claim 1, wherein the image to be processed is associated with an image grid, the image grid includes M grid vertices, the target part corresponds to N grid vertices among the M grid vertices, M and N are both integers greater than 1, and N is less than or equal to M; The description information corresponding to the first form includes position information of the N mesh vertices.
5. The method according to claim 4, wherein the target part comprises an inner contour and an outer contour, the inner contour corresponds to L mesh vertices, the outer contour corresponds to P mesh vertices, and the sum of L and P is less than N; The contour information of the target part includes a first distance between the inner contour and the outer contour, and a second distance between every two mesh vertices among the P mesh vertices corresponding to the outer contour; the first distance includes the distance between the L mesh vertices and the mesh vertices having a corresponding relationship among the P mesh vertices.
6. The method of claim 2, further comprising: Acquire a first training sample, where the first training sample includes a first sample image and label information corresponding to the first sample image; The first sample image includes a target part of the object, the label information includes first description information corresponding to the target part in the first sample image when it is in a first training form, and second description information corresponding to the target part in the first sample image when it is in a second training form; the first training form does not match the expected training form, and the second training form matches the expected training form; Acquire training contour information of the target part in the first sample image when the target part is in the first training form, and perform splicing processing on the training contour information and the first description information; Calling the parameter prediction model to be trained to perform parameter prediction based on the splicing processing result to obtain the training parameters of the morphology controller; Descriptive information is predicted based on the training parameters to obtain first predicted descriptive information corresponding to the target part when it is in the second training form, and the parameter prediction model is trained based on the first predicted descriptive information and the second descriptive information.
7. The method according to claim 6, wherein the step of predicting description information based on the training parameters to obtain first predicted description information corresponding to the target part in the second training state comprises: Using the training parameters as input of a position prediction model, calling the position prediction model to perform description information prediction, and obtaining the first prediction description information; The position prediction model is used to predict description information based on parameters of the morphology controller.
8. The method of claim 7, further comprising: Acquire a second training sample, the second training sample comprising a second sample image, and a correspondence between third description information and a second training parameter of the morphology controller, the second sample image comprising a target part of an object, and the third description information refers to description information corresponding to the target part in the second sample image when it is in a third training morphology; Calling the position prediction model to be trained, and performing description information prediction based on the second training parameters to obtain second predicted description information; The location prediction model is trained based on the second prediction description information and the third description information.
9. The method according to claim 6, wherein the training of the parameter prediction model according to the first prediction description information and the second description information comprises: Determining a first loss function corresponding to the parameter prediction model based on the first prediction description position information and the second description information; A back propagation algorithm is used to update the network parameters in the parameter prediction model based on the first loss function.
10. The method according to claim 6, wherein the step of concatenating the training profile information and the first description information comprises: Obtaining a dimensionality reduction matrix, and using the dimensionality reduction matrix to perform dimensionality reduction processing on the first description information; The first description information after the dimensionality reduction process and the training profile information are concatenated.
11. The method according to claim 10, wherein obtaining the dimension reduction matrix comprises: Concatenating the first description information and the second description information to obtain a description information matrix; Performing singular value decomposition processing on the description information matrix to obtain an eigenvector matrix and an eigenvalue matrix; The eigenvector matrix includes a plurality of eigenvectors; the eigenvalue matrix includes the eigenvalues corresponding to each of the eigenvectors; The eigenvector matrix is adjusted, and the eigenvectors in the adjusted eigenvector matrix are arranged in descending order according to the corresponding eigenvalues; According to the eigenvalue of each eigenvector in the adjusted eigenvector matrix, K eigenvectors are selected in order, and the matrix composed of the K eigenvectors is determined as the dimensionality reduction matrix, and the sum of the eigenvalues corresponding to the K eigenvectors is greater than or equal to the feature threshold.
12. An image processing device, comprising: An acquisition unit, configured to acquire an image to be processed, wherein the image to be processed includes a target part of an object, the shape of the target part is a first shape, and the first shape does not match an expected shape; The acquisition unit is further configured to acquire description information corresponding to the first form, and acquire contour information of the target part when in the first form; A correction unit is used to modify the shape of the target part based on the description information and the contour information, and correct the shape of the target part from the first shape to a second shape, wherein the second shape matches the expected shape.
13. A computer device comprising: a processor adapted to implement one or more computer programs; and, A computer storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the image processing method according to any one of claims 1 to 11.
14. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, it is used to execute the image processing method according to any one of claims 1 to 11.
15. A computer program product or a computer program, wherein the computer program product comprises a computer program, wherein the computer program is stored in a computer storage medium, and when the computer program in the computer storage medium is executed by a processor, it is used to load and execute the image processing method according to any one of claims 1 to 11.
