Environment

  • Python 3.5.3
  • OpenCV 3.4.1 dev
  • Raspberry PI 3
  • Raspi Cam (tested on cheap chinese clone: worked wonderfully)

Installing

  • Create an empty Folder named "dataSet" in the same directory where the python scripts are
  • Create an empty folder called trainer In same directory

Running the tests

  • run the dataSetGenerator.py and enter a unique id to create face samples with your face
  • run trainer.py
  • run detector.py

Original code provided by

  • thecodacus.com
  • heavily edited for compatibility with Python 3.x, OpenCV 3.x and Raspi Cam hardware.