You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Daniel Mason 55de93f7dd Add instructions + configure for webcam 1 year ago
backgrounds Add instructions + configure for webcam 1 year ago
bodypix Add instructions + configure for webcam 1 year ago
fakecam Add instructions + configure for webcam 1 year ago
README.md Add instructions + configure for webcam 1 year ago
build.sh Initial commit 1 year ago
run.sh Add instructions + configure for webcam 1 year ago

README.md

linux-webcam-virtual-background

Inspired from https://elder.dev/posts/open-source-virtual-background/

Instructions

Add user to Video group + Install v4l2loopback and nvidia-container-runtime

sudo groupadd $USER video
sudo apt-get install v4l2loopback nvidia-container-runtime docker-nvidia # For debian/ubuntu
sudo systemctl restart docker.service
sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback devices=1 video_nr=20 card_label="v4l2loopback" exclusive_caps=1

Build docker images:

./build.sh

Run docker image with image file:

./run.sh /home/daniel/git/linux-webcam-virtual-background/backgrounds/bg1.jpg