Face recognition using Eigenfaces
The only images that this package accepts are .pgm (portable gray map) images. All images should be of the same size.
Training:
A training set of face images is needed to train the system. These images should be placed in a single folder in Matlab path.
Use the following function to train:
[images,H,W,M,m,U,omega]=trainingEF(trainingFolder);
where
trainingFolder - full path of the folder containing the training face images
Recognition:
The face image to be recognized should be a .pgm file too.
Use the following function for recognition:
testingEF(testImage,images,H,W,M,m,U,omega)
where
testImage - filename of the face image to be recognized (with extension),
images,H,W,M,m,U,omega - output arguments from the training function
The test image and the image from the training set that the test image corresponds to are shown as output.
Cite As
Sujeeth Kumaravel (2024). Face recognition using Eigenfaces (https://www.mathworks.com/matlabcentral/fileexchange/48479-face-recognition-using-eigenfaces), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Semantic Segmentation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.