All Projects → Jacen789 → simple_faceswap

Jacen789 / simple_faceswap

Licence: other
使用python-opencv和dlib实现的简单换脸程序

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to simple faceswap

Face-Recognition-Attendance-System
A simple python script that recognises faces and mark attendance for the recognised faces in an excel sheet.
Stars: ✭ 57 (+14%)
Mutual labels:  dlib, opencv-python
facial-landmarks
Facial landmarks detection with OpenCV, Dlib, DNN
Stars: ✭ 25 (-50%)
Mutual labels:  dlib, opencv-python
boxdetect
BoxDetect is a Python package based on OpenCV which allows you to easily detect rectangular shapes like character or checkbox boxes on scanned forms.
Stars: ✭ 46 (-8%)
Mutual labels:  opencv-python
object detector
Object detector from HOG + Linear SVM framework
Stars: ✭ 24 (-52%)
Mutual labels:  opencv-python
Eufa
A high efficient utility functions(encryption, machine learning, etc) library written in WebAssembly just for demo.
Stars: ✭ 28 (-44%)
Mutual labels:  dlib
WoW Fishing Bot
Fishing bot written in Python3.6
Stars: ✭ 15 (-70%)
Mutual labels:  opencv-python
Z-Spider
一些爬虫开发的技巧和案例
Stars: ✭ 33 (-34%)
Mutual labels:  opencv-python
vidpipe
Video data processing pipeline using OpenCV
Stars: ✭ 33 (-34%)
Mutual labels:  opencv-python
pycv4rtsp
VideoCapture封装,读取rtsp的实时帧
Stars: ✭ 38 (-24%)
Mutual labels:  opencv-python
Image Processing
Image Processing techniques using OpenCV and Python.
Stars: ✭ 112 (+124%)
Mutual labels:  opencv-python
AverageFaceDemo
Average face on android
Stars: ✭ 31 (-38%)
Mutual labels:  dlib
EyeControlledCursor
Controlling mouse cursor from eye.
Stars: ✭ 36 (-28%)
Mutual labels:  opencv-python
capsnap
OpenCV tool that combines image processing algorithms to remove black-bar caption filters from Snapchat images
Stars: ✭ 26 (-48%)
Mutual labels:  opencv-python
flutter-webrtc python-aiortc-opencv
Flutter WebRTC demo with Python server to perform image processing on video frames using OpenCV
Stars: ✭ 34 (-32%)
Mutual labels:  opencv-python
gateway to DeepReinforcementLearning DeepNN
🏆 Welcome to the wonderland of "AI" = f(DL, RL, DRL, ML, NLP, KG, MLOPS)
Stars: ✭ 16 (-68%)
Mutual labels:  opencv-python
Pixel-Processing
📷 This repository is focused on having various feature implementation of OpenCV in Python. The aim is to have a minimal implementation of all OpenCV features together, under one roof.
Stars: ✭ 122 (+144%)
Mutual labels:  opencv-python
Age-Prediction
This Project is an applicaton based on Computer vision and Machine learning implementation using regression supervised classification.
Stars: ✭ 26 (-48%)
Mutual labels:  opencv-python
Face-Morphing
👯‍♀️ We are more alike than different - morphing one face to another
Stars: ✭ 66 (+32%)
Mutual labels:  dlib
FaceEmotionClassifier
人脸识别与卡通化
Stars: ✭ 102 (+104%)
Mutual labels:  opencv-python
edge-tpu-servers
Object and face recognition using Google's edge TPU
Stars: ✭ 37 (-26%)
Mutual labels:  dlib

simple_faceswap

使用opencv-python和dlib实现的简单换脸程序

准备

实现步骤

  1. 使用dlib的shape_predictor_68_face_landmarks.dat模型获取人脸图片im1和摄像头图片im2的68个人脸特征点。
  2. 根据上一步获得的特征点得到两张图片的人脸掩模im1_mask和im2_mask。
  3. 利用68个特征点中的3个特征点,对人脸图片im1进行仿射变换使其脸部对准摄像头图片中的脸部,得到图片affine_im1。
  4. 对人脸图片的掩模im1_mask也进行相同的仿射变换得到affine_im1_mask。
  5. 对掩模im2_mask和掩模affine_im1_mask的掩盖部分取并集得到union_mask。
  6. 利用opencv里的seamlessClone函数对仿射变换后的affine_im1和摄像头图片im2进行泊松融合,掩模为union_mask,得到融合后的图像seamless_im。

换脸效果

  • 周杰伦的帅气照:

JayChou.png

  • 利用杰伦的脸作为替换的脸的换脸效果:

seamless_im.png

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].