Skip to content

luckycatx/face-recognition-with-pca

Repository files navigation

Face Recognition with PCA

Implemented with modern C++

Build Prerequisite

  • C++20 support
  • OpenCV library

Example Usage

  • 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

Some Example Results

avatar avatar avatar

  • Accuracy of the sample test dataset: avatar

Notes

  • 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

About

C++ based face recognition project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages