DEV Community

El Bruno for Microsoft Azure

Posted on • Originally published at on

#OpenCV – Replace background with video in camera feed 🎦 (Black Adam ⚡)

Hi !

A new twist on these days demos, based on a request from an online friend. Let’s remove and replace the background from our camera feed using a video. For this demo, I’m using the “Black Adam – Official Trailer 1“. And the output is kind of funny.

OpenCV Cam with VideoFile 01

Hey, funny scenario, and if you don’t want to deal with OBS, this maybe a nice to trick to have!

And the sample code:

Happy coding!


El Bruno

More posts in my blog

Top comments (0)