Implemented with modern C++
- C++20 support
- OpenCV library
- For training dataset
./pca_train <dataset_path>
>>
./pca_train ./dataset/train
- For recognition
./recognize <test_path> <eigens_path> <dataset_path>
./recognize <eigens_path> <dataset_path> (using camera)
>>
./recognize ./dataset/test ./eigens ./dataset/train
./recognize ./eigens ./dataset/train
- Images need to be saved in a subfolder in the path to the dataset, assuming the subfolder name is the corresponding subject name
e.g. subject1 is the subject name of path./dataset/train/subject1