Skip to content

Detect human faces in the image and for the sake of privacy, anonymize the images by blurring people's faces in the image automatically.

License

Notifications You must be signed in to change notification settings

mmphego/privacy_protection

Repository files navigation

Privacy Protection

Code style: black GitHub Python Donate

Detect human faces in the image and for the sake of privacy, anonymize the images by blurring people's faces in the image automatically.

Usage

docker run --rm -ti \
--volume "$PWD":/app \
--env DISPLAY=$DISPLAY \
--volume=$HOME/.Xauthority:/root/.Xauthority \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
--device /dev/video0 \
mmphego/intel-openvino \
bash -c "\
    source /opt/intel/openvino/bin/setupvars.sh && \
    python main.py -i blm.jpg
    "

Example

Input image:


Output image:

Note: False detections are inevitable using cascade classifiers and if you want to have a really precise detector, you will have to train it yourself using OpenCV train cascade utility.

Feedback

Feel free to fork it or send me PR to improve it.

Credits

This package was created with Cookiecutter and the mmphego/cookiecutter-python-package project template.

About

Detect human faces in the image and for the sake of privacy, anonymize the images by blurring people's faces in the image automatically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages