MATLAB Answers

face-recognition code in matlab

141 views (last 30 days)
Muhammad Omer
Muhammad Omer on 11 Feb 2014
Answered: haha nana on 9 Feb 2021 at 15:45
Hello all ... all i need is face recognition and face matching code in matlab because my project depends on that and i've not studied matlab or DIP as a course .... please help me by giving me face recognition code in matlab ... thnxxxxx

  0 Comments

Sign in to comment.

Answers (3)

Sabarinathan Vadivelu
Sabarinathan Vadivelu on 11 Feb 2014
If you have MATLAB R2013a, Then you can find the face detector which comes inbuilt with MATLAB.
% Create a cascade detector object.
faceDetector = vision.CascadeObjectDetector();
% Read a video frame and run the detector.
videoFileReader = vision.VideoFileReader('visionface.avi');
videoFrame = step(videoFileReader);
bbox = step(faceDetector, videoFrame);
% Draw the returned bounding box around the detected face.
videoOut = insertObjectAnnotation(videoFrame,'rectangle',bbox,'Face');
figure, imshow(videoOut), title('Detected face');

  6 Comments

Show 3 older comments
prashanth
prashanth on 9 May 2014
http://www.pages.drexel.edu/~sis26/Eigenface%20Tutorial.htm please check this site very helpful.You will get code here.
Sabarinathan Vadivelu
Sabarinathan Vadivelu on 31 Jul 2014
@ Omer, If this fulfills your need, then make sure you accepted the answer.
shahana muzaffar
shahana muzaffar on 19 Aug 2015
if we want to capture the image through direct integrated cam wt can i do??plz tel me in 2014a matlab

Sign in to comment.


Nishu Rai
Nishu Rai on 23 Apr 2019
Hello all ... all i need is face recognition in cca and face matching code in matlab because my project depends on that and i've not studied matlab or DIP as a course .... please help me by giving me face recognition code in matlab ... thnxxxxx

  0 Comments

Sign in to comment.


haha nana
haha nana on 9 Feb 2021 at 15:45
% Create a cascade detector object.
faceDetector = vision.CascadeObjectDetector();
% Read a video frame and run the detector.
videoFileReader = vision.VideoFileReader('visionface.avi');
videoFrame = step(videoFileReader);
bbox = step(faceDetector, videoFrame);
% Draw the returned bounding box around the detected face.
videoOut = insertObjectAnnotation(videoFrame,'rectangle',bbox,'Face');
figure, imshow(videoOut), title('Detected face');

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!