All Projects → FlorentRevest → Anonymize Video

FlorentRevest / Anonymize Video

Licence: other
Replace faces in a video with imaginary persons generated by a progressive GAN deep neural network

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Anonymize Video

Android Hpe
Android native application to perform head pose estimation using images coming from the front camera.
Stars: ✭ 46 (+206.67%)
Mutual labels:  opencv, face, dlib
Face Swap Android
Realtime Face Swap Android NDK app full source code. Developed with OpenCV (http://opencv.org) and Dlib C++ (http://dlib.net).
Stars: ✭ 111 (+640%)
Mutual labels:  opencv, face, dlib
Faceswap
Real-time FaceSwap application built with OpenCV and dlib
Stars: ✭ 611 (+3973.33%)
Mutual labels:  opencv, face, dlib
Facemoji
😆 A voice chatbot that can imitate your expression. OpenCV+Dlib+Live2D+Moments Recorder+Turing Robot+Iflytek IAT+Iflytek TTS
Stars: ✭ 320 (+2033.33%)
Mutual labels:  opencv, dlib
Face Generator
Generate human faces with neural networks
Stars: ✭ 266 (+1673.33%)
Mutual labels:  gan, face
Face Landmark Android
Android AR Camera
Stars: ✭ 320 (+2033.33%)
Mutual labels:  opencv, dlib
Thug Memes
Command line Thug Meme generator written in Python
Stars: ✭ 224 (+1393.33%)
Mutual labels:  opencv, dlib
Php Opencv Examples
Tutorial for computer vision and machine learning in PHP 7/8 by opencv (installation + examples + documentation)
Stars: ✭ 333 (+2120%)
Mutual labels:  opencv, face
Autocrop
😌 Automatically detects and crops faces from batches of pictures.
Stars: ✭ 320 (+2033.33%)
Mutual labels:  opencv, face
Libfaceid
libfaceid is a research framework for prototyping of face recognition solutions. It seamlessly integrates multiple detection, recognition and liveness models w/ speech synthesis and speech recognition.
Stars: ✭ 354 (+2260%)
Mutual labels:  opencv, dlib
Head Pose Estimation
Real-time head pose estimation built with OpenCV and dlib
Stars: ✭ 467 (+3013.33%)
Mutual labels:  opencv, dlib
Facial-Landmark-Detection
Facial Landmark Detection Framework
Stars: ✭ 33 (+120%)
Mutual labels:  face, dlib
AverageFaceDemo
Average face on android
Stars: ✭ 31 (+106.67%)
Mutual labels:  face, dlib
Brfv4 mac examples
macOS C++ examples utilizing OpenCV for camera access and drawing the face tracking results.
Stars: ✭ 25 (+66.67%)
Mutual labels:  opencv, face
Add Christmas Hat
Add Christmas hat on one's head based on OpneCV and Dlib
Stars: ✭ 251 (+1573.33%)
Mutual labels:  opencv, dlib
Facecapture
an Android app kind like Facerig(but simpler)
Stars: ✭ 325 (+2066.67%)
Mutual labels:  face, dlib
Openpose
OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation
Stars: ✭ 22,892 (+152513.33%)
Mutual labels:  opencv, face
Apdrawinggan
Code for APDrawingGAN: Generating Artistic Portrait Drawings from Face Photos with Hierarchical GANs (CVPR 2019 Oral)
Stars: ✭ 510 (+3300%)
Mutual labels:  gan, face
Raspberrypi Facedetection Mtcnn Caffe With Motion
MTCNN with Motion Detection, on Raspberry Pi with Love
Stars: ✭ 204 (+1260%)
Mutual labels:  opencv, face
Face recognition py
基于OpenCV的视频人脸识别
Stars: ✭ 215 (+1333.33%)
Mutual labels:  opencv, dlib

Anonymize video

Video anonymization demo

The purpose of this script is to detect faces in an input video file and replace them with imaginary faces.

Random faces are generated by the "Progressive growing of GANs" DNN model pre-trained by NVIDIA. Each frame of the input video is extracted using OpenCV and analyzed using dlib to detect faces and facial landmarks. Each face is then wrapped with one of the faces imagined by the GAN.

Video anonymization demo

Usage

Clone this repository:

git clone https://github.com/FlorentRevest/anonymize-video

Install the required python3 modules: (Note: You will need CUDA)

pip3 install -r requirements.txt

Download the progressive growing of GANs model from NVIDIA. And save it under models/karras2018iclr-celebahq-1024x1024.pkl

Download the facial landmarks detector model from dlib. Extract it and save it under models/shape_predictor_68_face_landmarks.dat

Run the script on an input video:

./anonymize-video.py input.mp4 output.avi

Demo files

Two examples of input videos can be downloaded from here and here

Video anonymization demo

Troubleshooting

If this scripts stops early with an error "0 faces found in a dreamed image. Aborting." just re-run the script once again. This happens from time to time, when the Progressive GAN network generates faces that are not recognized by dlib

Licenses

The code in anonymize-video.py is an original work released under the terms of the MIT license. Some of the functions in face_tools.py are issued from face_morpher, also licensed under MIT.

The code in tfutil.py is from NVIDIA and it is solely required to run their .pkl model. It is distributed under the terms of the Creative Commons Attribution Non Commercial.

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