Skip to content

mikeshihyaolin/face_blurring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Blurring

Face detection + Face blurring

  • Detect all the faces in the input video
  • Blur all the detected faces and save them

Code Author: Shih-Yao (Mike) Lin

Dependencies

  • OpenCV >= 3.2.0.8
  • Tensorflow >= 1.4.1
  • MTCNN

Installation

  • Clone this repo
git clone https://github.com/mikeshihyaolin/face_blurring.git

The directory tree should look like this:

${ROOT}
├── README.md
├── face_blurring.py
├── figs
│   ├── .DS_Store
│   ├── .blur1.png.icloud
│   ├── blur2.jpg
│   └── blur3.jpg
└── mtcnn
    ├── .DS_Store
    ├── __init__.py
    ├── __pycache__
    │   ├── __init__.cpython-36.pyc
    │   ├── layer_factory.cpython-36.pyc
    │   ├── mtcnn.cpython-36.pyc
    │   └── network.cpython-36.pyc
    ├── data
    │   └── .mtcnn_weights.npy.icloud
    ├── exceptions
    │   ├── __init__.py
    │   └── __pycache__
    │       └── __init__.cpython-36.pyc
    ├── layer_factory.py
    ├── mtcnn.py
    └── network.py
  • Install dependencies
pip3 install -r ./requirements.txt

Quick Start

python face_blurring.py --source_video [input video] --output_blur_img_folder [output folder]

For example,

python face_blurring.py --source_video ./example/video.mp4 --output_video ./blur

Visualization results

The face detection process is heavily borrowed from a MTCNN implementation (Link)

About

blur all the faces in a video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages