riteshhota2008 / boss-detector

Change monitor screen when your boss is coming towards you.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boss Detector using Facial Recognition

Change your computer screen when your boss is coming.

Python 3.6 MIT license


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!

alt text center

As he is approaches, the program fetches face images and classifies the image.

alt text

If the image is classified as the Boss, it will change the computer screen.

alt text

That's how you become employee of the month!

PREREQUISITES

  • Python 3(32bit)
  • msvc++ 2015 redist

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

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!

License

MIT

Author

Hasib Zunair

About

Change monitor screen when your boss is coming towards you.

License:MIT License


Languages

Language:Python 100.0%