https://github.com/as567652/controller-based-on-face-alignment
Small python code snippet, that can be used to control various apps / games using face-alignment of a person in real time.
https://github.com/as567652/controller-based-on-face-alignment
computer-vision haar-cascade opencv pyautogui python3
Last synced: about 2 months ago
JSON representation
Small python code snippet, that can be used to control various apps / games using face-alignment of a person in real time.
- Host: GitHub
- URL: https://github.com/as567652/controller-based-on-face-alignment
- Owner: as567652
- Created: 2021-07-29T04:01:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-26T17:46:23.000Z (almost 5 years ago)
- Last Synced: 2025-03-01T18:26:50.042Z (over 1 year ago)
- Topics: computer-vision, haar-cascade, opencv, pyautogui, python3
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Controller Based On Face Alignment
Small python code snippet, that can be used to control various apps / games using face-alignment of a person in real time.
## Table of contents
* [Introduction](#introduction)
* [Technologies](#technologies)
* [Setup](#setup)
* [Instructions Before Launch](#pre_launch_instr)
* [Launch](#launch)
* [Illustrations](#illustrations)
* [Status](#status)
* [Sources](#sources)
## Introduction
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.
## Technologies
#### Software Used :
* VS Code : 1.58.2
#### Languages Used :
* Python 3
#### Libraries Used :
* OpenCV
* PyAutoGUI
#### Project Tested On :
* Ubuntu 20.04.3 LTS 64-bit
## Setup
First you must have these softwares and languages installed on your system -
* [Python 3](https://www.python.org/)
* [OpenCV (Open Source Computer Vision Library)](https://opencv.org/releases/)
* [PyAutoGUI](https://pypi.org/project/PyAutoGUI/#files)
## Instructions Before Launch
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)
## Launch
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
## Illustrations
## Project status
***Completed*** (Room For Improvement)
## Sources
* [**OpenCV Documentation**](https://opencv.org/)
* [**PyAutoGUI Documentation**](https://pypi.org/project/PyAutoGUI/)