A tool to blur faces or other regions in images and videos π€‘π
A tool to blur faces or other regions in photos and videos π΅οΈβ
pip install -r requirements.txt
auto_blur_image.py
:python auto_blur_image.py --input_image <PATH_TO_INPUT_JPG_FILE> --output_image <PATH_TO_OUTPUT_JPG_FILE> --model_path <PATH_TO_INPUT_PB_FILE> --threshold <THRESHOLD>
auto_blur_video.py
:python auto_blur_video.py --input_video <PATH_TO_INPUT_MP4_FILE> --output_video <PATH_TO_OUTPUT_MP4_FILE> --model_path <PATH_TO_INPUT_PB_FILE> --threshold <THRESHOLD>
manual_blur_image.py
:Run:
python manual_blur_image.py --input_image <PATH_TO_INPUT_JPG_FILE> --output_image <PATH_TO_OUTPUT_JPG_FILE>
To see running options run for all codes:
python manual_blur_image.py --help
TADAA π It's done π€
auto_blur_image.py
:Threshold = 0.4
auto_blur_video.py
:Threshold = 0.4
manual_blur_image.py
:I am using face detection model in face_model folder that can detects faces but codes are valid for any .pb
object detection model.
Find me on LinkedIn and feel free to mail me, Asmaa π¦