add root to group video (likely unecessary.). Sudo modprobe v4l2loopback devices=1 video_nr=20 card_label="v4l2loopback" exclusive_caps=1 Sudo apt-get install -y v4l2loopback-dkms v4l2loopback-utils install and setup virtual video device as "/dev/video20", and assuming the actual video device is "/dev/video0".(for those using GPU) test nvidia-docker is installed properlyĭocker run -gpus all nvidia/cuda:10.0-base nvidia-smi (for those using GPU) install nvidia-docker ( ) I have tested the below instructions with Ubuntu 20.04, code used is archived in īranch master requires GPU, while branch cpu-friendly uses only CPU.ĮDIT: after getting the below to work, I also found out there is a more refined version by fangfufu which is also based on solution. The modified images are then used to create the video feed via pyfakewebcam and v4l2loopback. For each image, the face/body is cropped using TensorFlow.js Bodypix, and merged with the specified background. What the code is doing essentially is grabbing image frames with Python and OpenCV. These instructions were originally posted by and IMO is a super fun and neat project, especially if you are into computer vision. The solution below helps achieve the similar effect, and since it creates a virtual webcam, you can most likely use this solution for any apps that use a webcam, for example, Microsoft Teams. Edit: Zoom 5.8.0 supports virtual background without greenscreen!Īs of writing this, Zoom does not support person/face-detection based virtual background in their Linux-version software.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |