All Projects → johnhany → Qr Pca Facerec

johnhany / Qr Pca Facerec

Licence: mit
A face recognition algorithm using QR based PCA.

QR-PCA-FaceRec

A face recognition algorithm using QR based PCA.

如果您能看懂中文,我的博客有一篇关于原理的介绍《从QR分解到PCA,再到人脸识别》。欢迎指正!

Requirements

Visual Studio

The solution is created with Visual Studio 2012. You are more than welcome to use other IDEs. All you need to do is to copy all the codes from QR-PCA-FaceRec.cpp and link the dependencies correctly.

OpenCV

I'm using OpenCV 3.1, while other version of OpenCV may work as well, since I only use its basic I/O and Mat functionalities.

Armadillo

A high quality linear algebra library (matrix maths) for the C++ language.

Please note that Armadillo requires LAPACK for matrix decompositions and boost. I'm using Intel MKL through Student Program. You may choose any LAPACK replacement you want.

How to use

Take these 5 steps:

  • Download the "AT&T Database of Faces" from here and place it anywhere you want.

  • Change the orl_path at line 22 to your AT&T Database folder.

  • Set number of dimensions you're aim for by changing the component_num at line 20.

  • Choose which measure of distance you want to use at line 164 and 169.

  • Build and run!

License

HanyNet is released under the MIT license. Considering the dependencies are both open-source, you are granted with the same rights as they offer.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].