Hide screen when boss is approaching.
Python
Latest commit fab8453 Jan 16, 2017 @Hironsan committed on GitHub Merge pull request #7 from nhzc123/master
fix predict() function error about image_dim_ordering

README.md

BossSensor

Hide screen when boss is approaching.

Demo

Boss stands up. He is approaching.

standup

When he is approaching, fetch face images and classify image.

approaching

If image is classified as the Boss, monitor changes.

editor

Requirements

  • WebCamera
  • Python3.5
  • OSX
  • Anaconda
  • Many boss image and other person image

Put images into data/boss and data/other.

Usage

First, Train boss image.

$ python boss_train.py

Second, start BossSensor.

$ python camera_reader.py

Install

Install OpenCV, PyQt4, Anaconda.

conda create -n venv python=3.5
source activate venv
conda install -c https://conda.anaconda.org/menpo opencv3
conda install -c conda-forge tensorflow
pip install -r requirements.txt

Change Keras backend from Theano to TensorFlow.

Licence

MIT

Author

Hironsan