How to Blur Faces in a Video from Command Line


Personal privacy is constantly exceptionally crucial, specifically with visual media where you might not have the authorization of people in the video. If you’re shooting something in public, it’s most likely you’ll capture somebody’s face who just does not desire or require to be recognized. This just recently got me to believing: what’s the most convenient method to blur faces in a video through command line?

The very best open source energy I discovered for blurring faces in a video was ruin Let’s take a look at how you can utilize ruin to blur faces in videos!

Start by downloading Python-based through pip:

 python3 -m pip set up deface

With ruin set up, just offer the video name and get the output file with blurred faces:

 sudo ruin./ sample-4k-faces-video. mp4.
Input:./ sample-4k-faces-video. mp4.
Output:./ sample-4k-faces-video_anonymized. mp4.
100%|█ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █.

The resulting video does a remarkable task of blurring out faces of individuals strolling by in the initial recording:

View the resulting video of individuals strolling down the streets of New york city:

The default limit for face acknowledgment works extremely well, even on moving topics. You can try out limits with the thresh argument, and even draw the limits out while debugging:

I downloaded a handful of YouTube videos utilizing my preferred YouTube downloading energy youtube-dl and I was impressed at how well ruin did on a range of visual environments. Faces were recognized at a reputable level even at default limit!

  • Being a Dev Dad

    I get asked loads of concerns every day however I’m constantly amazed that they’re hardly ever concerns about code and even tech– a number of the concerns I get are more about non-dev things like what my workplace resembles, what software application I utilize, and often …

  • Responsive and Infinitely Scalable JS Animations

    Back in late 2012 it was difficult to discover open source jobs utilizing requestAnimationFrame() – this is the hook that permits Javascript code to integrate with a web internet browser’s native paint loop. Animations utilizing this technique can perform at 60 fps and provide great …

  • WebKit Marquee CSS:  Bringin’ Sexy Back

    All of us joke about the days of Web the past You remember them: silly animated GIFs (flames and “coming quickly” images, most significantly), lame counters, guestbooks, applets, and so on. Another “function” we believed we had actually eliminated was the marquee. The marquee was a primary, javascript-like …

  • Fullscreen API

    As we approach more real web applications, our JavaScript APIs are doing their finest to maintain. One extremely easy however beneficial brand-new JavaScript API is the Fullscreen API. The Fullscreen API supplies a programmatic method to demand fullscreen screen from the user, and exit …


Like this post? Please share to your friends:
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: