Skip to content

khufu9/face_recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Face Recognition - Simple face recognition based on eigenfaces

face_recognition is a self-contained implementation of the Eigenface-method in Python using OpenCV and NumPy. This repository provides the core-library and some applications for testing.

Dependencies

  • Python 2.X (tested 2.7.6)
  • Numpy 1.8 (tested 1.8.0)

Example: testing

If you have the correct dependencies installed you can use the library file as such:

import eigenface

# load all reference faces
files = file_list_from_path("path-to-face-files")

# O is a set of columns corresponding to the eigenfaces of files
# UT is the eigenspace-basis
# X is the mean faces of files

O,UT,X = eigenface.train(files)

# load another face
vec = eigenface.vec_from_img_path("path-to-face.jpg")

# return the column-index of O which was recognized as the input vec
ind = eigenface.recognize(O,U,vec,X) 

print files[ind]

About

Simple face recognition based on eigenfaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages