4 ms·
This is fairly easy to wire up on Linux using v4l2loopback and pyfakewebcam. I am currently using a little setup that uses OpenCV to acquire frames from the re
by sho_hn 7y ago
This is fairly easy to wire up on Linux using v4l2loopback and pyfakewebcam.
I am currently using a little setup that uses OpenCV to acquire frames from the real camera, TensorFlow/BodyPix to compute an alpha mask for the foreground (me) and then OpenCV again to transform and composite myself behind news desks and into car infotainment screens and the like, eventually writing it to a virtual webcam I can use from Zoom (over its own virt bg feature this adds the layering and perspective transforms), Jitsi, Teams, etc.
The above looks like another fun thing to add. Time to go full Who Framed Roger Rabbit? ...
- sbarre 7y agoDo you have any more details written up anywhere on how you do this? That sounds like a great project.
- pdsouza 7y agoThere was a recent technical write-up about something similar: https://news.ycombinator.com/item?id=22823070 https://news.ycombinator.com/item?id=22823070
- spsphulse 7y agoYep. Complete agree with sbarre. Could you kindly share more details? Would definitely like to do this as a weekend hack.