Video anonymization software in Python that blurs people's faces using OpenCV, YuNet. Check out my post on blurring faces @ medium.com
- Python 3.9
- OpenCV 4.7.0
OpenCV is not part of requirements.txt as I am using a custom build with CUDA support.
You should be able to pip install opencv-python==4.7.0
- add model files to
models
folder. Download: face_detection_yunet_2022mar.onnx. pip install -r requirements.txt
- install OpenCV (see Requirements)
- run
python main.py input.mp4
Multi-threading video display code Copyright (c) 2018 Najam Syed (MIT License) https://nrsyed.com/2018/07/05/multithreading-with-opencv-python-to-improve-video-processing-performance/ https://github.com/nrsyed/computer-vision/tree/master/multithread