unable to resolve the name vision.Cas​cadeObject​Detector

35 次查看(过去 30 天)
faceDetector = vision.CascadeObjectDetector();
unable to resolve the name vision.CascadeObjectDetector error is coming what should i do?

回答(2 个)

Walter Roberson
Walter Roberson 2021-10-28
编辑:Walter Roberson 2021-10-28
You need to have the Computer Vision Toolbox licensed and installed. (And you need to be using R2012a or later.)

yanqi liu
yanqi liu 2021-11-5
sir,may be use R2021 version,such as
clc; clear all; close all;
faceDetector = vision.CascadeObjectDetector();
[im,map] = imread('kids.tif');
im = ind2rgb(im,map);
bbox = faceDetector.step(im);
figure; imshow(im,[]);
hold on; rectangle('position', bbox(1,:), 'EdgeColor', 'g', 'LineWidth', 2)
hold on; rectangle('position', bbox(2,:), 'EdgeColor', 'g', 'LineWidth', 2)

类别

Help CenterFile Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by