Privateness is at all times extremely essential, particularly with visible media the place you might not have the permission of people within the video. If you happen to’re filming one thing in public, it is probably you may catch somebody’s face who merely would not need or should 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 perfect 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 identify 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 properly, even on transferring topics. You possibly can 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 had been recognized at a dependable stage even at default threshold!
Being a Dev Dad
I get requested a great deal of questions every single day however I am at all times stunned that they are not often questions on code and even tech — lots of the questions I get are extra about non-dev stuff like what my workplace is like, what software program I take advantage of, and oftentimes…
Fb Open Graph META Tags
It is no secret that Fb has turn into a significant visitors driver for every type of internet sites. These days even giant firms steer customers towards their Fb pages as an alternative of the company web sites immediately. And naturally there are Fb “Like” and “Advocate” widgets on each web site. One…
jQuery UI DatePicker: Disable Specified Days
One undertaking I am at the moment engaged on requires jQuery. The undertaking additionally encompasses a datepicker for requesting a go to to their location. jQuery UI’s DatePicker plugin was the pure alternative and it does a very nice job. One problem I encountered was the…