Create a video camera with a different background
Go to file
Brandon Rozek 4efc829b12
Model change
Not sure if this improves things,
I'm mostly uploading this changeset
I had sitting around on my desktop.
2023-05-15 11:46:58 -04:00
bodypix-background Removed pyc file 2020-05-03 17:07:53 -04:00
decode_image Initial Slow Version of Blurring Backgrounds with Bodypix 2020-05-03 12:12:26 -04:00
.gitignore Ignore pycache 2020-05-03 16:49:17 -04:00
LICENSE Create LICENSE 2020-05-03 17:10:17 -04:00
package.json Initial Slow Version of Blurring Backgrounds with Bodypix 2020-05-03 12:12:26 -04:00 Update 2020-05-06 18:07:54 -04:00
server.js Model change 2023-05-15 11:46:58 -04:00 Organized into python module 2020-05-03 16:32:09 -04:00 Provided convinient start script 2020-05-03 16:47:37 -04:00


Adds a different background to your video feed.

This is made in part by the hard work of many people:

Daniel Llewellyn has the highest polish solution so far, making it easily installable under Linux as a snap package.

This solution aims for lower latency through the following ways

  • Uses ZeroMQ IPC for communication between the TFJS model and the image processing
  • Less transformations
  • If blurred background is chosen, only the first frame is captured and blurred


First we need to install the nodejs and python parts.

npm install
pip install .

Next we need to setup the v4l2loopback kernel module for the fake webcam.

To install,

 sudo apt install v4l2loopback-dkms

If you already had an existing module, remove it so we can customize it,

 sudo modprobe -r v4l2loopback

Create a file in /etc/modprobe.d/fakecam.conf and add the following:

options v4l2loopback devices=1 video_nr=20 card_label=fakecam exclusive_caps=1

Finally, load the kernel module

sudo modprobe v4l2loopback

Then we can start the script with ./