Giter Club home page Giter Club logo

qr-pca-facerec's Introduction

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.

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.

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.

qr-pca-facerec's People

Contributors

johnhany avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.