Archievement:
This tutorial will show you how to use a virtual 3D avatar with eye, mouth, and body tracking in MS Teams on Arch Linux.
Requirements:
- Wine
- VSeeFace (from Lutris)
- OpenSeeFace
- Iriun Webcam
- Two v4l2loopback devices
Instructions:
- Install and start Wine. (
yay v4l2loopback-dkms v4l2loopback-utils lutris iriun obs winetricks wine
) - Install VSeeFace from Lutris. (https://lutris.net/games/vseeface/ , in lutris use the button start "Winetricks" and install arial font)
- Install OpenSeeFace:
cd ~ && git clone https://github.com/emilianavt/OpenSeeFace && cd OpenSeeFace && virtualenv -p python3 venv && source venv/bin/activate && pip install onnxruntime opencv-python pillow numpy
- Adjust
/etc/modprobe.d/iriunwebcam-options.conf
to ensure you have two virtual cams:
options v4l2loopback video_nr=8,9
options v4l2loopback exclusive_caps=1 card_label="OBS Virtualcam,Iriun Webcam"
- Reboot your computer.
- Connect your phone to your PC using Iriun Webcam.
- Start face and eye tracking using the OpenSeeFace tracking script:
cd ~/OpenSeeFace
source venv/bin/active
python facetracker.py -c 9 -W 1280 -H 720 --discard-after 0 --scan-every 0 --no-3d-adapt 1 --max-feature-updates 900 --ip 127.0.0.1 --port 11573
- In Lutris, start VSeeFace and select
[OpenSeeFace tracking]
as the camera. Load and start your .vrm avatar. (https://booth.pm/en/search/free%20vrm) - Start OBS and its virtual camera by clicking Start Virtual Camera.
- To add your avatar to OBS, add a window capture and select VSeeFace Window.
- Add a Color Key Filter to the VSeeFace window to make the background transparent.
Troubleshooting:
Check if you setup v4l2 devices correctly:
v4l2-ctl --list-devices
Tips:
- You can adjust the settings in the OpenSeeFace tracking script to improve the performance and accuracy of the tracking.
- You can also adjust the settings in VSeeFace to customize the appearance of your avatar.
- To use your virtual avatar in MS Teams, simply select the OBS Virtualcam as your camera when joining a meeting.
I hope this tutorial is helpful!