The facial region is a position of a face in the target image. Specifically, the server may recognize a facial region in the target image through a facial detection algorithm. The facial detection algorithm may be customized as required, and may be, for example, an OpenCV facial detection algorithm, a built-in facial detection algorithm in an IOS or Android system, or a Youtu facial detection algorithm. The facial detection algorithm may return a result indicating whether the target image includes a face, and a specific facial region, for example, identify the position of a face with a rectangular box. After determining the facial region in the target image, the server may intercept the target image along the facial region to obtain a facial image. In this embodiment, the facial image may include only an image of a facial region of a human face.