hasibzunair / Boss Detector
Programming Languages
Projects that are alternatives of or similar to Boss Detector
Boss Detector using Facial Recognition
Change your computer screen when your boss is coming.
How it works?
A program that detects when your boss is approaching and changes the computer screen instantly. It uses the classical LBPH algorithm for facial recognition. Initally the system is training with the boss's face. Upon detecting the boss, the interface changes the computer screen. It is a fun way to implement facial recognition.
Demo
Boss is approaching. Here, I am the boss, since my boss is out of the country, literally!
As he is approaches, the program fetches face images and classifies the image.
If the image is classified as the Boss, it will change the computer screen.
That's how you become employee of the month!
PREREQUISITES
- Python 3.6
- OpenCV 3+
Packages and dependencies
- virtualenv
- cv
- numpy
- PIL (pillow)
- tkinter
Usage
Firstly, setup the virtual environment and train the program for your boss.
$ venv\Scripts\activate.bat
$ python boss_train.py
Second, start the boss detector.
$ python boss-detector.py
Takeaways
-
To use this, place your webcam at a position where you know your boss will come in that region. Works well even when boss is six to seven feet away from the camera
-
Double check training images, xml file path(s) before running the program
-
Delete contents inside the data folder to make new changes if any.
Video Demo
Click here for the demo.
Contributing
There is still scope of improvement in this project. Most welcome to send pull requests. All the the best, being a good employee!