Video anonymization by face detection
Deface: Video anonymization by face detection
From PyPI (official releases):
$ pip install deface
Current git master:
$ pip install 'git+https://github.com/mdraw/deface'
Basic usage after installing the
$ deface -i <input.mp4> -o <output.mp4>
Show help and all options:
$ deface -h
Hardware acceleration with ONNX Runtime
CUDA (on Nvidia GPUs)
If you have a CUDA-capable GPU, you can enable GPU acceleration by installing the relevant packages:
$ pip install onnx onnxruntime-gpu
onnxruntime-gpu package is found and a GPU is available, the face detection network is automatically offloaded to the GPU.
This can significantly improve the overall processing speed.
If your machine doesn't have a CUDA-capable GPU but you want to accelerate computation on another hardware platform (e.g. Intel CPUs), you can look into the available options in the ONNX Runtime build matrix.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size deface-0.2.0-py3-none-any.whl (7.0 MB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size deface-0.2.0.tar.gz (6.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|