Patent ID: 10438329

Abstract:
The method provided in the present disclosure includes: obtaining an image photographed by a camera, and performing face detection on the image by using a face detection algorithm, to obtain a face pixel set from the image; positioning a facial feature contour mask over the face pixel set, to obtain a to-be-examined pixel set from the face pixel set, the to-be-examined pixel set including: a plurality of pixels within an image area except pixels masked by the facial feature contour mask in the face pixel set; performing edge contour detection on the to-be-examined pixel set, and extracting one or more blemish regions from the to-be-examined pixel set, to obtain a to-be-retouched pixel set, the to-be-retouched pixel set including: a plurality of pixels within an image area belonging to the blemish regions; and retouching all pixels in the to-be-retouched pixel set, to obtain a retouched pixel set.