I have did till face detection using viola jones algoritham and i am lost not knowing what to do after this can someone please guide me
clear allclc%Detect objects using Viola-Jones Algorithm
%To detect Face
FDetect = vision.CascadeObjectDetector();%Read the input image
I = imread('bale.jpg');%Returns Bounding Box values based on number of objects
BB = step(FDetect,I);figure,imshow(I); hold onfor i = 1:size(BB,1) rectangle('Position',BB(i,:),'LineWidth',5,'LineStyle','-','EdgeColor','r');endtitle('Face Detection');hold off;NoseDetect = vision.CascadeObjectDetector('Nose','MergeThreshold',16);BB=step(NoseDetect,I);figure,imshow(I); hold onfor i = 1:size(BB,1) rectangle('Position',BB(i,:),'LineWidth',4,'LineStyle','-','EdgeColor','b');endtitle('Nose Detection');%hold off;%To detect Mouth
MouthDetect = vision.CascadeObjectDetector('Mouth','MergeThreshold',16);BB=step(MouthDetect,I);figure,imshow(I); hold onfor i = 1:size(BB,1) rectangle('Position',BB(i,:),'LineWidth',4,'LineStyle','-','EdgeColor','r');endtitle('Mouth Detection');hold off;%To detect Eyes
EyeDetect = vision.CascadeObjectDetector('EyePairBig');BB=step(EyeDetect,I);figure,imshow(I);rectangle('Position',BB,'LineWidth',4,'LineStyle','-','EdgeColor','b');title('Eyes Detection');Eyes=imcrop(I,BB);figure,imshow(Eyes);
Best Answer