Privateness is all the time extremely necessary, particularly with visible media the place you could not have the permission of people within the video. In case you’re filming one thing in public, it is possible you will catch somebody’s face who merely does not need or must be recognized. This just lately received 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 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 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 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 nicely deface
did on a wide range of visible environments. Faces had been recognized at a dependable stage even at default threshold!
Creating Scrolling Parallax Results with CSS
Introduction For fairly a very long time now web sites with the so known as “parallax” impact have been actually common. In case you haven’t heard of this impact, it mainly consists of totally different layers of photos which are transferring in numerous instructions or with totally different pace. This results in a…
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 parts by way of CSS throughout…
JavaScript Speech Recognition
Speech recognition software program is turning into increasingly more necessary; it began (for me) with Siri on iOS, then Amazon’s Echo, then my new Apple TV, and so forth. Speech recognition is so helpful for not simply us tech superstars however for individuals who both need to work “fingers…
Create Your Personal Dijit CSS Theme with LESS CSS
The Dojo Toolkit appears to only get higher and higher. One of many new additions in Dojo 1.6 was the usage of LESS CSS to create Dijit themes. The transfer to utilizing LESS is an excellent one as a result of it makes creating your individual Dijit theme…
Supply hyperlink