Skip to content

Instantly share code, notes, and snippets.

View rwong-matroid's full-sized avatar

rwong-matroid

View GitHub Profile
@rwong-matroid
rwong-matroid / obfuscation.py
Last active July 9, 2019 00:18
Script for using Matroid to obfuscate desired objects within an input video.
'''
Script for using Matroid to obfuscate desired objects within an input video.
Example usage:
To obfuscate all "male" and "female" faces with a score above 0.5 in
"my_original_video.mp4" using the Matroid gender detector (5a4d4eb907a4ed0013eaa6f6).
Obfuscated video "my_obfuscated_video.mp4" is written and displayed in real-time.
python obfuscation.py \
--input my_original_video.mp4 \