In step S201, a to-be-processed image is obtained.
In step S202, it is determined if a face image is detected in the to-be-processed image.
In step S203, a face image region on which the first processing is to be performed is determined.
In this embodiment, a user may select an image region to be processed. When an image is detected, multiple feature points are detected. Five sense organs and a face contour in the face image may be distinguished based on the feature points. The user may select a region to be processed. The selection may include directly selecting the region on which the first processing is to be performed, or may include selecting a remaining image region after matting is performed. In this embodiment, the image region on which the first processing is to be performed is selected in the matting manner. For example, the user may select not to process the nose region by cutting out the nose region, and performing the first processing on the remaining image region. It should be noted that this step may also be omitted to directly perform the first processing on the entire face image, that is, the entire face image may be selected for the first processing.
In step S204, low-pass filtering is performed on the face image, to obtain a low frequency component of the face image, the low frequency component is subtracted from the face image, to obtain a high frequency component of the face image, and the high frequency component is amplified to obtain the first image.