Skip to content

Control your mouse with face tracking in Linux

License

Notifications You must be signed in to change notification settings

g-rden/osf-mouse

 
 

Repository files navigation

Control your mouse with face tracking in Linux

osf-mouse.py is facetracking.py from OpenSeeFace with added functionality and removed Windows features. osf-mouse.sh is a script that might be helpful. The rest of this repo is identicle to OpenSeeFace and exists in case future updates to OpenSeeFace break the functionallity of osf-mouse.py. Until then you can use the official repo with osf-mouse.py.

Usage

xdotool is required. See osf-mouse.sh for an exmple. -s 2 enables the mouse control

Recommendations:

Fixed framerate like -F 30 Low model quality. --model -1 if blink detection (which is commented out in osf-mouse.py) isn't needed

See line 208 and further for parameter tuning

osf-mouse.sh

osf-mouse.sh is a little script for taking the camera input and creating a new camera device, which is then used as input for facetracker.py. If Ctrl-C is pressed often enough ffmpeg should have also stopped. The new camera is needed because with the original camera the update rate is half of the framerate.

Dependency for osf-mouse.sh: v4l2loopback & ffmpeg

About

Control your mouse with face tracking in Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 45.7%
  • C# 32.0%
  • C++ 21.3%
  • Other 1.0%