Detect human faces in the image and for the sake of privacy, anonymize the images by blurring people's faces in the image automatically.
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
"
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.
Feel free to fork it or send me PR to improve it.
This package was created with Cookiecutter and the mmphego/cookiecutter-python-package project template.