Skip to content

GudarJs/face-recognizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Recognizer - By GudarJs

Face Recognizer application to log the entries on residencial building.

Install dependencies

In order to run this project you will need to install some dependencies.

Opencv 3

  1. 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
  1. Clone Opencv contrib modules repository to your computer.
git clone https://github.com/opencv/opencv_contrib.git
  1. Change to Opencv contrib modules directory.
cd opencv_contrib
  1. Change to the tag 3.0.0
git checkout 3.0.0
  1. Change to your home directory.
cd  $HOME
  1. Clone Opencv repository to your computer.
git clone https://github.com/opencv/opencv.git
  1. Change to Opencv directory.
cd opencv
  1. Change to the tag 3.0.0
git checkout 3.0.0
  1. create build directory and change to it.
mkdir build && cd build
  1. 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

Sqlite3 Database

Run the following command.

sudo apt install sqlite

Python modules

Run the following command.

pip install -r requirements.txt

Register a new person to recognize

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.

Credits

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).

License

Apache 2.0 License

About

Face Recognizer application to log entries on residencial building.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published