Privateness is all the time extremely essential, particularly with visible media the place chances are you’ll not have the permission of people within the video. If you happen to’re filming one thing in public, it is doubtless you will catch somebody’s face who merely would not need or should be recognized. This just lately acquired me to pondering: what is the best option to blur faces in a video by way of command line?
The most effective open supply utility I discovered for blurring faces in a video was deface
. Let’s take a look at how you need to 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 powerful job of blurring out faces of individuals strolling by within the unique recording:

View the ensuing video of individuals strolling down the streets of New York:
The default threshold for face recognition works very properly, even on transferring topics. You’ll be able to 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 properly deface
did on a wide range of visible environments. Faces have been recognized at a dependable stage even at default threshold!
Chris Coyier’s Favourite CodePen Demos
David requested me if I would be up for a visitor put up choosing out a few of my favourite Pens from CodePen. A frightening activity! There are such a lot of! I managed to select a number of although which have blown me away over the previous few months. If you happen to…
Web page Visibility API
One occasion that is all the time been missing inside the doc is a sign for when the consumer is taking a look at a given tab, or one other tab. When does the consumer swap off our website to have a look at one thing else? When do they arrive again?
Add Photographs to Flickr with PHP
I’ve a little bit of an obsession with importing photographs to completely different providers because of Instagram. Instagram’s iPhone app permits me to take photographs and shortly filter them; as soon as picture tinkering is full, I can add the picture to Instagram, Twitter, Fb, and…
MooTools & Printing – Making a Hyperlinks Desk of Contents
One element we typically neglect when contemplating print for web sites is that the consumer can not see the URLs of hyperlinks when the web page prints. Whereas exhibiting hyperlink URLs is not all the time essential, some web sites may enormously profit from doing so. This tutorial will present you…
Privateness is all the time extremely essential, particularly with visible media the place chances are you’ll not have the permission of people within the video. If you happen to’re filming one thing in public, it is doubtless you will catch somebody’s face who merely would not need or should be recognized. This just lately acquired me to pondering: what is the best option to blur faces in a video by way of command line?
The most effective open supply utility I discovered for blurring faces in a video was deface
. Let’s take a look at how you need to 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 powerful job of blurring out faces of individuals strolling by within the unique recording:

View the ensuing video of individuals strolling down the streets of New York:
The default threshold for face recognition works very properly, even on transferring topics. You’ll be able to 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 properly deface
did on a wide range of visible environments. Faces have been recognized at a dependable stage even at default threshold!
Chris Coyier’s Favourite CodePen Demos
David requested me if I would be up for a visitor put up choosing out a few of my favourite Pens from CodePen. A frightening activity! There are such a lot of! I managed to select a number of although which have blown me away over the previous few months. If you happen to…
Web page Visibility API
One occasion that is all the time been missing inside the doc is a sign for when the consumer is taking a look at a given tab, or one other tab. When does the consumer swap off our website to have a look at one thing else? When do they arrive again?
Add Photographs to Flickr with PHP
I’ve a little bit of an obsession with importing photographs to completely different providers because of Instagram. Instagram’s iPhone app permits me to take photographs and shortly filter them; as soon as picture tinkering is full, I can add the picture to Instagram, Twitter, Fb, and…
MooTools & Printing – Making a Hyperlinks Desk of Contents
One element we typically neglect when contemplating print for web sites is that the consumer can not see the URLs of hyperlinks when the web page prints. Whereas exhibiting hyperlink URLs is not all the time essential, some web sites may enormously profit from doing so. This tutorial will present you…