Write a matlab program of face recognitionSolutionclear all

Write a matlab program of face recognition

Solution

clear all
clc
%To detect Face

FDetect = vision.CascadeObjectDetector;

%Read the input image
I = imread(\'HarryPotter.jpg\');

%Returns Bounding Box values based on number of objects
BB = step(FDetect,I);

figure,
imshow(I); hold on
for i = 1:size(BB,1)
    rectangle(\'Position\',BB(i,:),\'LineWidth\',5,\'LineStyle\',\'-\',\'EdgeColor\',\'r\');
end
title(\'Face Detection\');
hold off;

----------------------------------------------------------------------------------------------------------------------------------------------------------------------Based on Viola-Jones face detection algorithm, the computer vision system toolbox contains vision.CascadeObjectDetector System object which detects objects based on above mentioned algorithm.
  

Write a matlab program of face recognitionSolutionclear all clc %To detect Face FDetect = vision.CascadeObjectDetector; %Read the input image I = imread(\'Harry

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site