Skip to main content

Video anonymization by face detection

Project description

Deface: Video anonymization by face detection

Installation

From PyPI (official releases):

$ pip install deface

Current git master:

$ pip install 'git+https://github.com/mdraw/deface'

Usage

Basic usage after installing the deface package:

$ deface <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

If the 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.

Other platforms

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.

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deface-0.4.0.tar.gz (23.3 kB view hashes)

Uploaded Source

Built Distribution

deface-0.4.0-py3-none-any.whl (7.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page