The right way to Blur Faces in a Video from Command Line

Privateness is all the time extremely necessary, particularly with visible media the place chances are you’ll not have the permission of people within the video. In case you’re filming one thing in public, it is seemingly you will catch somebody’s face who merely does not need or have to be recognized. This just lately received me to pondering: what is the best method to blur faces in a video by way of command line?
The very best open supply utility I discovered for blurring faces in a video was deface
. Let’s take a look at how you should use deface
to blur faces in movies!
Begin by downloading Python-based by way of pip
:
python3 -m pip set up deface
With deface
put in, merely present the video title and get the output file with blurred faces:
sudo deface ./sample-4k-faces-video.mp4 Enter: ./sample-4k-faces-video.mp4 Output: ./sample-4k-faces-video_anonymized.mp4 100%|█████████████████████████████
The ensuing video does a formidable job of blurring out faces of individuals strolling by within the authentic recording:
View the ensuing video of individuals strolling down the streets of New York:
The default threshold for face recognition works very nicely, even on shifting topics. You may experiment with thresholds with the thresh
argument, and even draw the thresholds out whereas debugging:

I downloaded a handful of YouTube movies utilizing my favourite YouTube downloading utility youtube-dl
and I used to be amazed at how nicely deface
did on a wide range of visible environments. Faces had been recognized at a dependable stage even at default threshold!
LightFace: Fb Lightbox for MooTools
One of many net parts I’ve all the time liked has been Fb’s modal dialog. This “lightbox” is not like others: no darkish overlay, no obnoxious animating to measurement, and it does not attempt to do “an excessive amount of.” With Fb’s dialog in thoughts, I’ve created LightFace: a Fb lightbox…
Create a Photograph Stack Impact with Pure CSS Animations or MooTools
My favourite technological piece of Google Plus is its picture add and show dealing with. You may drag the photographs out of your OS proper right into a browser’s DIV factor, the photographs add proper earlier than your eyes, and the albums web page shows an attractive picture deck animation…
Vertically Centering with Flexbox
Vertically centering sibling baby contents is a activity we have lengthy wanted on the net however has all the time appeared far more tough than it needs to be. We initially used tables to perform the duty, then moved on to CSS and JavaScript tips as a result of desk format was horribly…