Small python code snippet, that can be used to control various apps / games using face-alignment of a person in real time.
Aim of this code snippet is to make a simple computer vison project, which can be used in different applications.This can be used to control games and by using PyAutoGUI you can control mouse also. Just for FUN.
- VS Code : 1.58.2
- Python 3
- OpenCV
- PyAutoGUI
- Ubuntu 20.04.3 LTS 64-bit
First you must have these softwares and languages installed on your system -
These instructions must be followed to get better results :-
- Face should be in better lit area.
- Control works only on current focussed window only (You can easily edit this part)
To run this project, run these commands in terminal. Make sure that main.py file is present in the current directory
$ python3 main.py
On running this code, webcam should be enabled
Completed (Room For Improvement)