Introduction - If you have any usage issues, please Google them yourself
The encapsulated function, input a face image to be divided, and output the face image after the segmentation
Specific steps:
1) face detection, get the frame of the face area
2) get the center point of the face image frame
3) according to the center point, the image is expanded in equal proportion to get the appropriate size of the face image.
4) output this part of the face image