All Projects → Azmarie → Face-Morphing

Azmarie / Face-Morphing

Licence: MIT license
👯‍♀️ We are more alike than different - morphing one face to another

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Face-Morphing

sofgan
[TOG 2022] SofGAN: A Portrait Image Generator with Dynamic Styling
Stars: ✭ 715 (+983.33%)
Mutual labels:  faces
MultiObjectTracker
Advanced multiple object tracker using dlib and OpenCV.
Stars: ✭ 56 (-15.15%)
Mutual labels:  dlib
age-and-gender
Predict Age and Gender of people from images | Determination of gender and age
Stars: ✭ 68 (+3.03%)
Mutual labels:  faces
Fatigue-Detection
Eye state classification using OpenCV and DLib to estimate Percentage Eye Closure (PERCLOS) and alert a drowsy person (such as a driver).
Stars: ✭ 46 (-30.3%)
Mutual labels:  dlib
dlib
Dynamic loading library for C/C++
Stars: ✭ 19 (-71.21%)
Mutual labels:  dlib
face-rec-tools
Media library face recognition tools
Stars: ✭ 14 (-78.79%)
Mutual labels:  dlib
Facerecognition
Nextcloud app that implement a basic facial recognition system.
Stars: ✭ 226 (+242.42%)
Mutual labels:  dlib
fontify-face
Fontify symbols representing faces with that face.
Stars: ✭ 32 (-51.52%)
Mutual labels:  faces
webmorph
Average and morph faces online http://webmorph.org/
Stars: ✭ 55 (-16.67%)
Mutual labels:  faces
avatar-facial-landmark-detection
A method about optimizing the facial landmark detection based on Kalman Filter, Optical Flow and Dlib
Stars: ✭ 87 (+31.82%)
Mutual labels:  dlib
cpp-code-snippets
Some useful C++ code snippets
Stars: ✭ 35 (-46.97%)
Mutual labels:  dlib
Face-Recognition-Attendance-System
A simple python script that recognises faces and mark attendance for the recognised faces in an excel sheet.
Stars: ✭ 57 (-13.64%)
Mutual labels:  dlib
T System
the moving objects tracking system via two axis camera motion (and as optionally n joint robotic arm) for raspberry pi distributions
Stars: ✭ 17 (-74.24%)
Mutual labels:  dlib
fluidAR
augmented reality boilerplate app for iOS (powered by OpenCV and DLIB)
Stars: ✭ 16 (-75.76%)
Mutual labels:  dlib
android-face-landmarks
Android app that localizes facial landmarks in nearly real-time
Stars: ✭ 62 (-6.06%)
Mutual labels:  dlib
Add Christmas Hat
Add Christmas hat on one's head based on OpneCV and Dlib
Stars: ✭ 251 (+280.3%)
Mutual labels:  dlib
PSGAN-NCNN
PSGAN running with ncnn⚡妆容迁移/仿妆⚡Imitation Makeup/Makeup Transfer⚡
Stars: ✭ 140 (+112.12%)
Mutual labels:  dlib
Eufa
A high efficient utility functions(encryption, machine learning, etc) library written in WebAssembly just for demo.
Stars: ✭ 28 (-57.58%)
Mutual labels:  dlib
FaceDetection.jl
A face detection algorithm using Viola-Jones' rapid object detection framework written in Julia
Stars: ✭ 13 (-80.3%)
Mutual labels:  faces
dlib-minified-models
A set of minified (but still accurate) models for Dlib
Stars: ✭ 61 (-7.58%)
Mutual labels:  dlib

Face Morphing

Create a morphing sequences betwen two faces.

Input: Two images containing faces
Output: A video showing the fluid transformation from one face to the other

Requirements

numpy
scikit_image
opencv_python
Pillow
skimage
dlib

Getting Started

Test with demo images

A photo of Jennie from Blackpink A photo of Rihanna

Generate a morphing animation video sequence

python3 code/__init__.py --img1 images/aligned_images/jennie.png --img2 images/aligned_images/rih.png --output output.mp4

Morphed Video

Test with your own images

  1. Put your images in Images folder

  2. Auto align faces with python code/utils/align_images.py images/ images/aligned_images --output_size=1024 This will look for faces in the images - crop out, align (center the nose and make the eyes horizontal), and then rescale the resulting images and save them in "aligned_images" folder.

  3. Run code/__init__.py above on your aligned face images with arg --img1 and --img2.

Key Features

  1. Detect and auto align faces in images (Optional for face morphing)
  2. Generate corresponding features points between the two images using Dlib's Facial Landmark Detection
  3. Calculate the triangular mesh with Delaunay Triangulation for each intermediate shape
  4. Warp the two input images towards the intermediate shape, perform cross-dissolve and obtain intermediate images each frame

More Results

Morphed Video

Morphed Video

To Do

Morph multiple images into a complete sequence
Morph with body landmarks

Citations

Adivces on working with facial landmarks with dlib and opencv https://www.pyimagesearch.com/2017/04/03/facial-landmarks-dlib-opencv-python/

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].