First Advanced Numerical Methods Project: Face Recognition
These instructions will install the development environment into your local machine.
- Clone the repository
$ git clone https://github.com/lobo/mna-tp1.git
- Install Python3 and pip3
A. Install packages
B. Update the
$ brew install python3
PATH
variable to use the Homebrew's python packages$ echo 'export PATH="/usr/local/opt/python/libexec/bin:$PATH" # Use Homebrew python' >> ~/.bash_profile $ source ~/.bash_profile
$ sudo apt-get install python3.6 python3-pip
On the root directory run the following command.
$ pip3 install -r requirements.txt
There are 3 executables on the root directory.
On the root directory run the following command:
$ python3 facespca.py
Doing so will generate PCA data.
On the root directory run the following command:
$ python3 faceskernelpca.py
Doing so will generate PCA data.
On the root directory run the following command:
$ python3 main.py ./att_faces
Doing so will execute the following:
- Load images.
- Substract the mean face.
- Compute eigenvalues.
- Compute eigenfaces.
- Project images.
- Classify them.
- Turn camera of your computer on.
- Track faces it finds.
- Compare them to "familiar faces". These are the ones located in our "faces database".