This repository contains:
> the opencv face detection haarcascade_frontalface_alt.xml file,
> the test and train csv files, and
> the master.py python file, which will be used for performing the facial recognition.
> the output results.csv file containing the face matching predictions of the images contained in the test.csv file.
The modules required to run the file are:
> face_recognition, tqdm, sklearn*, sys
> numpy, pandas, matplotlib*, cv2
* only for visualization and when true labels are given
The file can be run using the following format:
python master.py (source csv file path) (source images path) (number of samples, if needed. Defaults to "None") (0 for testing, 1 for training. Defaults to 0)*
*(If this argument is set to 1, a results.csv file will not be created)
so, for example,
python master.py ./train.csv ./dataset_images 2000 1