Dependent libraries: opencv2411 and above, Dlib19.7
Main algorithm steps:
-
Detect key points of the face through the face detection algorithm
-
Generate mosaic mapping on the current frame image of the video
-
Obtain the face envelope according to the position of the key points of the face
-
Generate a mask image from the face envelope
-
Combine the mask image and the mosaic image to generate the final dynamic face mosaic image
If it helps you, please give me a star, thank you
depend lib:opencv2411or up、Dlib19.7 or up
The main algorithm steps:
1, through the face detection algorithm to detect the key points of the face 2. Perform mosaic generation mapping on the current frame image of the video. 3. Obtain the face envelope according to the position of the key point of the face 4, by the face envelope generation mask map 5. Combine the mask map and the mosaic map to generate the final dynamic face mosaic image.
If you feel helpful to you, please give me a star, thank you