Face Recognizer application to log the entries on residencial building.
In order to run this project you will need to install some dependencies.
- Install Opencv dependencies
sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy python-tk libtbb-dev libeigen2-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev libqt4-opengl-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev
- Clone Opencv contrib modules repository to your computer.
git clone https://github.com/opencv/opencv_contrib.git
- Change to Opencv contrib modules directory.
cd opencv_contrib
- Change to the tag 3.0.0
git checkout 3.0.0
- Change to your home directory.
cd $HOME
- Clone Opencv repository to your computer.
git clone https://github.com/opencv/opencv.git
- Change to Opencv directory.
cd opencv
- Change to the tag 3.0.0
git checkout 3.0.0
- create build directory and change to it.
mkdir build && cd build
- Use cmake to generate makefile.
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules -D BUILD_EXAMPLES=ON ..
Look that opencv_contrib folder is specified in the above command with the option OPENCV_EXTRA_MODULES_PATH, so please feel free to change it.
11. Compile opencv with contrib modules.
make -j4
Note that -j4 is the number of my cpu's cores, so if yours are diferent please change it.
12. Install opencv.
sudo make install
Run the following command.
sudo apt install sqlite
Run the following command.
pip install -r requirements.txt
Run the following command.
bash register_person.sh
It will ask you for a name and it must be lowercase and separated by dashes. ie. dario-guzman.
The AT&T Facedatabase, sometimes also referred to as ORL Database of Faces, contains ten different images of each of 40 distinct subjects. For some subjects, the images were taken at different times, varying the lighting, facial expressions (open / closed eyes, smiling / not smiling) and facial details (glasses / no glasses). All the images were taken against a dark homogeneous background with the subjects in an upright, frontal position (with tolerance for some side movement).