I got an error in this line = FDetect = vision.Cas​cadeObject​Detector;

1 Ansicht (letzte 30 Tage)
LAXMI NARAYAN SONI
LAXMI NARAYAN SONI am 6 Dez. 2016
clear all clc %Detect objects using Viola-Jones Algorithm
%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;

Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by