필터 지우기
필터 지우기

In the face detection animal face also detected what should i do?

조회 수: 1 (최근 30일)
nirai selvi
nirai selvi 2015년 12월 28일
답변: Walter Roberson 2015년 12월 28일
clear all
clc
%Detect objects using Viola-Jones Algorithm
%To detect Face
FDetect = vision.CascadeObjectDetector;
%Read the input image
I = imread('C:\Users\EIE52\Desktop\download (1).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;

답변 (1개)

Walter Roberson
Walter Roberson 2015년 12월 28일
In general, face detection can be used for animals. But the Viola-Jones Algorithm might not be usable. See https://en.wikipedia.org/wiki/Viola%E2%80%93Jones_object_detection_framework and notice that Viola-Jones makes use of brightness information in ways that might not be applicable for some animals.

Community Treasure Hunt

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

Start Hunting!

Translated by