WO2020177394A1 - 一种图像处理方法及装置 - Google Patents
一种图像处理方法及装置 Download PDFInfo
- Publication number
- WO2020177394A1 WO2020177394A1 PCT/CN2019/119534 CN2019119534W WO2020177394A1 WO 2020177394 A1 WO2020177394 A1 WO 2020177394A1 CN 2019119534 W CN2019119534 W CN 2019119534W WO 2020177394 A1 WO2020177394 A1 WO 2020177394A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- area
- key point
- deformation
- point information
- face
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/30—Determination of transform parameters for the alignment of images, i.e. image registration
- G06T7/33—Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—Two-dimensional [2D] image generation
- G06T11/60—Creating or editing images; Combining images with text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
- G06V40/171—Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
- G06V10/247—Aligning, centring, orientation detection or correction of the image by affine transforms, e.g. correction due to perspective effects; Quadrilaterals, e.g. trapezoids
Definitions
- This application relates to image processing technology, in particular to an image processing method and device.
- the embodiments of the present application provide an image processing method and device.
- An embodiment of the present application provides an image processing method, the method includes: obtaining a first image, identifying a face area in the first image, and determining key point information related to the face area, where the key point information includes : Key point information and outer edge key point information of the face area; the area corresponding to the outer edge key point information includes the face area and is larger than the face area; determining multiple deformation areas based on the key point information, Performing an image deformation process on the face region based on at least a part of the deformation region in the plurality of deformation regions to generate a second image.
- the key point information of the face area includes key point information of the organs of the face area and key point information of the edge of the face area; the edge of the face area corresponds to all The contour of the facial area; the key point information of the organ includes the central key point information of the organ and/or the contour key point information of the organ.
- the determining multiple deformation areas based on the key point information includes: determining the multiple deformation areas based on any three adjacent key points in the key point information .
- the performing image deformation processing on the facial region based on at least a portion of the deformation regions in the plurality of deformation regions includes: determining the first to-be-processed facial region in the facial region Target area; based on the key point information corresponding to the first target area, determine the deformed area corresponding to the first target area from the plurality of deformed areas; image the deformed area corresponding to the first target area Deformation treatment.
- the first target area is an eye area; the eye area includes a left eye area and/or a right eye area; the key based on the first target area Point information, determining the deformation area corresponding to the first target area from the plurality of deformation areas, including: determining the deformation area corresponding to the first target area from the plurality of deformation areas based on the key point information corresponding to the left eye area A first group of deformed areas corresponding to the left-eye area, and/or, based on key point information corresponding to the right-eye area, determining a second group of deformed areas corresponding to the right-eye area from the plurality of deformed areas;
- the performing image deformation processing on the deformation area corresponding to the first target area includes: performing image deformation processing on the first group of deformation areas and/or the second group of deformation areas; wherein, the first group The image deformation direction of the deformed area is opposite to the image deformation direction of the second group of deformed areas, so that the distance between the left eye
- the first target area is an eye corner area; the eye corner area includes the left eye corner area and/or the right eye corner area; the first target area corresponds to Determining the deformation area corresponding to the first target area from the plurality of deformation areas includes: based on the key point information corresponding to the corner of the eye area of the left eye, from the plurality of deformation areas Determining a third group of deformed regions, and/or, based on key point information corresponding to the corner of the right eye region, determining a fourth group of deformed regions corresponding to the corner of the right eye from the plurality of deformed regions;
- the performing image deformation processing on the deformation area corresponding to the first target area includes: stretching or compressing the third group of deformation areas and/or the fourth group of deformation areas in a first specific direction to adjust the The position of the corner of the eye of the left eye area and/or the position of the corner of the eye of the right eye area.
- the first target area is an eye area; the eye area includes a left eye area and/or a right eye area; the key based on the first target area Point information, determining the deformation area corresponding to the first target area from the plurality of deformation areas, including: determining the deformation area corresponding to the first target area from the plurality of deformation areas based on the key point information corresponding to the left eye area A fifth group of deformed areas corresponding to the left-eye area, and/or, based on key point information corresponding to the right-eye area, determining a sixth group of deformed areas corresponding to the right-eye area from the plurality of deformed areas;
- the performing image deformation processing on the deformation area corresponding to the first target area includes: performing deformation processing on the fifth group of deformation areas so that the contour key point of the left eye area is relative to the center key point of the left eye area Rotate, and the angle of rotation satisfies the first set angle, and/or perform deformation processing on the sixth group of
- the first target area is a nose area; and the first target area is determined based on key point information corresponding to the first target area.
- Performing image deformation processing on the deformed region corresponding to the region includes: stretching or compressing the seventh set of deformed regions according to a second specific direction to lengthen or shorten the nose region.
- the first target area is a nasal wing area; and the first target area is determined based on key point information corresponding to the first target area.
- the first target area is a chin area or a human middle area; and the first target area is based on key point information corresponding to the first target area.
- the deformation area corresponding to the first target area including: determining a ninth corresponding to the chin area or the human area from the plurality of deformation areas based on key point information corresponding to the chin area or the human area Group of deformed areas; said performing image deformation processing on the deformed area corresponding to the first target area includes: compressing or stretching the ninth group of deformed areas according to a fourth specific direction to shorten or lengthen the chin area Or people in the region.
- the first target area is a mouth area; and the first target area is based on key point information corresponding to the first target area, and the first target area is A deformation area corresponding to a target area; including: determining a tenth group of deformation areas corresponding to the mouth area from the plurality of deformation areas based on key point information corresponding to the mouth area; Performing image deformation processing on the deformation area corresponding to the first target area includes: compressing the tenth group of deformation areas according to the direction in which the edge of the mouth area faces the center of the mouth area, or according to the mouth The tenth group of deformed regions is stretched in a direction in which the center of the region faces the edge of the mouth region.
- the determining a deformation area corresponding to the first target area from the plurality of deformation areas based on key point information corresponding to the first target area includes: The key point information of the edge of the face region, determining an eleventh group of deformed regions corresponding to the facial region from the plurality of deformed regions; and performing image deformation on the deformed region corresponding to the first target region
- the processing includes: compressing the eleventh group of deformed regions according to the direction in which the edge of the facial region faces the midpoint of the facial region, or according to the midpoint of the facial region towards the edge of the facial region
- the eleventh group of deformation regions are stretched in the direction of.
- the first target area is a forehead area; and the first target area is determined based on key point information corresponding to the first target area from the plurality of deformed areas.
- a deformation area corresponding to the target area including: determining a twelfth group of deformation areas corresponding to the forehead area from the plurality of deformation areas based on key point information of the forehead area;
- Performing image deformation processing on the deformed region corresponding to the region includes: stretching or compressing the twelfth group of deformed regions according to a fifth specific direction to raise or lower the hairline of the facial region; the fifth The specific direction is the direction in which the key point of the forehead area points to the center of the brow closest to the key point, or the fifth specific direction is the direction where the key point of the forehead area is away from the center of the brow closest to the key point direction.
- the method for determining the key point information of the forehead area includes: determining at least three key points of the forehead area; based on the at least three key points and the facial area The first group of contour point information below the eyes determines the key point information of the forehead area.
- the first key point in the at least three key points is located on the midline of the forehead area; the second key point and the third key point in the at least three key points The points are on both sides of the midline.
- the determining the key point information of the forehead region based on the at least three key points and the first set of contour point information below the eyes in the face region includes: Curve fitting is performed on the key points at the two ends and the at least three key points in the first set of contour point information below the eyes in the face area to obtain curve fitting key point information; and the curve is calculated based on a curve interpolation algorithm The fitting key point information is subjected to interpolation processing to obtain the key point information of the forehead area.
- the determining key point information related to the facial area includes: detecting the facial area through a facial key point detection algorithm, and obtaining key point information of the organs contained in the facial area And key point information of the edge of the face region; obtaining the key point information of the outer edge based on the key point information of the edge of the face region.
- obtaining key point information of the edge of the face area includes: obtaining a first set of contour point information below the eyes in the face area; and determining the second set of contour points in the forehead area
- the group of contour point information determines the key point information of the edge of the face region based on the first group of contour point information and the second group of contour point information.
- the obtaining the outer edge key point information based on the key point information of the edge of the face region includes: determining the key point information of the edge of the face region and the face The relative positional relationship between the midpoints of the area, the relative positional relationship includes the distance between the key point of the edge of the face area and the center point of the face area, and the key point of the edge of the face area relative to The direction of the center point of the facial area; based on the relative position relationship, the key point of the first edge is extended a preset distance in the direction toward the outside of the facial area, and the outer corresponding to the key point of the first edge is obtained Edge key point; wherein the key point of the first edge is any key point among the key points of the edge of the face area; the preset distance is from the key point of the first edge and the center of the face area The distance between the points is related.
- the method further includes: determining a deflection parameter of the face region, and determining a deformation parameter and a deformation direction corresponding to each deformation region in the at least partial deformation region based on the deflection parameter , So that each deformed area performs image deformation processing according to the corresponding deformation parameters and deformation direction.
- the determining the deflection parameter of the facial area includes: determining a left edge key point, a right edge key point, and a center key point of any area in the face area;
- the area includes at least one of the following areas: a face area, a nose area, and a mouth area; determining the first distance between the left key point and the center key point, and determining the right edge key The second distance between the point and the central key point; and the deflection parameter of the face region is determined based on the first distance and the second distance.
- the method further includes: identifying a second target area in the face area, performing feature processing on the second target area, and generating a third image; the second target The area includes at least one of the following: eye area, nasolabial fold area, tooth area, eye area, and apple muscle area.
- An embodiment of the present application also provides an image processing device, the device comprising: a first determining unit and a deformation processing unit; wherein the first determining unit is configured to obtain a first image and identify To determine the key point information related to the face area, the key point information includes: key point information of the face area and outer edge key point information; the area corresponding to the outer edge key point information includes the A face area that is larger than the face area; further configured to determine a plurality of deformation areas based on the key point information;
- the deformation processing unit is configured to perform image deformation processing on the face region based on at least a part of the deformation regions in the plurality of deformation regions to generate a second image.
- the key point information of the face area includes key point information of the organs of the face area and key point information of the edge of the face area; the edge of the face area corresponds to all The contour of the facial area; the key point information of the organ includes the central key point information of the organ and/or the contour key point information of the organ.
- the first determining unit is configured to determine the multiple deformation regions based on any three adjacent key points in the key point information.
- the first determining unit is configured to determine a first target area to be processed in the face area; based on key point information corresponding to the first target area, Determining a deformation area corresponding to the first target area among the plurality of deformation areas;
- the deformation processing unit is configured to perform image deformation processing on the deformation area corresponding to the first target area.
- the first target area is an eye area; the eye area includes a left eye area and/or a right eye area; the first determining unit is configured to be based on the The key point information corresponding to the left eye area is determined from the plurality of deformation areas and the first group of deformation areas corresponding to the left eye area is determined, and/or, based on the key point information corresponding to the right eye area, Determining a second group of deformed regions corresponding to the right eye region among the plurality of deformed regions;
- the deformation processing unit is configured to perform image deformation processing on the first group of deformation areas and/or the second group of deformation areas, wherein the image deformation direction of the first group of deformation areas and the second group of deformation areas
- the image deformation direction of the deformed area is opposite, so that the distance between the left eye area and the right eye area is increased or decreased.
- the first target area is an eye corner area; the eye corner area includes the left eye corner area and/or the right eye corner area; the first determining unit is configured to be based on The key point information corresponding to the corner of the eye area of the left eye, and a third group of deformation regions corresponding to the corner of the eye area of the left eye are determined from the multiple deformation areas, and/or based on the corner area of the right eye Corresponding key point information, determining a fourth group of deformed regions corresponding to the corner region of the right eye from the plurality of deformed regions;
- the deformation processing unit is configured to stretch or compress the third group of deformation areas and/or the fourth group of deformation areas according to a first specific direction to adjust the position and/or the position of the corner of the eye of the left eye area State the position of the corner of the right eye area.
- the first target area is an eye area; the eye area includes a left eye area and/or a right eye area; the first determining unit is configured to be based on the The key point information corresponding to the left eye area, determine the fifth group of deformation areas corresponding to the left eye area from the multiple deformation areas, and/or, based on the key point information corresponding to the right eye area, Determining a sixth group of deformed regions corresponding to the right eye region among the plurality of deformed regions;
- the deformation processing unit is configured to perform deformation processing on the fifth group of deformed regions, so that the contour key point of the left eye area is rotated relative to the center key point of the left eye area, and the rotation angle meets the first set angle , And/or, performing deformation processing on the sixth group of deformed regions, so that the contour key points of the right eye region are rotated relative to the center key points of the right eye region, and the rotation angle meets the second set angle.
- the first target area is a nose area
- the first determining unit is configured to determine from the plurality of deformation areas based on key point information corresponding to the nose area The seventh group of deformed regions corresponding to the nose region;
- the deformation processing unit is configured to stretch or compress the seventh group of deformation regions in a second specific direction to lengthen or shorten the nose region.
- the deformation processing unit is configured to compress or stretch the eighth group of deformation regions according to a third specific direction, so as to narrow or widen the nose region.
- the first target area is a chin area or a mid-person area
- the first determining unit is configured to obtain information from key points corresponding to the chin area or the mid-person area Determining a ninth group of deformation regions corresponding to the chin region or the human region among the plurality of deformation regions;
- the deformation processing unit is configured to compress or stretch the ninth group of deformed regions according to a fourth specific direction to shorten or lengthen the chin region or the middle region.
- the first target area is a mouth area; the first determining unit is configured to obtain information from the plurality of deformation areas based on key point information corresponding to the mouth area Determining the tenth group of deformed regions corresponding to the mouth region in
- the deformation processing unit is configured to compress the tenth group of deformation regions according to the direction in which the edge of the mouth region faces the center of the mouth region, or to compress the tenth group of deformation regions according to the center of the mouth region.
- the direction of the edge of the mouth region stretches the tenth group of deformed regions.
- the first determining unit is configured to determine the tenth corresponding to the facial region from the plurality of deformation regions based on key point information of the edge of the facial region A set of deformed areas;
- the deformation processing unit is configured to perform compression processing on the eleventh group of deformation regions according to the direction in which the edge of the facial region faces the center line of the facial region, or to face the facial region according to the center line of the facial region The direction of the edge of the eleventh group of deformation regions is stretched.
- the first target area is a forehead area
- the first determining unit is configured to determine from the plurality of deformed areas based on key point information corresponding to the forehead area A twelfth set of deformed areas corresponding to the forehead area;
- the deformation processing unit is configured to perform stretching or compression processing on the twelfth group of deformation regions in a fifth specific direction, so as to raise or lower the hairline of the facial region;
- the fifth specific direction is The key point of the forehead area points to the direction of the center of the brow closest to the key point, or the fifth specific direction is the direction where the key point of the forehead area is away from the center of the brow closest to the key point.
- the first determining unit is configured to determine at least three key points of the forehead area; based on the at least three key points and the facial area below the eyes The first set of contour point information determines the key point information of the forehead area.
- the first key point in the at least three key points is located on the midline of the forehead area; the second key point and the third key point in the at least three key points The points are on both sides of the midline.
- the first determining unit is configured to be based on the key point information at both ends of the first group of contour point information below the eyes in the face area and the at least three key points. Perform curve fitting on the point information to obtain curve fitting key point information; perform interpolation processing on the curve fitting key point information based on a curve interpolation algorithm to obtain key point information corresponding to the forehead area.
- the first determining unit is configured to detect the facial region by using a facial key point detection algorithm to obtain key point information of organs in the facial region and edges of the facial region The key point information of the outer edge is obtained based on the key point information of the edge of the face area.
- the first determining unit is configured to obtain a first set of contour point information below the eyes in the face area; and determine a second set of contour point information corresponding to the forehead area And determining the key point information of the edge of the face region based on the first group of contour point information and the second group of contour point information.
- the first determining unit is configured to determine the relative positional relationship between the key point information of the edge of the face area and the midpoint of the face area, the relative position The relationship includes the distance between the key point of the edge of the face area and the center point of the face area and the direction of the key point of the face area relative to the center point of the face area; based on the relative position The relationship extends the key points of the first edge by a preset distance in the direction toward the outside of the facial area to obtain the outer edge key points corresponding to the key points of the first edge; wherein the key points of the first edge are Any one of the key points of the edge of the face area; the preset distance is related to the distance between the key point of the first edge and the center point of the face area.
- the device further includes a second determining unit configured to determine a deflection parameter of the face area, and determine that each deformation area in the at least partial deformation area corresponds to the deflection parameter based on the deflection parameter.
- the deformation parameters and direction of the deformation so that each deformation area performs image deformation processing according to the corresponding deformation parameters and deformation direction.
- the second determining unit is configured to determine a left edge key point, a right edge key point, and a center key point of any area in the face area; the area includes At least one of the following areas: face area, nose area, mouth area; determining the first distance between the left key point and the center key point, and determining the right edge key point and the The second distance between the center key points; the deflection parameter of the face region is determined based on the first distance and the second distance.
- the device further includes an image processing unit configured to recognize a second target area in the face area, perform feature processing on the second target area, and generate a third image;
- the second target area includes at least one of the following: eye area, nasolabial fold area, tooth area, eye area, and apple muscle area.
- the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the embodiment of the present application are implemented.
- An embodiment of the present application also provides an image processing device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
- the processor executes the program, the image processing device described in the embodiment of the present application is implemented. Method steps.
- the method includes: obtaining a first image, identifying a facial area in the first image, and determining key point information related to the facial area, where the key point information includes : Key point information and outer edge key point information of the face area; the area corresponding to the outer edge key point information includes the face area and is larger than the face area; determining multiple deformation areas based on the key point information, Performing an image deformation process on the face region based on at least a part of the deformation region in the plurality of deformation regions to generate a second image.
- the deformation area of the outer edge of the face area is determined, so as to facilitate the process of deforming the face area.
- the deformation processing on the outer edge of the face area avoids the occurrence of holes or pixel overlap in the image caused by the deformation processing of the face area, and improves the image processing effect.
- FIG. 1 is a schematic flowchart of an image processing method according to an embodiment of the application
- FIG. 2 is a schematic diagram of a deformed area in the image processing method of an embodiment of the application
- 3a to 3c are schematic diagrams of key points of a face in an image processing method according to an embodiment of the application.
- FIG. 4 is a schematic diagram of another flow chart of an image processing method according to an embodiment of the application.
- FIG. 5 is a schematic flowchart of another image processing method according to an embodiment of the application.
- FIG. 6 is a schematic diagram of an application of image processing according to an embodiment of the application.
- FIG. 7 is a schematic diagram of a composition structure of an image processing device according to an embodiment of the application.
- FIG. 8 is a schematic diagram of another composition structure of an image processing device according to an embodiment of the application.
- FIG. 9 is a schematic diagram of another composition structure of the image processing device according to an embodiment of the application.
- FIG. 10 is a schematic diagram of the hardware composition structure of an image processing apparatus according to an embodiment of the application.
- Fig. 1 is a schematic flowchart of an image processing method according to an embodiment of the application; as shown in Fig. 1, the method includes:
- Step 101 Obtain a first image, identify the face area in the first image, and determine key point information related to the face area.
- the key point information includes: key point information of the face area and outer edge key point information; outer edge key point information corresponds The area of includes the facial area and is larger than the facial area;
- Step 102 Determine a plurality of deformation regions based on the key point information, and perform image deformation processing on the facial region based on at least part of the deformation regions in the plurality of deformation regions, to generate a second image.
- the first image contains the face of the target object; the target object may be a real person in the image. In other embodiments, the target object may also be a virtual character, such as a cartoon character. It can be understood that the first image includes a human face.
- the embodiment of this application mainly performs image processing on the human face in the image.
- the embodiment of the present application may also perform image processing on the face of other target objects.
- a preset face recognition algorithm can be used to perform face recognition on the first image to identify the facial area in the first image.
- the key point information related to the face area includes the position information of the key point.
- the position information of the key point may be represented by the coordinate information of the key point.
- the key point information of the face area includes the key point information of the organs of the face area and the key point information of the edge of the face area; the edge of the face area corresponds to the contour of the face area; the outer edge key point information is based on the key point of the edge of the face area Information is OK.
- the key point information of the organ includes the central key point information of the organ and/or the outline key point information of the organ.
- key points related to the face area include: key points of the organs contained in the face area, key points of the edge of the face area, and key points of the outer edge.
- determining key point information related to the face area includes: detecting the face area through a face key point detection algorithm, and obtaining key point information of each organ in the face area and information about the face area The key point information of the edge; the key point information of the outer edge is obtained based on the key point information of the edge of the face area.
- obtaining the key point information of the edge of the face area includes: obtaining a first set of contour point information of the area below the eye in the face area; determining the second set of contour point information of the forehead area, based on the first set of contour points The point information and the second set of contour point information determine the key point information of the edge of the face area.
- determining the second set of contour point information of the forehead area includes: determining at least three key points of the forehead area; determining the key point information of the forehead area based on the at least three key points and the first group of contour point information.
- the first key point of the at least three key points is located on the midline of the forehead area; the second key point and the third key point of the at least three key points are located on both sides of the midline.
- determining the key point information corresponding to the forehead area based on the at least three key points and the first set of contour point information includes: based on the key points located at both ends of the first group of contour point information below the eyes in the face area And at least three key points in the forehead area are curve fitting to obtain curve fitting key point information; based on the curve interpolation algorithm, curve fitting key point information is interpolated to obtain key point information corresponding to the forehead area.
- Figure 2 is a schematic diagram of the deformed area in the image processing method of an embodiment of the application
- Figures 3a to 3c are schematic diagrams of the key points of the face in the image processing method of the embodiment of the application; combined with Figure 2 and Figures 3a to 3c
- the key points of the organs included in the facial area are specifically key points of at least one of the following organs included in the facial area: eyebrows, eyes, nose, and mouth.
- the key point information of the organ may include the central key point information of the organ and/or the outline key point information of the organ.
- the key point information of the eye can include the key point information of the center of the eye and the key point information of the contour of the eye; if the organ is the eyebrow as an example, the key point information of the eyebrow can include the key point of the contour of the eyebrow information.
- the key point information of each organ in the face area is obtained by detecting the key point detection algorithm of the face.
- the first group of contour points below the eyes in the face area is obtained by the facial key point detection algorithm.
- the first group of contour points is shown in Fig. 3a from key point 0 to key point 32, as shown in Fig. 3b
- the solid dot " ⁇ " indicates the key points of the first group of contours.
- the facial key point detection algorithm can be used to obtain a small number of M1 contour points in the area below the eyes in the facial area, such as 5 contour points, etc.; and then for the M1 contour points by means of curve interpolation Obtain M2 contour points, and use M1 contour points and M2 contour points as the first group of contour point information.
- the face key point detection algorithm can use any face recognition algorithm.
- the third aspect is to obtain information on key points in the forehead area.
- at least three key point information in the forehead area of the face area can be determined based on preset parameters to determine the three key point information as an example, then key point 1 corresponds to the key point located on the midline of the forehead area , Marked as the first key point; and key point 2 and key point 3 are located on both sides of key point 1, based on the key point 4 and key point 5 at both ends of the first set of contour point information (for example, the key point in Figure 3a Point 0 and key point 32), as well as key point 1, key point 2 and key point 3 for curve fitting to obtain curve fitting key point information; based on the curve interpolation algorithm, curve fitting key point information is interpolated to obtain and The second set of contour point information matching the forehead area.
- the first group of contour point information and the second group of contour point information are combined to form the key point information of the edge of the face area.
- the key point corresponding to the key point information of the edge of the face area is located in the face area. All positions of the edges, which cover all the edges of the face area.
- obtaining the outer edge key point information based on the key point information of the edge of the face area includes: determining the relative position relationship between the key point information of the edge of the face area and the center point of the face area.
- the relative position relationship includes the face.
- the outer direction extends a preset distance to obtain the outer edge key point corresponding to the key point of the first edge; wherein the key point of the first edge is any one of the key points of the edge of the face area; the preset distance is equal to The key point of the first edge is related to the distance between the center point of the face area; the greater the distance between the key point of the first edge and the center point of the face area, the greater the preset distance of extension.
- other key points can also be selected and not limited to the center point of the face area.
- the key points corresponding to the tip of the nose can be selected, which is not limited in this embodiment.
- the key points related to the facial area obtained in this embodiment include not only the key points of the face area, but also the key points of the outer edge; the key points of the outer edge are located outside the face area.
- the area corresponding to the edge key point includes the face area and is larger than the face area.
- the number of key points on the outer edge may be the same as the number of key points on the edge of the face region, that is, the key point information on the outer edge is determined based on the key point information on the edge of the face region. In other embodiments, the number of key points on the outer edge may also be different from the number of key points on the edge of the face area.
- the number of key points on the outer edge may be greater than the number of key points on the edge of the face area.
- N1 outer edge key points are determined, and then N1 outer edge key points are interpolated by curve.
- N2 outer edge key points are obtained, and N1 outer edge key points information and N2 outer edge key points information are used as outer edge key point information in this embodiment.
- the purpose of determining the key point information of the outer edge is to use the outer edge in the image deformation process, especially in the image deformation process using the triangular deformation area shown in Figure 2
- the triangular deformation area formed by the key point information and the key point information of the edge of the face area is adaptively deformed, that is, the transition area associated with the face area (that is, the key point between the outer edge and the key point of the face area Region) to perform adaptive deformation processing, so that a better image deformation effect can be obtained, and the facial fusion effect is more natural.
- the number of key points on the outer edge is greater than the number of key points on the edge of the face area.
- the effect is to reduce the triangular deformation area in the transition area (that is, the area between the key points on the outer edge and the key points on the edge of the face area).
- the area of ??to improve the accuracy of deformation processing, making the deformation effect better.
- the recognition of key points on the face can only identify the relatively sparse key points of the organs in the face.
- the embodiment of the present application adds the key points by interpolation, for example, in the area of the eyebrows. A few key points.
- the existing face key point recognition can only identify part of the key points below the eyes of the face.
- the face key point recognition in this embodiment increases the number of points in the forehead area. Two key points, the added key points correspond to the position of the forehead or hairline, so that the forehead area or hairline can be adjusted based on the key points of the forehead.
- the number of key points corresponding to the obtained key point information may be 106.
- determining multiple deformation areas based on key point information includes: determining multiple deformation areas based on any three adjacent key points in the key point information. Refer to Figure 2 for details. In this embodiment, image deformation processing is performed on the target area based on the determined triangular deformation area.
- the triangular deformation area corresponding to the outer edge area can be determined based on the outer edge key point and the contour key point corresponding to the face area, that is, this embodiment
- the deformation area in includes the deformation area corresponding to the transition area other than the face area as shown in FIG. 2. Therefore, when performing deformation processing based on the deformation area in the face area, adaptive deformation processing is performed on the deformation area outside the face area to avoid the appearance of holes in the image due to the compression of the face area or due to the face. The stretching of the partial area leads to overlapping of pixels in the image.
- the deformation area of the outer edge of the face area is determined, so that the face area can be adjusted adaptively during the process of deforming the face area.
- the outer edge of the area is deformed, which avoids the appearance of holes or pixel overlap in the image caused by the deformation of the face area, and improves the image processing effect.
- performing image deformation processing on the face region based on at least a part of the deformation regions in the plurality of deformation regions includes: determining a first target region to be processed in the facial region; based on the first target region The corresponding key point information determines the deformation area corresponding to the first target area from the plurality of deformation areas, and performs image deformation processing on the deformation area corresponding to the first target area.
- the target area to be deformed in the face area is determined, and the target area includes at least one of the following: eye area, nose area, mouth area, chin area, human center area, forehead area, face area, etc. And so on; the deformation area corresponding to the target area is determined for different target areas, and the deformation processing of the target area is realized based on the deformation processing for the deformation area, and the second image is generated.
- determining the deformation area corresponding to the target area for different target areas includes: determining the key point information corresponding to the target area, and determining all the deformation areas containing the key point information from the multiple deformation areas. For example, the target area is the eyebrow area, then all the key points corresponding to the eyebrow area are determined, and the deformation area including all the key points is used as the deformation area to be deformed.
- the first target area is the eye area; the eye area includes the left eye area and/or the right eye area; based on the key point information corresponding to the first target area, the A deformation area corresponding to a target area includes: determining a first group of deformation areas corresponding to the left eye area from a plurality of deformation areas based on the key point information corresponding to the left eye area, and/or, based on the key corresponding to the right eye area Point information, determining the second group of deformation areas corresponding to the right eye area from the plurality of deformation areas; performing image deformation processing on the deformation area corresponding to the first target area, including: performing the first group of deformation areas and/or the second group
- the deformed area is subjected to image deformation processing; wherein the image deformation direction of the first group of deformed areas is opposite to the image deformation direction of the second group of deformed areas, so that the distance between the left eye area and the right eye area is increased or reduced.
- the first group of deformed areas and the second group of deformed areas are all deformed areas including the key points of the eye area.
- This embodiment is used to adjust the position of the eye area in the face area; if the face area includes two eye areas, that is, the left eye area and the right eye area, it can be understood as adjusting the position between the left eye and the right eye. If the facial area includes only one eye area, such as a side face scene, it can be understood as adjusting the position of the eye area in the face area.
- the first group of deformed areas and the second group of deformed areas can be deformed in opposite directions of image deformation, for example, determine the line between the center point of the left eye and the center point of the right eye, and determine the line
- the midpoint of the first group of deformed areas and the second group of deformed areas are moved towards the midpoint of the line respectively, and the distance between the left eye area and the right eye area is reduced accordingly, or the first group is deformed
- the area and the second group of deformed areas are moved away from the midpoint of the line respectively, and the distance between the left eye area and the right eye area is increased accordingly.
- the first target area is the corner of the eye area; the corner of the eye area includes the corner of the eye area of the left eye and/or the corner of the eye area of the right eye; based on the key point information corresponding to the first target area, it is determined from multiple deformed areas
- the deformation area corresponding to the first target area includes: determining a third group of deformation areas corresponding to the left eye corner area from a plurality of deformation areas based on key point information corresponding to the left eye corner area, and/or, based on The key point information corresponding to the corner area of the right eye is used to determine the fourth group of deformation areas corresponding to the corner area of the right eye from the multiple deformation areas; performing image deformation processing on the deformation area corresponding to the first target area includes: Stretching or compressing the third group of deformed areas and/or the fourth group of deformed areas in a specific direction to adjust the position of the corner of the eye in the left eye area and/or the position of the corner of the eye in the right eye area.
- the third group of deformed areas are all deformed areas including key points corresponding to the corner of the left eye area
- the fourth group of deformed areas are all deformed areas including key points corresponding to the corner of the right eye.
- the corner of the eye can be the inner corner and/or the outer corner of the eye area.
- the inner corner and the outer corner are a relative concept, for example, taking the center point of the left eye and the center point of the right eye as a reference,
- the so-called inner corner of the eye refers to the corner of the eye close to the midpoint of the aforementioned line
- the so-called outer corner of the eye refers to the corner of the eye that is far from the midpoint of the aforementioned line.
- This embodiment is used to adjust the position of the corner of the eye in the facial area, or can be understood as adjusting the size of the corner of the eye area.
- the key points of the inner or outer corner of the eye to be adjusted can be determined, the deformation area containing the key point can be determined, and the deformation area can be moved in the direction toward the midpoint of the above-mentioned line, or as far away from the above-mentioned line.
- the direction of the point moves.
- the first specific direction is a direction toward the midpoint of the aforementioned line, or the first specific direction is a direction away from the midpoint of the aforementioned line.
- the first target area is the eye area; the eye area includes the left eye area and/or the right eye area; based on the key point information corresponding to the first target area, the A deformation area corresponding to a target area includes: determining a fifth group of deformation areas corresponding to the left eye area from a plurality of deformation areas based on key point information corresponding to the left eye area and/or right eye area, and/or, based on The key point information corresponding to the right-eye area determines the sixth group of deformation areas corresponding to the right-eye area from the multiple deformation areas; image deformation processing is performed on the deformation area corresponding to the first target area, including: the fifth group of deformation areas Perform deformation processing so that the contour key point of the left eye area is rotated relative to the center key point of the left eye area, and the angle of rotation meets the first set angle, and/or the deformation processing is performed on the sixth group of deformation areas to The contour key point of the right eye area is rotated relative to the center key point of
- the fifth group of deformation areas are all deformation areas including the key points of the left eye area
- the sixth group of deformation areas are all deformation areas including the key points of the right eye area.
- This embodiment is used to adjust the angle of the eye area, which can be understood as adjusting the relative angle between the eyes and other organs of the face, such as the relative angle between the eyes and the nose.
- the eye The center point is the center of rotation, which is realized by rotating a specific angle clockwise or counterclockwise.
- the deformed region corresponding to the eye region can be deformed through a preset rotation matrix, so that the contour key point of the eye region is rotated relative to the center key point of the eye region.
- the angle of rotation of the contour key point of the left eye area relative to the center key point of the left eye area meets the first set angle
- the angle of rotation of the contour key point of the right eye area relative to the center key point of the right eye area meets the second set angle Set the angle
- the rotation direction of the left eye area and the rotation direction of the right eye area can be opposite
- the values of the first set angle and the second set angle can be the same or different.
- the first target area is a nose area; based on key point information corresponding to the first target area, a deformation area corresponding to the first target area is determined from a plurality of deformation areas; including: based on the nose area Key point information, determine the seventh group of deformation areas corresponding to the nose area from multiple deformation areas; perform image deformation processing on the deformation area corresponding to the first target area, including: stretching or compressing the seventh group according to the second specific direction Deform the area to lengthen or shorten the nose area.
- the seventh group of deformation regions is all deformation regions including key points of the nose.
- This embodiment is used to adjust the length or height of the nose region, which can be understood as adjusting the length of the nose region or adjusting the height of the nose.
- the seventh group of deformed regions can be stretched or compressed toward the second specific direction to lengthen or shorten the nose area.
- the second specific direction is along the length of the facial area. For example, the midpoint of the line between the two eyebrows, the center of the nose and the center of the lips in the facial area can be used as the straight line of the facial area.
- the seventh group of deformed areas is stretched from the center of the nose area toward the outside of the nose area along the length direction, and the nose area is elongated; and the first group is compressed along the length direction from the outside of the nose area toward the center of the nose area. For seven groups of deformed areas, shorten the nose area.
- the second specific direction may also be a direction perpendicular to and away from the face area, and the height of the nose area is adjusted according to the second specific direction.
- this embodiment is suitable for a scene where the face in the image is a side face, that is, in a scene where the face in the image is a side face, the second specific direction is determined by determining the deflection parameter of the facial area based on the deflection parameter , That is, the direction corresponding to the height of the nose is determined based on the deflection of the face, and then the seventh group of deformed regions corresponding to the nose region is deformed according to the second specific direction to increase or shorten the height of the nose.
- the first target area is the nose area; based on the key point information corresponding to the first target area, the deformation area corresponding to the first target area is determined from the plurality of deformation areas; including: based on the nose area corresponding Key point information, determine the eighth group of deformation areas corresponding to the nose area from the multiple deformation areas; perform image deformation processing on the deformation area corresponding to the first target area, including: compressing or stretching the eighth group according to the third specific direction Deform the area to narrow or widen the nose area.
- the eighth group of deformed regions is all the deformed regions that include the key points corresponding to the nasal alar region.
- the nasal alar region refers to the area contained on both sides of the nose tip.
- This embodiment is used to adjust the width of the nasal alar region, which is understandable To adjust the width of the nose.
- the key points corresponding to the nose area can be determined, the deformation area containing the key points can be determined, and the deformation area can be compressed or stretched in the third specific direction to narrow or widen the nose area; among them, the third specific The direction is the width direction of the face area, and the width direction of the face area is perpendicular to the length direction of the face area.
- the first target area is the chin area or the middle area; based on the key point information corresponding to the first target area, the deformation area corresponding to the first target area is determined from the plurality of deformation areas; including: According to the key point information corresponding to the chin area or the human area, the ninth group of deformation areas corresponding to the chin area or the human area are determined from the multiple deformation areas; image deformation processing is performed on the deformation area corresponding to the first target area, including: The ninth group of deformed areas is compressed or stretched in the fourth specific direction to shorten or lengthen the chin area or the middle area.
- the ninth group of deformed regions is all deformed regions that include key points of the chin or the person.
- This embodiment is used to adjust the length of the chin area or the human area, which can be understood as adjusting the chin area or the person.
- the length of the middle area Among them, the chin area refers to the lower jaw area; the human area refers to the area between the nose and the mouth.
- the ninth group of deformed areas can be compressed or stretched toward the fourth specific direction to shorten or lengthen the chin area or the middle area. Among them, the fourth specific direction is along the length of the face area.
- the first target area is a mouth area; based on key point information corresponding to the first target area, determining a deformation area corresponding to the first target area from a plurality of deformation areas; including: based on the mouth area Corresponding key point information, determine the tenth group of deformation areas corresponding to the mouth area from the multiple deformation areas; perform image deformation processing on the deformation area corresponding to the first target area, including: according to the edge of the mouth area toward the mouth The direction of the center of the area compresses the tenth group of deformed areas, or the tenth group of deformed areas is stretched in the direction from the center of the mouth area to the edge of the mouth area.
- the tenth group of deformed regions is all deformed regions that include key points of the mouth.
- This embodiment is used to adjust the size of the mouth area, which can be understood as an increase in the mouth area or the mouth area The reduction processing.
- the key points corresponding to the mouth area can be determined, and all the deformation areas containing the key points can be determined as the tenth group of deformation areas.
- the deformation area is aligned with the tenth group according to the direction from the edge of the mouth area to the center of the mouth area.
- the deformation area is compressed, or the tenth group of deformation areas is stretched in the direction from the center of the mouth area to the edge of the mouth area.
- a deformation area corresponding to the first target area is determined from a plurality of deformation areas; including: key point information based on the edge of the face area, from multiple deformation areas Determine the eleventh group of deformed areas corresponding to the face area in the deformed area; perform image deformation processing on the deformed area corresponding to the first target area, including: deform the eleventh group according to the direction of the edge of the face area toward the center line of the face area The area is compressed, or the eleventh group of deformed areas is stretched according to the direction of the center line of the face area toward the edge of the face area.
- the eleventh group of deformed areas are all deformed areas including the key points of the edge of the face area.
- the key points of the edge of the face area refer to the first group of contour key points and/or the second set of contour key points shown in FIG.
- this embodiment is used to adjust the width of the face area, which can be understood as "face thinning" or "fat face” processing.
- the eleventh group of deformed areas can be compressed according to the direction that the edge of the face area faces the middle line of the face area, or the eleventh group of deformed areas can be stretched according to the direction that the middle line of the face area faces the edge of the face area.
- the eleventh group of deformed regions can be compressed according to the direction from the edge of the facial region to the midpoint of the facial region , Or stretch the eleventh group of deformed regions according to the direction from the midpoint of the facial region to the edge of the facial region.
- the deformation ratios of the deformation areas corresponding to the key points at different positions are different.
- the deformation ratios of the deformation areas corresponding to the key points contained in the cheek area are the largest, and the deformation ratios of the deformation areas corresponding to other areas may be slowing shrieking.
- the deformation ratio of the deformation area corresponding to the key points near key point 0, key point 16, and key point 32 is the smallest, and the deformation ratio of the deformation area corresponding to the key points near key point 8 and key point 24 Maximum, so that the deformation effect (such as face-lifting effect or fat face effect) more natural.
- the first target area is the forehead area; based on the key point information corresponding to the first target area, a deformation area corresponding to the first target area is determined from a plurality of deformation areas; including: a key based on the forehead area Point information, determine the twelfth group of deformed areas corresponding to the forehead area from the multiple deformed areas; perform image deformation processing on the deformed area corresponding to the first target area, including: the twelfth group of deformed areas according to the fifth specific direction Stretch or compress to raise or lower the hairline of the facial area; the fifth specific direction is the direction where the key point of the forehead area points to the center of the eyebrow closest to the key point, or the fifth specific direction is the key point of the forehead area Point away from the center of the eyebrow closest to the key point.
- the twelfth group of deformed areas is all deformed areas including the key points of the forehead area, and the method for determining the key points of the forehead area can be referred to the foregoing, which will not be repeated here.
- This embodiment is used to adjust the width of the forehead area, which can be understood as adjusting the relative height of the hairline in the face area.
- the key points of the forehead area can be determined, and all deformation areas containing the key points from multiple deformation areas can be determined as the twelfth group of deformation areas, such as the triangular deformation area corresponding to the forehead area shown in Figure 2 and The triangular deformation area corresponding to the outer edge area outside the forehead area is used as the twelfth group of deformation areas in this embodiment; the twelfth group of deformation areas are stretched or compressed according to the fifth specific direction to increase or decrease The hairline of the face area.
- the center of the eyebrow with the closest distance to the feature point can be determined first, and the direction of the feature point and the center of the eyebrow can be determined, and the direction is regarded as the fifth Specific direction;
- the fifth specific direction corresponding to each key point is determined respectively, and the deformation area is deformed according to the fifth specific direction corresponding to each feature point, specifically for the deformation area The three key points in move according to their corresponding fifth specific direction.
- the image processing method of this embodiment can achieve: 1.
- the adjustment of the hairline that is, the position of the hairline can be adjusted to realize the heightening or lowering of the hairline; 2.
- the length adjustment of the nose area That is, it can realize the adjustment of the length of the nose, and realize the lengthening or shortening of the nose; 3.
- the adjustment of the nose area that is, the adjustment of the width of the nose; 4.
- the adjustment of the human area that is, the adjustment of the length of the human area, and the realization of human The lengthening or shortening of the middle area; 5.
- the adjustment of the mouth shape that is, the adjustment of the size of the mouth; 6.
- the adjustment of the chin area that is, the adjustment of the length of the chin area, and the lengthening or shortening of the chin area; 7 8.
- the adjustment of the face shape can realize the adjustment of the facial contour, so that the facial contour can be narrowed or widened, such as "slim face"; 8.
- the adjustment of the eye distance can adjust the distance between the left eye and the right eye; 9. ,
- the adjustment of the eye angle that is, the relative angle of the eyes can be adjusted; 10.
- the adjustment of the corner of the eye that is, the position of the corner of the eye can be adjusted to achieve "opening the corner of the eye” and enlarge the eyes; 11. Adjust the height of the nose in the side face scene , That is, it can realize the "rhinoplasty" of the profile.
- Fig. 4 is a schematic flowchart of another image processing method according to an embodiment of the application; as shown in Fig. 4, the method includes:
- Step 201 Obtain a first image, identify the face area in the first image, and determine key point information related to the face area.
- the key point information includes: key point information of the face area and outer edge key point information; outer edge key point information corresponds The area of includes the facial area and is larger than the facial area;
- Step 202 Determine multiple deformation regions based on key point information
- Step 203 Determine the deflection parameter of the face area, and determine the deformation parameter and the deformation direction corresponding to each deformation area in at least part of the deformation area based on the deflection parameter;
- Step 204 Perform image deformation processing on the face region based on at least a part of the deformation regions and the deformation parameters and deformation directions corresponding to each deformation region to generate a second image.
- step 201 to step 202 in this embodiment reference may be made to the description of step 101 to step 102 in the foregoing embodiment, which will not be repeated here.
- the foregoing embodiment is mainly for the case where the face area is not deflected, and for the case where the face area is deflected, that is, the scene of the side face, it is necessary to first determine the deflection parameter of the face area, and then determine each to be deformed according to the deflection parameter.
- the deformation parameters and deformation directions corresponding to the deformation area are deformed according to the determined deformation parameters and deformation directions.
- determining the deflection parameter of the face area includes: determining the left edge key point, the right edge key point, and the center key point of any area in the face area; the area includes at least of the following areas One: face area, nose area, mouth area; determine the first distance between the left key point and the center key point, and determine the second distance between the right edge key point and the center key point; based on the first The first distance and the second distance determine the deflection parameter of the face area.
- taking the nose area as an example, determine the center point of the nose (such as the tip of the nose), the key point on the leftmost side of the nose, and the key point on the rightmost side of the nose, and calculate the leftmost key point of the nose and the nose.
- the first distance between the center points, and the second distance between the rightmost key point of the nose wing and the center point of the nose determine the deflection parameter of the face region based on the first distance and the second distance.
- the deformation direction of the first target area in the foregoing embodiment is further adjusted based on the deflection parameter.
- the deformation parameters of the left and right areas of the nose are different. If the first distance is greater than the second distance, the left side of the nose The deformation parameter of the area is greater than the deformation parameter of the right area of the nose; as an example, the movement ratio of the leftmost key point of the nose can be the first distance divided by the distance between the leftmost key point of the nose and the center point of the nose The distance is limited between 0 and 1.
- the movement ratio of the key point on the far right of the nose can be the second distance divided by the distance between the key point on the far right of the nose and the center of the nose, and it is limited to Between 0 and 1, in this way, the movement distance of the key points on both sides of the nose will change with the deflection of the facial area.
- the deformation area of the outer edge of the face area is determined, so as to facilitate the process of deforming the face area.
- the deformation processing on the outer edge of the face area avoids the occurrence of holes or pixel overlap in the image caused by the deformation processing of the face area, and improves the image processing effect.
- the deformation processing of the forehead area for the face area is realized.
- the height of the nose in the side face scene is adjusted.
- FIG. 5 is a schematic flowchart of another image processing method according to an embodiment of the application; as shown in FIG. 5, the method includes:
- Step 301 Obtain a first image, identify the face area in the first image, and determine key point information related to the face area.
- the key point information includes: key point information of the face area and outer edge key point information; outer edge key point information corresponds The area of includes the facial area and is larger than the facial area;
- Step 302 Determine a plurality of deformation regions based on the key point information, and perform image deformation processing on the face region based on at least part of the deformation regions in the plurality of deformation regions to generate a second image.
- Step 303 Identify the second target area in the face area, perform feature processing on the second target area to generate a third image; the second target area includes at least one of the following: eye area, nasolabial fold area, tooth area, and eye Area, apple muscle area.
- step 301 to step 302 in this embodiment please refer to the description of step 101 to step 102 in the foregoing embodiment. In order to reduce the length, it will not be repeated here.
- this embodiment in addition to performing image deformation processing on the face region based on the deformation area, this embodiment can also perform feature processing based on the image.
- the feature processing of the image may be processing the pixels in the image.
- the processing method may include at least one of the following: noise reduction processing, Gaussian blur processing, high and low frequency processing, mask processing, and so on.
- the processing of the second target area may specifically be the processing of removing dark circles; when the second target area is the law pattern area, the processing of the second target area may specifically be The process of removing nasolabial folds; when the second target area is the tooth area, the treatment of the second target area may specifically be the treatment of whitening teeth; when the second target area is the eye area, the treatment of the second target area Specifically, it can be the brightness enhancement processing of the eye area; when the second target area is the apple muscle area, the processing of the second target area can be the processing of increasing or reducing the apple muscle area and/or the brightness processing of the apple muscle area, etc. Wait.
- Gaussian blur processing can be performed on the second target area, which is equivalent to performing skinning processing on the second target area.
- the mask processing method that is, covering the second target area with a mask matching the second target area, as shown in FIG. 6, which shows an example of processing for the second target area.
- the eye area is determined first, and the eye area is determined based on the determined eye area.
- the second target area peripheral area
- the mask corresponding to the eye area can be preset, and then the mask corresponding to the eye area is covered on the eye area to generate the third target area.
- the processing method for the law pattern area is similar to that of the eye area, that is, first determine the law pattern area, and cover the law pattern area with the mask corresponding to the law pattern area through the preset mask corresponding to the law pattern area. Generate a third image.
- the target parameter of the characterizing color to be replaced is determined through the preset color look-up table; the tooth region is determined, and the parameter corresponding to the tooth region is adjusted as the target parameter, thereby adjusting the tooth color.
- the processing of the eye area specifically, it may be to increase the brightness of the eye area.
- FIG. 7 is a schematic diagram of a composition structure of the image processing device of the embodiment of the application; as shown in FIG. 7, the device includes: a first determining unit 41 and a deformation processing unit 42 ;among them,
- the first determining unit 41 is configured to obtain a first image, identify a face area in the first image, and determine key point information related to the face area.
- the key point information includes: key point information of the face area and outer edge key point information;
- the area corresponding to the edge key point information includes the face area and is larger than the face area; it is further configured to determine multiple deformation areas based on the key point information;
- the deformation processing unit 42 is configured to perform image deformation processing on the face region based on at least a part of the deformation regions among the plurality of deformation regions, and generate a second image.
- the key point information of the face area includes key point information of the organs of the face area and key point information of the edges of the face area; the edges of the face area correspond to the contours of the face area; the key points of the organs
- the information includes the central key point information of the organ and/or the outline key point information of the organ.
- the first determining unit 41 is configured to determine multiple deformation regions based on any three adjacent key points in the key point information.
- the first determining unit 41 is configured to determine the first target area to be processed in the face area; determine from multiple deformed areas based on key point information corresponding to the first target area A deformed area corresponding to the first target area;
- the deformation processing unit 42 is configured to perform image deformation processing on the deformation area corresponding to the first target area.
- the first target area is an eye area; the eye area includes a left eye area and/or a right eye area;
- the first determining unit 41 is configured to determine a first group of deformed regions corresponding to the left-eye region from the plurality of deformed regions based on the key point information corresponding to the left-eye region, and/or based on the key point information corresponding to the right-eye region , Determine the second group of deformed regions corresponding to the right eye region from the plurality of deformed regions;
- the deformation processing unit 42 is configured to perform image deformation processing on the first group of deformation areas and/or the second group of deformation areas, wherein the image deformation direction of the first group of deformation areas and the image deformation direction of the second group of deformation areas are opposite, so as to Increase or decrease the distance between the left eye area and the right eye area.
- the first target area is an eye corner area;
- the eye corner area includes the left eye corner area and/or the right eye corner area;
- the first determining unit 41 is configured to determine a third group of deformed regions corresponding to the corner of the eye region of the left eye from the plurality of deformation regions based on the key point information corresponding to the corner of the eye region of the left eye, and/or based on the corner of the right eye
- the key point information corresponding to the region determines the fourth group of deformed regions corresponding to the corner of the right eye from the multiple deformed regions;
- the deformation processing unit 42 is configured to stretch or compress the third group of deformation areas and/or the fourth group of deformation areas according to the first specific direction to adjust the position of the corner of the eye in the left eye area and/or the position of the corner of the right eye area.
- the first target area is an eye area; the eye area includes a left eye area and/or a right eye area;
- the first determining unit 41 is configured to determine a fifth group of deformed regions corresponding to the left-eye region from the plurality of deformed regions based on the key point information corresponding to the left-eye region, and/or, based on the key point information corresponding to the right-eye region , Determine the sixth group of deformed regions corresponding to the right eye region from the multiple deformed regions;
- the deformation processing unit 42 is configured to perform deformation processing on the fifth group of deformed regions, so that the contour key point of the left eye area is rotated relative to the center key point of the left eye area, and the rotation angle satisfies the first set angle, and/ Or, performing a deformation process on the sixth group of deformed regions, so that the contour key point of the right eye area is rotated relative to the center key point of the right eye area, and the rotation angle meets the second set angle.
- the first target area is the nose area
- the first determining unit 41 is configured to determine a seventh group of deformed regions corresponding to the nose region from the plurality of deformed regions based on key point information corresponding to the nose region;
- the deformation processing unit 42 is configured to stretch or compress the seventh group of deformed regions in a second specific direction to lengthen or shorten the nose region.
- the first target area is the nose area
- the first determining unit 41 is configured to determine an eighth group of deformation regions corresponding to the nose region from the plurality of deformation regions based on key point information corresponding to the nose region;
- the deformation processing unit 42 is configured to compress or stretch the eighth group of deformation regions according to a third specific direction, so as to narrow or widen the nose wing region.
- the first target area is a chin area or a human center area
- the first determining unit 41 is configured to determine a ninth group of deformation areas corresponding to the chin area or the human area from a plurality of deformation areas based on the key point information corresponding to the chin area or the human area;
- the deformation processing unit 42 is configured to compress or stretch the ninth group of deformed regions in a fourth specific direction to shorten or lengthen the chin region or the middle region.
- the first target area is the mouth area
- the first determining unit 41 is configured to determine a tenth group of deformed regions corresponding to the mouth region from a plurality of deformed regions based on key point information corresponding to the mouth region;
- the deformation processing unit 42 is configured to compress the tenth group of deformed regions according to the direction from the edge of the mouth area to the center of the mouth area, or to compress the tenth group according to the direction from the center of the mouth area to the edge of the mouth area The deformed area is stretched.
- the first determining unit 41 is configured to determine an eleventh group of deformed regions corresponding to the facial region from the plurality of deformed regions based on key point information of the edge of the facial region;
- the deformation processing unit 42 is configured to compress the eleventh group of deformed regions according to the direction from the edge of the face area to the midpoint of the face area, or to compress the eleventh group of deformation areas according to the direction from the midpoint of the face area to the edge of the face area The deformed area is stretched.
- the first target area is the forehead area
- the first determining unit 41 is configured to determine the twelfth group of deformed regions corresponding to the forehead region from the plurality of deformed regions based on the key point information corresponding to the forehead region;
- the deformation processing unit 42 is configured to stretch or compress the twelfth group of deformed regions according to the fifth specific direction to raise or lower the hairline of the facial area;
- the fifth specific direction is the key point direction and key of the forehead area Point to the direction of the closest eyebrow center, or, the fifth specific direction is the direction of the key point in the forehead area away from the eyebrow center closest to the key point.
- the first determining unit 41 is configured to determine at least three key points of the forehead area; determine the key point information of the forehead area based on the at least three key points and the first set of contour point information below the eyes in the face area.
- the first key point of the at least three key points is located on the midline of the forehead area; the second key point and the third key point of the at least three key points are located on both sides of the midline.
- the first determining unit 41 is configured to perform curve fitting based on the key points at both ends of the first set of contour point information below the eyes in the face area and the above-mentioned at least three key points to obtain curve fitting Key point information: Based on the curve interpolation algorithm, the curve fitting key point information is interpolated to obtain the key point information with the forehead area.
- the first determining unit 41 is configured to detect the face area by a face key point detection algorithm, and obtain key point information of the organs of the face area and key point information of the edges of the face area; based on the face The key point information of the edge of the area obtains the key point information of the outer edge.
- the first determining unit 41 is configured to obtain a first group of contour point information below the eyes in the face area; determine the second group of contour point information corresponding to the forehead area, based on the first group The contour point information and the second set of contour point information determine the key point information of the edge of the face area.
- the first determining unit 41 is configured to determine the relative positional relationship between the key point information of the edge of the face area and the midpoint of the face area.
- the above-mentioned relative positional relationship includes the edge of the face area.
- the above-mentioned device further includes a second determining unit 43, configured to determine a deflection parameter of the face area, and determine that each deformed area corresponds to at least part of the deformed area based on the deflection parameter.
- the deformation parameters and direction of the deformation so that each deformation area performs image deformation processing according to the corresponding deformation parameters and deformation direction.
- the second determining unit 43 is configured to determine the left edge key point, the right edge key point, and the center key point of any area in the face area; the area includes at least one of the following areas: face area , Nose area, mouth area; determine the first distance between the left key point and the center key point, and determine the second distance between the right edge key point and the center key point; based on the first distance and the second distance Determine the deflection parameters of the face area.
- the device further includes an image processing unit 44, configured to recognize the second target area in the face area, perform feature processing on the second target area, and generate a third image ;
- the second target area includes at least one of the following: eye area, nasolabial fold area, tooth area, eye area, apple muscle area.
- the first determining unit 41, the deformation processing unit 42, the second determining unit 43, and the image processing unit 44 in the device can all be implemented by a central processing unit (CPU, Central Processing Unit), digital signal Processor (DSP, Digital Signal Processor), Microcontroller Unit (MCU, Microcontroller Unit) or Programmable Gate Array (FPGA, Field-Programmable Gate Array) implementation.
- CPU Central Processing Unit
- DSP Digital Signal Processor
- MCU Microcontroller Unit
- FPGA Field-Programmable Gate Array
- the image processing apparatus provided in the above embodiment performs image processing
- only the division of the above-mentioned program modules is used as an example for illustration.
- the above-mentioned processing can be allocated by different program modules as needed. That is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above.
- the image processing device provided in the foregoing embodiment and the image processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
- FIG. 10 is a schematic diagram of the hardware composition of the image processing device according to the embodiment of the application.
- the image processing device includes a memory 52, a processor 51, and is stored on the memory 52.
- bus system 53 various components in the image processing apparatus may be coupled together through the bus system 53. It can be understood that the bus system 53 is used to implement connection and communication between these components. In addition to the data bus, the bus system 53 also includes a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are marked as the bus system 53 in FIG. 10.
- the memory 52 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
- the non-volatile memory can be a read only memory (ROM, Read Only Memory), a programmable read only memory (PROM, Programmable Read-Only Memory), an erasable programmable read only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage.
- the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
- RAM random access memory
- SRAM static random access memory
- SSRAM synchronous static random access memory
- DRAM dynamic random access Memory
- SDRAM Synchronous Dynamic Random Access Memory
- DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
- ESDRAM enhanced -Type synchronous dynamic random access memory
- SLDRAM SyncLink Dynamic Random Access Memory
- direct memory bus random access memory DRRAM, Direct Rambus Random Access Memory
- DRRAM Direct Rambus Random Access Memory
- the memory 52 described in the embodiment of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
- the method disclosed in the foregoing embodiment of the present application may be applied to the processor 51 or implemented by the processor 51.
- the processor 51 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 51 or instructions in the form of software.
- the aforementioned processor 51 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
- the processor 51 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
- the general-purpose processor may be a microprocessor or any conventional processor.
- the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
- the software module may be located in a storage medium, and the storage medium is located in the memory 52.
- the processor 51 reads the information in the memory 52 and completes the steps of the foregoing method in combination with its hardware.
- the image processing device may be used by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), and complex programmable logic device (CPLD). , Complex Programmable Logic Device, FPGA, general-purpose processor, controller, MCU, microprocessor (Microprocessor), or other electronic components to implement the foregoing method.
- ASIC Application Specific Integrated Circuit
- DSP programmable logic device
- PLD programmable logic device
- CPLD complex programmable logic device
- FPGA field-programmable gate array
- controller programmable Logic Device
- MCU microprocessor
- Microprocessor microprocessor
- the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method of the embodiment of the present application are implemented.
- the disclosed device and method may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the above-mentioned units is only a logical function division.
- the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms of.
- the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- the functional units in the embodiments of the present application can all be integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit;
- the unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
- the foregoing program can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: various media that can store program codes, such as a mobile storage device, ROM, RAM, magnetic disk, or optical disk.
- the above-mentioned integrated unit of this application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium.
- the computer software product is stored in a storage medium and includes several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the foregoing methods of the various embodiments of the present application.
- the aforementioned storage media include: removable storage devices, ROM, RAM, magnetic disks, or optical disks and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Medical Informatics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Quality & Reliability (AREA)
- Geometry (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
Claims (46)
- 一种图像处理方法,所述方法包括:获得第一图像,识别所述第一图像中的面部区域,确定所述面部区域相关的关键点信息,所述关键点信息包括:所述面部区域的关键点信息和外缘关键点信息;所述外缘关键点信息对应的区域包括所述面部区域且大于所述面部区域;基于所述关键点信息确定多个变形区域,基于所述多个变形区域中的至少部分变形区域对所述面部区域进行图像变形处理,生成第二图像。
- 根据权利要求1所述的方法,其中,所述面部区域的关键点信息包括所述面部区域的器官的关键点信息和所述面部区域的边缘的关键点信息;所述面部区域的边缘对应所述面部区域的轮廓;所述器官的关键点信息包括器官的中心关键点信息和/或器官的轮廓关键点信息。
- 根据权利要求1或2所述的方法,其中,所述基于所述关键点信息确定多个变形区域,包括:基于所述关键点信息中的任意相邻的三个关键点确定所述多个变形区域。
- 根据权利要求1至3任一项所述的方法,其中,所述基于所述多个变形区域中的至少部分变形区域对所述面部区域进行图像变形处理,包括:确定所述面部区域中的待处理的第一目标区域;基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;对所述第一目标区域对应的变形区域进行图像变形处理。
- 根据权利要求4所述的方法,其中,所述第一目标区域为眼部区域;所述眼部区域包括左眼区域和/或右眼区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域,包括:基于所述左眼区域对应的关键点信息,从所述多个变形区域中确定与所述左眼区域对应的第一组变形区域,和/或,基于所述右眼区域对应的关键点信息,从所述多个变形区域中确定与所述右眼区域对应的第二组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:对所述第一组变形区域和/或所述第二组变形区域进行图像变形处理;其中,所述第一组变形区域的图像变形方向和所述第二组变形区域的图像变形方向相反,以使所述左眼区域和所述右眼区域之间的距离增大或缩小。
- 根据权利要求4所述的方法,其中,所述第一目标区域为眼角区域;所述眼角区域包括左眼的眼角区域和/或右眼的眼角区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域,包括:基于所述左眼的眼角区域对应的关键点信息,从所述多个变形区域中确定与所述左眼的眼角区域对应的第三组变形区域,和/或,基于所述右眼的眼角区域对应的关键点信息,从所述多个变形区域中确定与所述右眼的眼角区域对应的第四组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:按照第一特定方向拉伸或压缩所述第三组变形区域和/或所述第四组变形区域,以调整所述左眼区域的眼角的位置和/或所述右眼区域的眼角的位置。
- 根据权利要求4所述的方法,其中,所述第一目标区域为眼部区域;所述眼部区域包括左眼区域和/或右眼区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域,包括:基于所述左眼区域对应的关键点信息,从所述多个变形区域中确定与所述左眼区域对应的第五组变形区域,和/或,基于所述右眼区域对应的关键点信息,从所述多个变形区域中确定与所述右眼区域对应的第六组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:对所述第五组变形区域进行变形处理,以使左眼区域的轮廓关键点相对于左眼区域的中心关键 点旋转,且旋转的角度满足第一设定角度,和/或,对所述第六组变形区域进行变形处理,以使右眼区域的轮廓关键点相对于右眼区域的中心关键点旋转,且旋转的角度满足第二设定角度。
- 根据权利要求4所述的方法,其中,所述第一目标区域为鼻子区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;包括:基于所述鼻子区域对应的关键点信息,从所述多个变形区域中确定与所述鼻子区域对应的第七组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:按照第二特定方向拉伸或压缩所述第七组变形区域,以拉长或缩短所述鼻子区域。
- 根据权利要求4所述的方法,其中,所述第一目标区域为鼻翼区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;包括:基于所述鼻翼区域对应的关键点信息,从所述多个变形区域中确定与所述鼻翼区域对应的第八组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:按照第三特定方向压缩或拉伸所述第八组变形区域,以使所述鼻翼区域变窄或变宽。
- 根据权利要求4所述的方法,其中,所述第一目标区域为下巴区域或人中区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;包括:基于所述下巴区域或人中区域对应的关键点信息,从所述多个变形区域中确定与所述下巴区域或人中区域对应的第九组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:按照第四特定方向压缩或拉伸所述第九组变形区域,以缩短或拉长所述下巴区域或人中区域。
- 根据权利要求4所述的方法,其中,所述第一目标区域为嘴部区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;包括:基于所述嘴部区域对应的关键点信息,从所述多个变形区域中确定与所述嘴部区域对应的第十组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:按照所述嘴部区域的边缘朝向所述嘴部区域的中心的方向对所述第十组变形区域进行压缩处理,或者按照所述嘴部区域的中心朝向所述嘴部区域的边缘的方向对所述第十组变形区域进行拉伸处理。
- 根据权利要求4所述的方法,其中,所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;包括:基于所述面部区域的边缘的关键点信息,从所述多个变形区域中确定与所述面部区域对应的第十一组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:按照所述面部区域的边缘朝向所述面部区域的中线的方向对所述第十一组变形区域进行压缩处理,或者按照所述面部区域的中线朝向所述面部区域的边缘的方向对所述第十一组变形区域进行拉伸处理。
- 根据权利要求4所述的方法,其中,所述第一目标区域为额头区域;所述基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;包括:基于所述额头区域的关键点信息,从所述多个变形区域中确定与所述额头区域对应的第十二组变形区域;所述对所述第一目标区域对应的变形区域进行图像变形处理,包括:按照第五特定方向对所述第十二组变形区域进行拉伸或压缩处理,以提升或降低所述面部区域的发际线;所述第五特定方向为所述额头区域的关键点指向与所述关键点距离最近的眉心的方向,或者,所述第四特定方向为所述额头区域的关键点远离与所述关键点距离最近的眉心的方向。
- 根据权利要求13所述的方法,其中,所述额头区域的关键点信息的确定方式包括:确定所述额头区域的至少三个关键点;基于所述至少三个关键点和所述面部区域中眼部以下的第一组轮廓点信息确定所述额头区域的关键点信息。
- 根据权利要求14所述的方法,其中,所述至少三个关键点中的第一关键点位于所述额头区 域的中线上;所述至少三个关键点中的第二关键点和第三关键点位于所述中线的两侧。
- 根据权利要求14或15所述的方法,其中,所述基于所述至少三个关键点和所述面部区域中眼部以下的第一组轮廓点信息确定所述额头区域的关键点信息,包括:基于所述面部区域中眼部以下的第一组轮廓点信息中位于两端的关键点以及所述至少三个关键点进行曲线拟合,获得曲线拟合关键点信息;基于曲线插值算法对所述曲线拟合关键点信息进行插值处理,获得所述额头区域的关键点信息。
- 根据权利要求1至16任一项所述的方法,其中,所述确定所述面部区域相关的关键点信息,包括:通过面部关键点检测算法检测所述面部区域,获得所述面部区域的器官的关键点信息以及所述面部区域的边缘的关键点信息;基于所述面部区域的边缘的关键点信息获得所述外缘关键点信息。
- 根据权利要求17所述的方法,其中,获得所述面部区域的边缘的关键点信息,包括:获得所述面部区域中眼部以下的第一组轮廓点信息;确定所述额头区域的第二组轮廓点信息,基于所述第一组轮廓点信息和所述第二组轮廓点信息确定所述面部区域的边缘的关键点信息。
- 根据权利要求17所述的方法,其中,所述基于所述面部区域的边缘的关键点信息获得所述外缘关键点信息,包括:确定所述面部区域的边缘的关键点信息与所述面部区域的中心点之间的相对位置关系,所述相对位置关系包括所述面部区域的边缘的关键点与所述面部区域的中心点之间的距离以及所述面部区域的边缘的关键点相对于所述面部区域的中心点的方向;基于所述相对位置关系将第一边缘的关键点按照朝向所述面部区域的外部的方向延伸预设距离,获得所述第一边缘的关键点对应的外缘关键点;其中,所述第一边缘的关键点为所述面部区域的边缘的关键点中的任一关键点;所述预设距离与所述第一边缘的关键点与面部区域的中心点之间的距离相关。
- 根据权利要求1至19任一项所述的方法,其中,所述方法还包括:确定所述面部区域的偏转参数,基于所述偏转参数确定所述至少部分变形区域中每个变形区域对应的变形参数和变形方向,以使每个变形区域按照对应的变形参数和变形方向进行图像变形处理。
- 根据权利要求20所述的方法,其中,所述确定所述面部区域的偏转参数,包括:确定所述面部区域中任一区域的左侧边缘关键点、右侧边缘关键点和中心关键点;所述区域包括以下区域的至少之一:脸部区域、鼻子区域、嘴部区域;确定所述左侧关键点与所述中心关键点之间的第一距离,以及确定所述右侧边缘关键点与所述中心关键点之间的第二距离;基于所述第一距离和所述第二距离确定所述面部区域的偏转参数。
- 根据权利要求1至21任一项所述的方法,其中,所述方法还包括:识别所述面部区域中的第二目标区域,对所述第二目标区域进行特征处理,生成第三图像;所述第二目标区域包括以下至少之一:眼周区域、法令纹区域、牙齿区域、眼部区域、苹果肌区域。
- 一种图像处理装置,所述装置包括:第一确定单元和变形处理单元;其中,所述第一确定单元,配置为获得第一图像,识别所述第一图像中的面部区域,确定所述面部区域相关的关键点信息,所述关键点信息包括:所述面部区域的关键点信息和外缘关键点信息;所述外缘关键点信息对应的区域包括所述面部区域且大于所述面部区域;还配置为基于所述关键点信息确定多个变形区域;所述变形处理单元,配置为基于所述多个变形区域中的至少部分变形区域对所述面部区域进行图像变形处理,生成第二图像。
- 根据权利要求23所述的装置,其中,所述面部区域的关键点信息包括所述面部区域的器官的关键点信息和所述面部区域的边缘的关键点信息;所述面部区域的边缘对应所述面部区域的轮廓;所述器官的关键点信息包括器官的中心关键点信息和/或器官的轮廓关键点信息。
- 根据权利要求23或24所述的装置,其中,所述第一确定单元,配置为基于所述关键点信息中的任意相邻的三个关键点确定所述多个变形区域。
- 根据权利要求23至25任一项所述的装置,其中,所述第一确定单元,配置为确定所述面部区域中的待处理的第一目标区域;基于所述第一目标区域对应的关键点信息,从所述多个变形区域中确定与所述第一目标区域对应的变形区域;所述变形处理单元,配置为对所述第一目标区域对应的变形区域进行图像变形处理。
- 根据权利要求26所述的装置,其中,所述第一目标区域为眼部区域;所述眼部区域包括左眼区域和/或右眼区域;所述第一确定单元,配置为基于所述左眼区域对应的关键点信息,从所述多个变形区域中确定与所述左眼区域对应的第一组变形区域,和/或,基于所述右眼区域对应的关键点信息,从所述多个变形区域中确定与所述右眼区域对应的第二组变形区域;所述变形处理单元,配置为对所述第一组变形区域和/或所述第二组变形区域进行图像变形处理,其中,所述第一组变形区域的图像变形方向和所述第二组变形区域的图像变形方向相反,以使所述左眼区域和所述右眼区域之间的距离增大或缩小。
- 根据权利要求26所述的装置,其中,所述第一目标区域为眼角区域;所述眼角区域包括左眼的眼角区域和/或右眼的眼角区域;所述第一确定单元,配置为基于所述左眼的眼角区域对应的关键点信息,从所述多个变形区域中确定与所述左眼的眼角区域对应的第三组变形区域,和/或,基于所述右眼的眼角区域对应的关键点信息,从所述多个变形区域中确定与所述右眼的眼角区域对应的第四组变形区域;所述变形处理单元,配置为按照第一特定方向拉伸或压缩所述第三组变形区域和/或所述第四组变形区域,以调整所述左眼区域的眼角的位置和/或所述右眼区域的眼角的位置。
- 根据权利要求26所述的装置,其中,所述第一目标区域为眼部区域;所述眼部区域包括左眼区域和/或右眼区域;所述第一确定单元,配置为基于所述左眼区域对应的关键点信息,从所述多个变形区域中确定与所述左眼区域对应的第五组变形区域,和/或,基于所述右眼区域对应的关键点信息,从所述多个变形区域中确定与所述右眼区域对应的第六组变形区域;所述变形处理单元,配置为对所述第五组变形区域进行变形处理,以使左眼区域的轮廓关键点相对于左眼区域的中心关键点旋转,且旋转的角度满足第一设定角度,和/或,对所述第六组变形区域进行变形处理,以使右眼区域的轮廓关键点相对于右眼区域的中心关键点旋转,且旋转的角度满足第二设定角度。
- 根据权利要求26所述的装置,其中,所述第一目标区域为鼻子区域;所述第一确定单元,配置为基于所述鼻子区域对应的关键点信息,从所述多个变形区域中确定与所述鼻子区域对应的第七组变形区域;所述变形处理单元,配置为按照第二特定方向拉伸或压缩所述第七组变形区域,以拉长或缩短所述鼻子区域。
- 根据权利要求26所述的装置,其中,所述第一目标区域为鼻翼区域;所述第一确定单元,配置为基于所述鼻翼区域对应的关键点信息,从所述多个变形区域中确定与所述鼻翼区域对应的第八组变形区域;所述变形处理单元,配置为按照第三特定方向压缩或拉伸所述第八组变形区域,以使所述鼻翼区域变窄或变宽。
- 根据权利要求26所述的装置,其中,所述第一目标区域为下巴区域或人中区域;所述第一确定单元,配置为基于所述下巴区域或人中区域对应的关键点信息,从所述多个变形区域中确定与所述下巴区域或人中区域对应的第九组变形区域;所述变形处理单元,配置为按照第四特定方向压缩或拉伸所述第九组变形区域,以缩短或拉长所述下巴区域或人中区域。
- 根据权利要求26所述的装置,其中,所述第一目标区域为嘴部区域;所述第一确定单元,配置为基于所述嘴部区域对应的关键点信息,从所述多个变形区域中确定与所述嘴部区域对应的第十组变形区域;所述变形处理单元,配置为按照所述嘴部区域的边缘朝向所述嘴部区域的中心的方向对所述第十组变形区域进行压缩处理,或者按照所述嘴部区域的中心朝向所述嘴部区域的边缘的方向对所述第十组变形区域进行拉伸处理。
- 根据权利要求26所述的装置,其中,所述第一确定单元,配置为基于所述面部区域的边缘的关键点信息,从所述多个变形区域中确定与所述面部区域对应的第十一组变形区域;所述变形处理单元,配置为按照所述面部区域的边缘朝向所述面部区域的中线的方向对所述第十一组变形区域进行压缩处理,或者按照所述面部区域的中线朝向所述面部区域的边缘的方向对所述第十一组变形区域进行拉伸处理。
- 根据权利要求26所述的装置,其中,所述第一目标区域为额头区域;所述第一确定单元,配置为基于所述额头区域对应的关键点信息,从所述多个变形区域中确定与所述额头区域对应的第十二组变形区域;所述变形处理单元,配置为按照第五特定方向对所述第十二组变形区域进行拉伸或压缩处理,以提升或降低所述面部区域的发际线;所述第五特定方向为所述额头区域的关键点指向与所述关键点距离最近的眉心的方向,或者,所述第五特定方向为所述额头区域的关键点远离与所述关键点距离最近的眉心的方向。
- 根据权利要求35所述的装置,其中,所述第一确定单元,配置为确定所述额头区域的至少三个关键点;基于所述至少三个关键点和所述面部区域中眼部以下的第一组轮廓点信息确定所述额头区域的关键点信息。
- 根据权利要求36所述的装置,其中,所述至少三个关键点中的第一关键点位于所述额头区域的中线上;所述至少三个关键点中的第二关键点和第三关键点位于所述中线的两侧。
- 根据权利要求36或37所述的装置,其中,所述第一确定单元,配置为基于所述面部区域中眼部以下的第一组轮廓点信息中位于两端的关键点以及所述至少三个关键点信息进行曲线拟合,获得曲线拟合关键点信息;基于曲线插值算法对所述曲线拟合关键点信息进行插值处理,获得所述额头区域的关键点信息。
- 根据权利要求23至38任一项所述的装置,其中,所述第一确定单元,配置为通过面部关键点检测算法检测所述面部区域,获得所述面部区域的器官的关键点信息以及所述面部区域的边缘的关键点信息;基于所述面部区域的边缘的关键点信息获得所述外缘关键点信息。
- 根据权利要求39所述的装置,其中,所述第一确定单元,配置为获得所述面部区域中眼部以下的第一组轮廓点信息;确定所述额头区域的第二组轮廓点信息,基于所述第一组轮廓点信息和所述第二组轮廓点信息确定所述面部区域的边缘的关键点信息。
- 根据权利要求39所述的装置,其中,所述第一确定单元,配置为确定所述面部区域的边缘的关键点信息与所述面部区域的中点之间的相对位置关系,所述相对位置关系包括所述面部区域的边缘的关键点与所述面部区域的中心点之间的距离以及所述面部区域的边缘的关键点相对于所述面部区域的中心点的方向;基于所述相对位置关系将第一边缘的关键点按照朝向所述面部区域的外部的方向延伸预设距离,获得所述第一边缘的关键点对应的外缘关键点;其中,所述第一边缘的关键点为所述面部区域的边缘的关键点中的任一关键点;所述预设距离与所述第一边缘的关键点与面部区域的中心点之间的距离相关。
- 根据权利要求23至41任一项所述的装置,其中,所述装置还包括第二确定单元,配置为确定所述面部区域的偏转参数,基于所述偏转参数确定所述至少部分变形区域中每个变形区域对应的变形参数和变形方向,以使每个变形区域按照对应的变形参数和变形方向进行图像变形处理。
- 根据权利要求42所述的装置,其中,所述第二确定单元,配置为确定所述面部区域中任一区域的左侧边缘关键点、右侧边缘关键点和中心关键点;所述区域包括以下区域的至少之一:脸部区域、鼻子区域、嘴部区域;确定所述左侧关键点与所述中心关键点之间的第一距离,以及确定所述右侧边缘关键点与所述中心关键点之间的第二距离;基于所述第一距离和所述第二距离确定所述面部区域的偏转参数。
- 根据权利要求23至43任一项所述的装置,其中,所述装置还包括图像处理单元,配置为识别所述面部区域中的第二目标区域,对所述第二目标区域进行特征处理,生成第三图像;所述第二目标区域包括以下至少之一:眼周区域、法令纹区域、牙齿区域、眼部区域、苹果肌区域。
- 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1至22任一项所述方法的步骤。
- 一种图像处理装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1至22任一项所述方法的步骤。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SG11202006345UA SG11202006345UA (en) | 2019-03-06 | 2019-11-19 | Image processing methods and apparatuses |
| KR1020207013711A KR102442483B1 (ko) | 2019-03-06 | 2019-11-19 | 이미지 처리 방법 및 장치 |
| JP2020536145A JP7160925B2 (ja) | 2019-03-06 | 2019-11-19 | 画像処理方法及び装置 |
| US16/920,972 US11244449B2 (en) | 2019-03-06 | 2020-07-06 | Image processing methods and apparatuses |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910169503.4 | 2019-03-06 | ||
| CN201910169503.4A CN109934766B (zh) | 2019-03-06 | 2019-03-06 | 一种图像处理方法及装置 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/920,972 Continuation US11244449B2 (en) | 2019-03-06 | 2020-07-06 | Image processing methods and apparatuses |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020177394A1 true WO2020177394A1 (zh) | 2020-09-10 |
Family
ID=66986598
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/119534 Ceased WO2020177394A1 (zh) | 2019-03-06 | 2019-11-19 | 一种图像处理方法及装置 |
Country Status (7)
| Country | Link |
|---|---|
| US (1) | US11244449B2 (zh) |
| JP (1) | JP7160925B2 (zh) |
| KR (1) | KR102442483B1 (zh) |
| CN (1) | CN109934766B (zh) |
| SG (1) | SG11202006345UA (zh) |
| TW (1) | TW202034280A (zh) |
| WO (1) | WO2020177394A1 (zh) |
Families Citing this family (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109087239B (zh) * | 2018-07-25 | 2023-03-21 | 腾讯科技(深圳)有限公司 | 一种人脸图像处理方法、装置及存储介质 |
| CN109934766B (zh) * | 2019-03-06 | 2021-11-30 | 北京市商汤科技开发有限公司 | 一种图像处理方法及装置 |
| CN110728620A (zh) * | 2019-09-30 | 2020-01-24 | 北京市商汤科技开发有限公司 | 一种图像处理方法、装置和电子设备 |
| JP7102554B2 (ja) | 2019-09-30 | 2022-07-19 | ベイジン・センスタイム・テクノロジー・デベロップメント・カンパニー・リミテッド | 画像処理方法、装置及び電子機器 |
| CN111104846B (zh) * | 2019-10-16 | 2022-08-30 | 平安科技(深圳)有限公司 | 数据检测方法、装置、计算机设备和存储介质 |
| JP2022512262A (ja) | 2019-11-21 | 2022-02-03 | ベイジン センスタイム テクノロジー デベロップメント カンパニー, リミテッド | 画像処理方法及び装置、画像処理機器並びに記憶媒体 |
| CN111031305A (zh) * | 2019-11-21 | 2020-04-17 | 北京市商汤科技开发有限公司 | 图像处理方法及装置、图像设备及存储介质 |
| CN111145110B (zh) * | 2019-12-13 | 2021-02-19 | 北京达佳互联信息技术有限公司 | 图像处理方法、装置、电子设备及存储介质 |
| CN111179156B (zh) * | 2019-12-23 | 2023-09-19 | 北京中广上洋科技股份有限公司 | 一种基于人脸检测的视频美化方法 |
| CN111753685B (zh) * | 2020-06-12 | 2024-01-12 | 北京字节跳动网络技术有限公司 | 图像中人脸发际线调整方法、装置及电子设备 |
| CN111723803B (zh) * | 2020-06-30 | 2023-09-26 | 广州繁星互娱信息科技有限公司 | 图像处理方法、装置、设备及存储介质 |
| CN112669228B (zh) * | 2020-12-22 | 2024-05-31 | 厦门美图之家科技有限公司 | 图像处理方法、系统、移动终端及存储介质 |
| CN113034349B (zh) * | 2021-03-24 | 2023-11-14 | 北京达佳互联信息技术有限公司 | 图像处理方法、装置、电子设备及存储介质 |
| CN115147447A (zh) * | 2021-03-31 | 2022-10-04 | 海信集团控股股份有限公司 | 一种化妆镜以及眼部妆容辅助方法 |
| CN113344878B (zh) * | 2021-06-09 | 2022-03-18 | 北京容联易通信息技术有限公司 | 一种图像处理方法及系统 |
| CN114694212A (zh) * | 2022-03-10 | 2022-07-01 | 上海电机学院 | 基于ResNet和RetinaFace的口罩佩戴检测方法 |
| TWI831582B (zh) * | 2023-01-18 | 2024-02-01 | 瑞昱半導體股份有限公司 | 偵測系統以及偵測方法 |
| CN116109479B (zh) * | 2023-04-17 | 2023-07-18 | 广州趣丸网络科技有限公司 | 虚拟形象的面部调整方法、装置、计算机设备和存储介质 |
| US20250005961A1 (en) * | 2023-06-30 | 2025-01-02 | Samsung Electronics Co., Ltd. | Method and apparatus with image processing |
| CN117274432B (zh) * | 2023-09-20 | 2024-05-14 | 书行科技(北京)有限公司 | 图像描边特效的生成方法、装置、设备和可读存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120113106A1 (en) * | 2010-11-04 | 2012-05-10 | Electronics And Telecommunications Research Institute | Method and apparatus for generating face avatar |
| CN104992402A (zh) * | 2015-07-02 | 2015-10-21 | 广东欧珀移动通信有限公司 | 一种美颜处理方法及装置 |
| CN107330868A (zh) * | 2017-06-26 | 2017-11-07 | 北京小米移动软件有限公司 | 图片处理方法及装置 |
| CN107341777A (zh) * | 2017-06-26 | 2017-11-10 | 北京小米移动软件有限公司 | 图片处理方法及装置 |
| CN109934766A (zh) * | 2019-03-06 | 2019-06-25 | 北京市商汤科技开发有限公司 | 一种图像处理方法及装置 |
Family Cites Families (25)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4678603B2 (ja) * | 2007-04-20 | 2011-04-27 | 富士フイルム株式会社 | 撮像装置及び撮像方法 |
| JP2011053942A (ja) * | 2009-09-02 | 2011-03-17 | Seiko Epson Corp | 画像処理装置、画像処理方法および画像処理プログラム |
| KR101558202B1 (ko) * | 2011-05-23 | 2015-10-12 | 한국전자통신연구원 | 아바타를 이용한 애니메이션 생성 장치 및 방법 |
| KR101165017B1 (ko) * | 2011-10-31 | 2012-07-13 | (주) 어펙트로닉스 | 3차원 아바타 생성 시스템 및 방법 |
| CN103337085A (zh) | 2013-06-17 | 2013-10-02 | 大连理工大学 | 一种高效的人像面部变形方法 |
| CN104268591B (zh) * | 2014-09-19 | 2017-11-28 | 海信集团有限公司 | 一种面部关键点检测方法及装置 |
| JP6506053B2 (ja) * | 2015-03-09 | 2019-04-24 | 学校法人立命館 | 画像処理装置、画像処理方法、及びコンピュータプログラム |
| CN105205779B (zh) | 2015-09-15 | 2018-10-19 | 厦门美图之家科技有限公司 | 一种基于图像变形的眼部图像处理方法、系统及拍摄终端 |
| US9978119B2 (en) * | 2015-10-22 | 2018-05-22 | Korea Institute Of Science And Technology | Method for automatic facial impression transformation, recording medium and device for performing the method |
| CN107103271A (zh) | 2016-02-23 | 2017-08-29 | 芋头科技(杭州)有限公司 | 一种人脸检测方法 |
| CN105931178A (zh) * | 2016-04-15 | 2016-09-07 | 乐视控股(北京)有限公司 | 一种图像处理方法及装置 |
| CN105975935B (zh) * | 2016-05-04 | 2019-06-25 | 腾讯科技(深圳)有限公司 | 一种人脸图像处理方法和装置 |
| CN108229279B (zh) * | 2017-04-14 | 2020-06-02 | 深圳市商汤科技有限公司 | 人脸图像处理方法、装置和电子设备 |
| US10210648B2 (en) * | 2017-05-16 | 2019-02-19 | Apple Inc. | Emojicon puppeting |
| CN108876704B (zh) * | 2017-07-10 | 2022-03-04 | 北京旷视科技有限公司 | 人脸图像变形的方法、装置及计算机存储介质 |
| CN107506732B (zh) * | 2017-08-25 | 2021-03-30 | 奇酷互联网络科技(深圳)有限公司 | 贴图的方法、设备、移动终端以及计算机存储介质 |
| CN107680033B (zh) * | 2017-09-08 | 2021-02-19 | 北京小米移动软件有限公司 | 图片处理方法及装置 |
| CN107705248A (zh) * | 2017-10-31 | 2018-02-16 | 广东欧珀移动通信有限公司 | 图像处理方法、装置、电子设备和计算机可读存储介质 |
| CN108765274A (zh) * | 2018-05-31 | 2018-11-06 | 北京市商汤科技开发有限公司 | 一种图像处理方法、装置和计算机存储介质 |
| CN108830783B (zh) * | 2018-05-31 | 2021-07-02 | 北京市商汤科技开发有限公司 | 一种图像处理方法、装置和计算机存储介质 |
| CN109087238B (zh) * | 2018-07-04 | 2021-04-23 | 北京市商汤科技开发有限公司 | 图像处理方法和装置、电子设备以及计算机可读存储介质 |
| CN108985241B (zh) * | 2018-07-23 | 2023-05-02 | 腾讯科技(深圳)有限公司 | 图像处理方法、装置、计算机设备及存储介质 |
| CN109087239B (zh) * | 2018-07-25 | 2023-03-21 | 腾讯科技(深圳)有限公司 | 一种人脸图像处理方法、装置及存储介质 |
| CN109147012B (zh) * | 2018-09-20 | 2023-04-14 | 麒麟合盛网络技术股份有限公司 | 图像处理方法和装置 |
| CN109377446B (zh) * | 2018-10-25 | 2022-08-30 | 北京市商汤科技开发有限公司 | 人脸图像的处理方法及装置、电子设备和存储介质 |
-
2019
- 2019-03-06 CN CN201910169503.4A patent/CN109934766B/zh active Active
- 2019-11-19 KR KR1020207013711A patent/KR102442483B1/ko active Active
- 2019-11-19 WO PCT/CN2019/119534 patent/WO2020177394A1/zh not_active Ceased
- 2019-11-19 SG SG11202006345UA patent/SG11202006345UA/en unknown
- 2019-11-19 JP JP2020536145A patent/JP7160925B2/ja active Active
- 2019-12-12 TW TW108145585A patent/TW202034280A/zh unknown
-
2020
- 2020-07-06 US US16/920,972 patent/US11244449B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120113106A1 (en) * | 2010-11-04 | 2012-05-10 | Electronics And Telecommunications Research Institute | Method and apparatus for generating face avatar |
| CN104992402A (zh) * | 2015-07-02 | 2015-10-21 | 广东欧珀移动通信有限公司 | 一种美颜处理方法及装置 |
| CN107330868A (zh) * | 2017-06-26 | 2017-11-07 | 北京小米移动软件有限公司 | 图片处理方法及装置 |
| CN107341777A (zh) * | 2017-06-26 | 2017-11-10 | 北京小米移动软件有限公司 | 图片处理方法及装置 |
| CN109934766A (zh) * | 2019-03-06 | 2019-06-25 | 北京市商汤科技开发有限公司 | 一种图像处理方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| JP7160925B2 (ja) | 2022-10-25 |
| CN109934766B (zh) | 2021-11-30 |
| SG11202006345UA (en) | 2020-10-29 |
| TW202034280A (zh) | 2020-09-16 |
| JP2021517999A (ja) | 2021-07-29 |
| US11244449B2 (en) | 2022-02-08 |
| CN109934766A (zh) | 2019-06-25 |
| KR102442483B1 (ko) | 2022-09-13 |
| US20200334812A1 (en) | 2020-10-22 |
| KR20200107930A (ko) | 2020-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109934766B (zh) | 一种图像处理方法及装置 | |
| CN107146199B (zh) | 一种人脸图像的融合方法、装置及计算设备 | |
| JP6636154B2 (ja) | 顔画像処理方法および装置、ならびに記憶媒体 | |
| US11288796B2 (en) | Image processing method, terminal device, and computer storage medium | |
| CN110049351B (zh) | 视频流中人脸变形的方法和装置、电子设备、计算机可读介质 | |
| US11238569B2 (en) | Image processing method and apparatus, image device, and storage medium | |
| WO2021062998A1 (zh) | 一种图像处理方法、装置和电子设备 | |
| US20250028787A1 (en) | Face swapping with neural network-based geometry refining | |
| CN109952594A (zh) | 图像处理方法、装置、终端及存储介质 | |
| US20210035260A1 (en) | Method and apparatus for image processing, and computer storage medium | |
| CN104992402A (zh) | 一种美颜处理方法及装置 | |
| CN113592988A (zh) | 三维虚拟角色图像生成方法及装置 | |
| CN106033593A (zh) | 图像处理设备和方法 | |
| CN110060348A (zh) | 人脸图像整形方法及装置 | |
| CN109242760A (zh) | 人脸图像的处理方法、装置和电子设备 | |
| WO2020057667A1 (zh) | 一种图像处理方法、装置和计算机存储介质 | |
| WO2020019915A1 (zh) | 一种图像处理方法、装置和计算机存储介质 | |
| JP7102554B2 (ja) | 画像処理方法、装置及び電子機器 | |
| CN113421197A (zh) | 一种美颜图像的处理方法及其处理系统 | |
| HK40008773B (zh) | 一种图像处理方法及装置 | |
| HK40008773A (zh) | 一种图像处理方法及装置 | |
| CN114519663A (zh) | 一种基于图像的形变方法、装置、设备及存储介质 | |
| JP6905588B2 (ja) | 画像処理装置、撮像装置、画像印刷装置、画像処理装置の制御方法、および画像処理プログラム | |
| CN116343276B (zh) | 人脸处理方法、装置、电子设备、芯片及存储介质 | |
| Chou et al. | Simulation of face/hairstyle swapping in photographs with skin texture synthesis |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| ENP | Entry into the national phase |
Ref document number: 20207013711 Country of ref document: KR Kind code of ref document: A |
|
| ENP | Entry into the national phase |
Ref document number: 2020536145 Country of ref document: JP Kind code of ref document: A |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19918168 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19918168 Country of ref document: EP Kind code of ref document: A1 |