Portrait Mandibular Line Retouching Method, Device and Equipment Based on Facial Feature Points
By detecting the key points of the face in the portrait image, adding light and shadow special effects, and interpolation fitting between the corner point of the mandible and the chin point, the problem of not being clear enough between the mandible edge and the neck in the prior art is solved, and a clear and tight jaw line editing effect is achieved.
Patent Information
- Application Number
- CN202111613244.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2041-12-27
AI Technical Summary
The existing methods of portrait jawline editing cannot make the layers between the jaw edge and the neck clear and tight.
By obtaining the face image to be processed, detecting the face key points, adding light and shadow special effects, and interpolation fitting between the mandible corner point and the chin point, the jaw line profile is adjusted using the grid deformation method of Laplace coordinates.
It realizes the jaw line editing effect with clear and tight, natural and smooth lines, and improves the user's experience of facial beauty.
Smart Images

Figure CN114255230B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and particularly to a portrait mandibular line retouching method, device and equipment based on facial feature points. Background Art
[0002] In addition to the nose and chin, the mandibular margin is also particularly important for the beauty index of the side face. The mandibular line refers to an arc bone tissue between the earlobe and the chin, which determines the basis of the side face line. Whether for women or men, a clear mandibular line can effectively enhance the side face temperament. Compared with the planar beauty of the front face, the beauty of the side face is related to the level and three-dimensionality. A clear and distinct mandibular line contour can bring a sense of youth and an elegant and advanced temperament to girls, making them look thinner and fresher; a sharp and angular mandibular margin makes men more sexually attractive and beautiful. Facial relaxation and sagging will cause the platysma muscle to stretch downward, blurring the mandibular margin line, resulting in a visually bloated and old-fashioned appearance. Therefore, a clear mandibular line has become one of the important aesthetic indicators pursued by everyone.
[0003] Although the existing beauty shaping effects such as face slimming and small face can adjust the size and proportion of the human face, they cannot make the level between the mandibular margin and the neck distinct, clear and firm. Therefore, it is not enough to simply use a deformation scheme to change the contour. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a portrait mandibular line retouching method, device and equipment based on facial feature points, aiming to solve the problem that the existing portrait mandibular line retouching method has insufficient clarity between the mandibular margin and the neck.
[0005] To achieve the above purpose, the present invention provides a portrait mandibular line retouching method based on facial feature points, and the method includes:
[0006] Obtain a to-be-processed face image input by a user;
[0007] Add a light and shadow special effect at the junction between the mandibular line contour and the neck of the to-be-processed face image to obtain a light and shadow adjustment image;
[0008] Interpolate and fit between the mandibular angle point and the chin point in the mandibular line contour based on the light and shadow adjustment image to obtain a face image after mandibular line retouching processing.
[0009] Preferably, after obtaining the to-be-processed face image input by the user, it further includes:
[0010] Perform face point detection on the to-be-processed face image to obtain face key points, where the face key points include contour key points of the face contour.
[0011] Preferably, the step of adding a light and shadow special effect at the junction between the mandibular line contour and the neck of the to-be-processed face image includes:
[0012] Establish a first mapping relationship between the face points of the model standard face image and the face key points of the to-be-processed face image;
[0013] Within the area set in the face mask image of the model standard face image through the contour key points, adjust the brightness contrast and the degree of contrast between the area inside the contour key points and the area outside the contour key points.
[0014] Preferably, the step of performing interpolation fitting between the mandibular angle point and the chin point in the mandibular line contour based on the light and shadow adjustment map to obtain the face image after mandibular line retouching includes:
[0015] Determine the mandibular angle point of the to-be-processed face image based on the face key points;
[0016] Adjust the first length from the mandibular angle point to the chin point and the second length from the mandibular angle point to the earlobe point to satisfy a preset ratio, and adjust the angle of the mandibular angle point to satisfy a preset angle;
[0017] Perform interpolation fitting processing on the constraint points through the grid deformation method of Laplace coordinates to obtain the deformed face point set, where the constraint points include the mandibular angle point, the chin point, and the earlobe point;
[0018] Based on the light and shadow adjustment map, draw based on the face key point set to obtain the face image after mandibular line retouching.
[0019] Preferably, the step of determining the mandibular angle point of the to-be-processed face image based on the face key points includes:
[0020] Calculate the angle between the first vector from the contour traversal point to the temple point and the second vector from the contour traversal point to the chin point, and take the point corresponding to the maximum value of the angle among the angles as the mandibular angle point.
[0021] Preferably, the step of drawing based on the light and shadow adjustment map with the face key point set as the benchmark to obtain the face image after mandibular line retouching includes:
[0022] Take the light and shadow adjustment map as the input image, and establish a second mapping relationship between the face point set and the face key points;
[0023] Perform sampling in the input image through the second mapping relationship, and draw based on the face point set to obtain the output face image.
[0024] Preferably, the preset ratio is 2:1; the preset angle is 110 - 120 degrees.
[0025] To achieve the above object, the present invention further provides a portrait lower jaw line retouching device based on facial feature points, and the device includes:
[0026] An acquisition unit, configured to acquire a to-be-processed face image input by a user;
[0027] A light and shadow adjustment unit, configured to obtain a light and shadow adjusted image by adding a light and shadow special effect at the junction between the lower jaw line contour of the to-be-processed face image and the neck;
[0028] A retouching processing unit, configured to perform interpolation fitting between the mandibular angle point and the chin point in the lower jaw line contour based on the light and shadow adjusted image, so as to obtain a face image after retouching the lower jaw line.
[0029] To achieve the above object, the present invention further proposes a device, including a processor, a memory, and a portrait lower jaw line retouching program stored in the memory, and the portrait lower jaw line retouching program is executed by the processor to implement the steps of a method for retouching a portrait lower jaw line based on facial feature points as described in the above embodiment.
[0030] To achieve the above object, the present invention further proposes a computer-readable storage medium, on which a portrait lower jaw line retouching program is stored, and the portrait lower jaw line retouching program is executed by a processor to implement the steps of a method for retouching a portrait lower jaw line based on facial feature points as described in the above embodiment.
[0031] Beneficial effects:
[0032] In the above solution, by adding a light and shadow special effect at the junction between the lower jaw line contour of the to-be-processed face image and the neck, and performing interpolation fitting between the mandibular angle point and the chin point, the purpose of retouching the lower jaw line is achieved, and a retouching effect of a clear, firm, and natural and smooth lower jaw line can be obtained, and the operation steps are simple, thereby improving the user's experience of the face beautification effect.
[0033] In the above solution, by adjusting the light and shadow information between the lower jaw line and the neck through the contour key points, and adjusting the light and dark contrast and the degree of contrast between the area inside the contour key points and the area outside the contour key points, a clear shadow transition and a three-dimensional sense of hierarchy can be ensured between the two.
[0034] In the above solution, by adjusting the angle between the mandibular angle point, the earlobe point, and the chin point, and fitting a firm and natural lower jaw edge between the mandibular angle point and the chin point of the face contour through the grid deformation method of Laplace coordinates, a retouching effect of a clear, firm, and natural and smooth lower jaw line is obtained. Brief Description of the Drawings
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0036] Figure 1 It is a schematic flowchart of a method for retouching the mandibular line of a portrait based on facial feature points provided by an embodiment of the present invention.
[0037] Figure 2 It is a schematic diagram of the comparison before and after retouching the left mandibular line of a face image according to the present invention.
[0038] Figure 3 It is a schematic diagram of the comparison before and after retouching the right mandibular line of a face image according to the present invention.
[0039] Figure 4 It is a schematic structural diagram of a device for retouching the mandibular line of a portrait based on facial feature points provided by an embodiment of the present invention.
[0040] The realization of the invention purpose, functional features and advantages will be further described with reference to the embodiments and the drawings. Detailed Embodiments
[0041] To make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the present invention to be protected, but only represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0042] In the description of the present invention, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0043] The content of the present invention will be elaborated in detail below in combination with the embodiments.
[0044] In the existing beauty shaping effects such as face slimming and small face, although the size ratio of the human face can be adjusted, it is impossible to make the area between the mandibular margin and the neck distinct, clear and firm. Simply using the deformation scheme to change the contour is not enough. The main reasons are as follows:
[0045] (1) Due to the traditional mandibular line retouching process, professional practitioners need to first determine the temperament of the portrait, observe the lines of the facial features, find out the parts that affect the beauty of the picture, use PS liquefaction or other operations to smooth the lines of the chin and the side of the face, and use the light and shade relationship to artificially draw a clean and neat mandibular line. It is difficult for ordinary users to obtain satisfactory mandibular line retouching effects without rich experience;
[0046] (2) The mandibular line not only needs to have a certain angle, but also needs to look natural. It is difficult for users to coordinate during the use of the beauty shaping effect, and the process of adding light and shadow also takes a lot of time; The existing mainstream beauty shaping effects such as small head and face slimming only change the proportion of the facial contour, and cannot make the contour between the mandibular margin and the neck distinct, achieving a clear and firm mandibular line effect.
[0047] Based on this, the present invention adjusts the light and shadow information between the user's mandibular line and the neck through the contour key points of the human face, arranges the messy light and shade contrast between the mandibular margin and the neck, ensures a clear shadow transition and three-dimensional sense of hierarchy between the two, and at the same time adjusts the angle between the mandibular angle point, the temple point and the chin point based on the public mandibular line beauty standard, fitting a firm and natural mandibular margin between the mandibular angle point and the chin point of the user's facial contour, so that the user can accurately and quickly obtain a mandibular line retouching effect with a natural, just right and distinct arc through simple operations.
[0048] Refer to Figure 1 The figure shows a schematic flow chart of a method for retouching the mandibular line of a portrait based on human face feature points provided by an embodiment of the present invention.
[0049] In this embodiment, the method includes:
[0050] S11, obtaining a to-be-processed human face image input by the user.
[0051] Further, after obtaining the to-be-processed human face image input by the user, it further includes:
[0052] Performing human face point detection on the to-be-processed human face image to obtain human face key points, where the human face key points include contour key points of the facial contour.
[0053] S12, obtaining a light and shadow adjustment diagram by adding a light and shadow special effect at the junction between the mandibular line contour and the neck of the to-be-processed human face image.
[0054] Among them, the step of adding a light and shadow special effect at the junction between the mandibular line contour and the neck of the face image to be processed includes:
[0055] S12-1, establishing a first mapping relationship between the face points of the model standard face map and the face key points of the face image to be processed;
[0056] S12-2, within the area set in the face mask image of the model standard face map through the contour key points, adjusting the light and dark contrast and the degree of contrast between the area inside the contour key points and the area outside the contour key points.
[0057] In this embodiment, the adjustment of the light and dark relationship of the facial contour is mainly achieved by adding light and shadow at the junction between the mandibular margin contour and the neck, so as to achieve the effect of clear mandibular margin lines. Specifically, it includes: (1) establishing a mapping relationship between the face points of the face mask image of the model standard face map and the face key points of the user; (2) taking the face image to be processed input by the user detected as the input image Input 0 , performing face point detection on it (referring to locating the key area positions of the face in a given face image, including eyebrows, eyes, nose, mouth, facial contour, etc.), obtaining face key points (including contour key points), within the area set in the face mask image of the model standard face map, adjusting the light and dark contrast and the degree of contrast between the area inside the contour key points and the area outside the contour key points, so that an obvious light and shadow change is obtained at the junction of the face contour and the neck, and outputting the result image Output 0 .
[0058] S13, performing interpolation fitting between the mandibular angle point and the chin point in the mandibular line contour based on the light and shadow adjustment map to obtain the face image after mandibular line retouching processing.
[0059] Among them, the step of performing interpolation fitting between the mandibular angle point and the chin point in the mandibular line contour based on the light and shadow adjustment map to obtain the face image after mandibular line retouching processing includes:
[0060] S13-1, determining the mandibular angle point of the face image to be processed based on the face key points.
[0061] Further, the step of determining the mandibular angle point of the face image to be processed based on the face key points includes:
[0062] Calculating the angle between the first vector from the contour traversal point to the temple point and the second vector from the contour traversal point to the chin point, and taking the point corresponding to the maximum value of the angle among the angles as the mandibular angle point.
[0063] S13-2. Adjust the first length from the mandibular angle point to the chin point and the second length from the mandibular angle point to the earlobe point to satisfy a preset ratio, and adjust the angle of the mandibular angle point to satisfy a preset angle.
[0064] S13-3. Perform interpolation fitting on the constraint points by means of the grid deformation method of Laplacian coordinates to obtain the deformed face point set, where the constraint points include the mandibular angle point, the chin point, and the earlobe point.
[0065] Further, the preset ratio is 2:1; the preset angle is 110-120 degrees. More preferably, the preset angle is 120 degrees.
[0066] S13-4. Based on the light and shadow adjustment diagram, draw with the face key point set as the benchmark to obtain the face image after the mandibular line is retouched.
[0067] Further, the step of drawing with the face point set as the benchmark based on the light and shadow adjustment diagram to obtain the face image after the mandibular line is retouched includes:
[0068] S13-4-1. Take the light and shadow adjustment diagram as the input image and establish the second mapping relationship between the face point set and the face key points;
[0069] S13-4-2. Sample in the input image through the second mapping relationship and draw with the face point set as the benchmark to obtain the output face image.
[0070] In this embodiment, by using the contour key points of the face contour as constraint points to perform interpolation fitting on the remaining contour points, the effect of obtaining a natural, smooth and tight mandibular line contour can be achieved, where the remaining contour points refer to other contour points except the set constraint points (mandibular angle point, chin point, earlobe point). Specifically, it includes:
[0071] (1) Since the mandibular angle point of the human face generally has relatively obvious angle changes, based on this feature, detect the face key point set OrigPoints from the input face image Input 0 of the user, and use the contour traversal point P to the temple point of the face as the vector V 1 , and use the contour traversal point P to the chin point P jaw as the vector V 2 , calculate the included angle between V1 and V 2 , and the calculation formula is where, |V 1 | represents the modulus of the vector V 1 , |V 2 | is the vector V 2The modulus length. The points with the largest angles calculated from the left contour points and the right contour points respectively are used as the left mandibular angle point and the right mandibular angle point, and are marked as Point 1 and Point 2 . Further, the contour traversal point P refers to all the points included in the section of the face contour from the temple point on the left (or right) side of the face to the chin point. Each point will form a first vector with the temple point and a second vector with the chin point. If there are ten points, then by calculating the angles between the first vector and the second vector ten times, the point corresponding to the maximum value among the ten obtained angles is taken as the mandibular angle point.
[0072] (2) Based on the aesthetic standard of the mandibular line among the public, the mandibular angle that the public likes is between 110 degrees and 120 degrees, which conforms to the aesthetic standard of the human for the tight mandibular line. A mandibular angle less than 110 degrees will give people a feeling of "big face" and "wide face" caused by bony broadness. If the mandibular angle exceeds 120 degrees, the side face mandibular line will be too monotonous and lack a three-dimensional sense of hierarchy. At the same time, the best ratio of the length from the mandibular angle point to the chin point to the length from the mandibular angle point to the earlobe point is 2:1. Based on the above standards, take the left mandibular angle point Point 1 , the chin point Point 0 , and the earlobe point Pointear 1 to form a triangle, and adjust Point 1 so that the distance from Point 1 to Point 0 is in a ratio of 2:1 to the distance from Point 1 to Pointear 1 , and at the same time, the angle with Point 1 as the vertex remains 120 degrees. The adjustment of the right Point 2 is the same as that of the left side.
[0073] (3) Assume that the finally fitted point set is V'. Set the marked points Point 1 , Point 0 , Pointear 1 , Point 2 , Pointear 2 as the constraint points V j ' in the V' set. The solution of the set V' of the deformed vertices (the vertices refer to all the finally calculated face contour points, and the temple points, chin points, and mandibular angle points involved in the above (1) and (2) are part of the finally calculated face contour points) based on the grid deformation method of Laplacian coordinates can be reduced to solving an optimization problem with position constraints In the formula, w jLet \(w\) be the constraint point weight, and \(V'\) be the finally solved point set, that is, the deformed face point set RetouchPoints obtained by Laplacian deformation interpolation fitting.
[0074] (4) Use the light and shadow adjustment map Output obtained in step S12 0 as the input Input 1 , establish the mapping relationship between the user's face point set RetouchPoints and the user's original face key point set OrigPoints, and sample in Input 1 based on this mapping relationship, and draw it into output 1 as the final result map of the jawline effect. See Figure 2 、 3 The figure shows the comparison before and after jawline retouching of the face image.
[0075] Refer to Figure 4 The figure shows the structural schematic diagram of a portrait jawline retouching device based on face feature points provided by an embodiment of the present invention.
[0076] In this embodiment, the device 40 includes:
[0077] An acquisition unit 41, configured to acquire a face image to be processed input by the user;
[0078] A light and shadow adjustment unit 42, configured to obtain a light and shadow adjustment map by adding light and shadow special effects at the junction between the jawline contour of the face image to be processed and the neck;
[0079] A retouching processing unit 43, configured to perform interpolation fitting between the mandibular angle point and the chin point in the jawline contour based on the light and shadow adjustment map to obtain a face image after jawline retouching processing.
[0080] Furthermore, the acquisition unit 41 further includes:
[0081] A face point detection unit, configured to perform face point detection on the face image to be processed to obtain face key points, where the face key points include contour key points of the face contour.
[0082] Furthermore, the light and shadow adjustment unit 42 further includes:
[0083] A first establishment unit, configured to establish a first mapping relationship between the face points of the model's standard face map and the face key points of the face image to be processed;
[0084] The light and shade adjustment unit is used to adjust the light and shade contrast and the degree of contrast between the area inside the contour key points and the area outside the contour key points within the area set in the face mask image of the model's standard face map through the contour key points.
[0085] Furthermore, the retouching processing unit 43 further includes:
[0086] The angle calculation unit is used to confirm the mandibular angle point of the face image to be processed based on the face key points;
[0087] The angle calculation unit is further used for:
[0088] Calculate the included angle between the first vector from the contour traversing point to the temple point and the second vector from the contour traversing point to the chin point, and take the point corresponding to the maximum value of the included angles as the mandibular angle point.
[0089] The ratio adjustment unit is used to adjust the first length from the mandibular angle point to the chin point and the second length from the mandibular angle point to the earlobe point to satisfy a preset ratio, and adjust the angle of the mandibular angle point to satisfy a preset angle;
[0090] Furthermore, the preset ratio is 2:1; the preset angle is 110 - 120 degrees.
[0091] The interpolation fitting unit is used to perform interpolation fitting processing on the constraint points through the grid deformation method of Laplace coordinates to obtain the deformed face point set, where the constraint points include the mandibular angle point, the chin point, and the earlobe point;
[0092] The drawing unit is used to draw based on the light and shade adjustment map with the face key point set as the reference to obtain the face image after retouching the mandibular line.
[0093] The drawing unit further includes:
[0094] The second establishment unit is used to establish a second mapping relationship between the face point set and the face key points with the light and shade adjustment map as the input image;
[0095] The sampling drawing unit is used to sample in the input image through the second mapping relationship and draw with the face point set as the reference to obtain the output face image.
[0096] Each unit module of the device 40 can respectively execute the corresponding steps in the above method embodiments, so the unit modules will not be elaborated here. For details, please refer to the description of the above corresponding steps.
[0097] An embodiment of the present invention further provides a device, which includes the portrait mandibular line retouching device based on facial feature points as described above. Among them, the portrait mandibular line retouching device based on facial feature points may adopt Figure 4 the structure of the embodiment, and correspondingly, it can execute Figure 1 the technical solution of the method embodiment shown. Its implementation principle and technical effects are similar. For details, reference can be made to the relevant records in the above embodiments, which will not be elaborated here.
[0098] The device includes: devices with a photographing function such as mobile phones, digital cameras or tablet computers, or devices with image processing functions, or devices with image display functions. The device may include components such as a memory, a processor, an input unit, a display unit, and a power supply.
[0099] Among them, the memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as an image playback function, etc.); the data storage area can store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory may further include a memory controller to provide access to the memory for the processor and the input unit.
[0100] The input unit can be used to receive input digital or character or image information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. Specifically, the input unit of this embodiment, in addition to including a camera, may further include a touch-sensitive surface (such as a touch display screen) and other input devices.
[0101] The display unit can be used to display information input by the user or information provided to the user and various graphical user interfaces of the device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. The display unit may include a display panel. Optionally, the display panel can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface can cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor to determine the type of touch event, and then the processor provides a corresponding visual output on the display panel according to the type of touch event.
[0102] An embodiment of the present invention also provides a computer-readable storage medium. This computer-readable storage medium may be the computer-readable storage medium included in the memory in the above embodiment; it may also exist alone and be a computer-readable storage medium not assembled into the device. At least one instruction is stored in the computer-readable storage medium, and the instruction is loaded and executed by a processor to implement Figure 1 the portrait mandibular line retouching method based on facial feature points shown in
[0103] It should be noted that the various embodiments in this specification are all described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same and similar parts between the various embodiments, reference can be made to each other. For the apparatus embodiment, the device embodiment and the storage medium embodiment, since they are basically similar to the method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiment.
[0104] Moreover, in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the said element.
[0105] The above description shows and describes the preferred embodiments of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be within the scope of the inventive concept herein, by the above teachings or the technology or knowledge in the relevant field for modification. And the changes and modifications made by those skilled in the art that do not depart from the spirit and scope of the present invention should all be within the protection scope of the appended claims of the present invention.
Claims
1. A method for retouching the mandibular line of a portrait based on facial feature points, characterized in that, the method includes: Obtain the face image to be processed input by the user; further including: Perform face point detection on the face image to be processed to obtain face key points, where the face key points include contour key points of the facial contour; Add a light and shadow special effect at the junction between the mandibular line contour and the neck of the face image to be processed to obtain a light and shadow adjustment map; Interpolate and fit between the mandibular angle point and the chin point in the mandibular line contour based on the light and shadow adjustment map to obtain the face image after mandibular line retouching processing; including: Determine the mandibular angle point of the face image to be processed based on the face key points; Adjust the first length from the mandibular angle point to the chin point and the second length from the mandibular angle point to the earlobe point to satisfy a preset ratio, and adjust the angle of the mandibular angle point to satisfy a preset angle; Perform interpolation fitting processing on the constraint points by the grid deformation method of Laplacian coordinates to obtain a deformed set of face points, where the constraint points include the mandibular angle point, the chin point, and the earlobe point; Based on the light and shadow adjustment map, draw based on the set of face key points to obtain the face image after mandibular line retouching.
2. A method for retouching the mandibular line of a portrait based on facial feature points according to claim 1, characterized in that, the step of adding a light and shadow special effect at the junction between the mandibular line contour and the neck of the face image to be processed includes: Establish a first mapping relationship between the face points of the model's standard face image and the face key points of the face image to be processed; In the area set by the face mask image of the model's standard face image through the contour key points, adjust the light and dark contrast and the degree of contrast between the area inside the contour key points and the area outside the contour key points.
3. A method for retouching the mandibular line of a portrait based on facial feature points according to claim 1, characterized in that, the step of determining the mandibular angle point of the face image to be processed based on the face key points includes: Calculate the angle between the first vector from the contour traversal point to the temple point and the second vector from the contour traversal point to the chin point, and take the point corresponding to the maximum angle in the angles as the mandibular angle point.
4. A method for retouching the mandibular line of a portrait based on facial feature points according to claim 1, characterized in that, the step of obtaining the face image after mandibular line retouching by drawing based on the set of face key points with the light and shadow adjustment map as the basis includes: Use the light and shadow adjustment map as the input image to establish a second mapping relationship between the set of face points and the face key points; Sample in the input image through the second mapping relationship, and draw based on the set of face points to obtain the output face image.
5. A method for retouching the mandibular line of a portrait based on facial feature points according to claim 1, characterized in that, the preset ratio is 2:1; the preset angle is 110 - 120 degrees.
6. A device for retouching the mandibular line of a portrait based on facial feature points, characterized in that, the device includes: An acquisition unit for acquiring a face image to be processed input by a user; the acquisition unit further includes: A face point detection unit for performing face point detection on the face image to be processed to obtain face key points, where the face key points include contour key points of the face contour; A light and shadow adjustment unit for obtaining a light and shadow adjustment map by adding a light and shadow special effect at the junction between the contour of the lower jaw line and the neck of the face image to be processed; An image retouching processing unit for performing interpolation fitting between the mandibular angle point and the chin point in the lower jaw line contour based on the light and shadow adjustment map to obtain a face image after retouching the lower jaw line; further, the image retouching processing unit further includes: An angle calculation unit for determining the mandibular angle point of the face image to be processed based on the face key points; A ratio adjustment unit for adjusting the first length from the mandibular angle point to the chin point and the second length from the mandibular angle point to the earlobe point to satisfy a preset ratio, and adjusting the angle of the mandibular angle point to satisfy a preset angle; An interpolation fitting unit for performing interpolation fitting processing on constraint points by a grid deformation method of Laplace coordinates to obtain a deformed set of face points, where the constraint points include the mandibular angle point, the chin point, and the earlobe point; A drawing unit for drawing based on the light and shadow adjustment map with the set of face key points as a reference to obtain a face image after retouching the lower jaw line.
7. A device Characterized in that It includes a processor, a memory, and a portrait lower jaw line retouching program stored in the memory, and the portrait lower jaw line retouching program is executed by the processor to implement the steps of a method for retouching a portrait lower jaw line based on face feature points as described in any one of claims 1 to 5.
8. A computer-readable storage medium Characterized in that The computer-readable storage medium stores a portrait lower jaw line retouching program, and the portrait lower jaw line retouching program is executed by a processor to implement the steps of a method for retouching a portrait lower jaw line based on face feature points as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Tooth preparation-based data flexible fusion method
CN103871097A
A method for automatically adjust a three-dimensional human face model
CN109389682A