Tips on how to Blur Faces in a Video from Command Line

Tips on how to Blur Faces in a Video from Command Line
[ad_1]

Privateness is at all times extremely vital, particularly with visible media the place you won’t have the permission of people within the video. If you are filming one thing in public, it is most probably you’ll be able to catch somebody’s face who merely does not need or want to be recognized. This lately were given me to considering: what is one of the simplest ways to blur faces in a video by the use of command line?

The most productive open supply software I discovered for blurring faces in a video was once deface. Let’s take a look at how you’ll be able to use deface to blur faces in movies!

Get started through downloading Python-based by the use of pip:

python3 -m pip set up deface

With deface put in, merely give you the video title and get the output record 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 an excellent task of blurring out faces of individuals strolling through within the authentic recording:

Tips on how to Blur Faces in a Video from Command Line

View the ensuing video of individuals strolling down the streets of New York:

The default threshold for face popularity works rather well, even on transferring topics. You’ll experiment with thresholds with the thresh argument, or even draw the thresholds out whilst debugging:

I downloaded a handful of YouTube movies the use of my favourite YouTube downloading software youtube-dl and I used to be amazed at how smartly deface did on quite a few visible environments. Faces have been recognized at a competent degree even at default threshold!

  • Designing for Simplicity

    Prior to we get began, it is value me spending a short lived second introducing myself to you. My title is Mark (or @integralist if Twitter occurs to be your conversation instrument of selection) and I these days paintings for BBC Information in London England as a fundamental engineer/tech…

  • 5 Awesome New Mozilla Technologies You’ve Never Heard Of

    My commute to Mozilla Summit 2013 was once unbelievable.  I have spent such a lot time that specialize in my undertaking that I had overlooked the entire nice paintings Mozillians have been placing out.  MozSummit equipped the easiest reminder of ways sensible my colleagues are and what sort of…


[ad_2]
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back To Top
0
Would love your thoughts, please comment.x
()
x