- Input the face to mouth and nose detection and not the complete image
- play with threshold value
How can I remove the excess object detected? Often my code finds more mouths and I want take only one, the one which is belower. Thanks.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Andrea Verardi
am 28 Mai 2020
Kommentiert: Andrea Verardi
am 1 Jun. 2020
FDetect = vision.CascadeObjectDetector;
I = imread ('Test W.jpg');
figure(1),imshow(I);
title ('...')
BB = step(FDetect,I);
figure(2),
imshow (I); hold on
for i = 1:size(BB,1)
rectangle('Position',BB(i,:),'LineWidth',5,'LineStyle','-','EdgeColor','r');
end
title ('...');
hold off;
NoseDetect = vision.CascadeObjectDetector('Nose','MergeThreshold',16);
BB=step(NoseDetect,I);
figure(3),
imshow(I);hold on
for i = 1:size(BB,1)
rectangle('Position',BB(i,:),'LineWidth',4,'LineStyle','-','EdgeColor','b');
end
title ('...');
hold off;
MouthDetect = vision.CascadeObjectDetector('Mouth','MergeThreshold',16);
BB=step(MouthDetect,I);
figure(4),
imshow(I);hold on
for i = 1:size(BB,1)
rectangle('Position',BB(i,:),'LineWidth',4,'LineStyle','-','EdgeColor','g');
end
title ('f...');
hold off;
EyeDetect=vision.CascadeObjectDetector('EyePairBig');
BB=step(EyeDetect,I);
figure,imshow(I);
figure(5),
imshow(I); hold on
for i = 1:size(BB,1)
rectangle('Position',BB(i,:),'LineWidth',4,'LineStyle','-','EdgeColor','r');
end
title ('...');
hold off;
0 Kommentare
Akzeptierte Antwort
Mehmed Saad
am 28 Mai 2020
Bearbeitet: Mehmed Saad
am 28 Mai 2020
see how picutre on bottom left is cropped from top right picture and after that nose and mouth detection is applied
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!