This project uses OpenCV to take photos, and Microsoft Cognitive Services to compute.
The main code runs on Python 2.7 in Debian Operating System
##Installation Make sure to cd into your working directory before execute these commands!
sudo apt-get update #Update the operating system
sudo apt-get install python python-pip git libopencv-dev python-opencv arduino
#If it shows "After this operation, ?? MB of additional disk space will be used.
#Do you want to continue? [Y/n]" Please type "Y" to agree installation.
sudo pip install cognitive_face
git clone https://github.com/Microsoft/Cognitive-Face-Python.git
cd Cognitive-Face-Python
sudo python setup.py install
cd .. #Go back to working directory
git clone https://github.com/zhaomh1998/FacialRecognitionSmartHome.git##Testing Make sure to cd into your working directory before execute these commands! Connect the LCD to Arduino, Arduino and Webcam to your Board via USB.
cd FacialRecognitionSmartHome
python testcam.py #Test script for camera
python testface.py #Test Microsoft API for face detection