Home Programming News The way to Blur Faces in a Video from Command Line

The way to Blur Faces in a Video from Command Line

0
The way to Blur Faces in a Video from Command Line
[ad_1]

Privateness is all the time extremely essential, particularly with visible media the place it’s possible you’ll not have the permission of people within the video. In the event you’re filming one thing in public, it is possible you will catch somebody’s face who merely would not need or must be recognized. This just lately bought me to pondering: what is the best strategy to blur faces in a video by way of command line?

The perfect open supply utility I discovered for blurring faces in a video was deface. Let’s take a look at how you should utilize 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 unique 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 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 nicely deface did on quite a lot of visible environments. Faces have been recognized at a dependable stage even at default threshold!

  • 9 Mind-Blowing Canvas Demos

    The <canvas> aspect has been a revelation for the visible specialists amongst our ranks.  Canvas gives the means for unbelievable and environment friendly animations with the added bonus of no Flash; these builders can flash their superior JavaScript abilities as an alternative.  Listed below are 9 unbelievable canvas demos that…

  • JavaScript Promise API

    Whereas synchronous code is simpler to observe and debug, async is usually higher for efficiency and suppleness. Why “maintain up the present” when you may set off quite a few requests without delay after which deal with them when every is prepared?  Guarantees are changing into a giant a part of the JavaScript world…

  • CSS Animations Between Media Queries

    CSS animations are proper up there with sliced bread. CSS animations are environment friendly as a result of they are often {hardware} accelerated, they require no JavaScript overhead, and they’re composed of little or no CSS code. Very often we add CSS transforms to components by way of CSS throughout…

  • Growl-Style Notifications Using MooTools Roar

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here