Issue using vision.Cas​cadeObject​Detector

I'm trying to use the command vision.CascadeObjectDetector to create a face detector object but when I do
faceDetector = vision.CascadeObjectDetector();
I encounter an error saying:
Error using vision.CascadeObjectDetector
License checkout failed.
License Manager Error -5
Cannot find a license for SR_Video_and_Image_Blockset.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2015b/5
Diagnostic Information:
Feature: SR_Video_and_Image_Blockset
License path:
/Users/Hardy/.matlab/R2015b_licenses/license_Hardys-MBP_2603179_R2015b.lic:/Applications/MATLAB_R2015b.app/licenses/license.dat:/Applications/MATLAB_R2015b.app/licenses/*.lic
Licensing error: -5,357.
I just recently upgraded from trial to student version (Bought for $100). This command is from the Computer Vision Toolbox, and is included in the student version right? So I assume that I should be able to use it. Any solution??

4 件のコメント

Image Analyst
Image Analyst 2015 年 11 月 9 日
What do you see when you type ver on the command line? (Delete your license number and then paste results here.)
Hardy Pham
Hardy Pham 2015 年 11 月 9 日
編集済み: Walter Roberson 2015 年 11 月 9 日
MATLAB Version 8.6 (R2015b)
Simulink Version 8.6 (R2015b)
Communications System Toolbox Version 6.1 (R2015b)
Computer Vision System Toolbox Version 7.0 (R2015b)
Control System Toolbox Version 9.10 (R2015b)
Curve Fitting Toolbox Version 3.5.2 (R2015b)
DSP System Toolbox Version 9.1 (R2015b)
Database Toolbox Version 6.0 (R2015b)
Global Optimization Toolbox Version 3.3.2 (R2015b)
Image Acquisition Toolbox Version 4.10 (R2015b)
Image Processing Toolbox Version 9.3 (R2015b)
Instrument Control Toolbox Version 3.8 (R2015b)
Neural Network Toolbox Version 8.4 (R2015b)
Optimization Toolbox Version 7.3 (R2015b)
Parallel Computing Toolbox Version 6.7 (R2015b)
Signal Processing Toolbox Version 7.1 (R2015b)
Simulink Control Design Version 4.2.1 (R2015b)
Stateflow Version 8.6 (R2015b)
Statistics and Machine Learning Toolbox Version 10.1 (R2015b)
Symbolic Math Toolbox Version 6.3 (R2015b)
System Identification Toolbox Version 9.3 (R2015b)
I get this when i type in ver
Hardy Pham
Hardy Pham 2015 年 11 月 9 日
As you can see, I have the computer vision system toolbox, so I'm not sure why commands from that toolbox are not working
Walter Roberson
Walter Roberson 2015 年 11 月 9 日
The license might not have gotten installed properly. I suggest deactivating and reactivating.

サインインしてコメントする。

回答 (2 件)

Madhu Govindarajan
Madhu Govindarajan 2015 年 11 月 10 日

1 投票

I recommend trying the following in MATLAB command window
>> license('checkout','video_and_image_blockset')
If the answer is not 1 from MATLAB, contact Installation support of MathWorks.

4 件のコメント

mert oguzhan acar
mert oguzhan acar 2020 年 5 月 10 日
I got 1 from matlab but still ı am getting error .
Walter Roberson
Walter Roberson 2020 年 5 月 10 日
Are you getting the error -5 message? Please show the complete error you are getting.
Gnanasekar M S
Gnanasekar M S 2021 年 6 月 8 日
I am using online matlab which is free trail for 30 days ,when I tried this command faceDetector = vision.CascadeObjectDetector();It shows error like this
fapart1
Unable to resolve the name vision.CascadeObjectDetector.
and I tried your command in my command window It shows like this
license('checkout','video_and_image_blockset')
License checkout failed.
License Manager Error -5
Cannot find a license for video_and_image_blockset.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2021a/5
Diagnostic Information:
Feature: video_and_image_blockset
License path: 13501@flexlm-21a-40906948-us-east-1a.wsroute.mathworks.com:13501@flexlm-21a-40906948-us-east-1e.wsroute.mathworks.com:/home/mluser/.matlab/R2021a_licenses:/MATLAB/licenses/license.dat:/MATLAB/licenses
Licensing error: -5,0.
ans=
0
can you please tell how to resolve this error?
VIJAYALAXMI NYAMAGOUDA
VIJAYALAXMI NYAMAGOUDA 2021 年 7 月 3 日
yaa even same i got error

サインインしてコメントする。

Saira
Saira 2020 年 3 月 30 日

0 投票

How to solve this error?
My Code is working well on MATLAB 2015a but when I run it on MATLAB 2017a, I got this error.
Error using imwrite
(line 420)
Expected DATA to be one of these types: numeric, logical. Instead its type was vision.CascadeObjectDetector.
Error in Trainingcode (line 38)
imwrite(Mouth,strcat('E:\SVM\JAFFE Local Features\', int2str(i),int2str(j), '.tiff'));

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2015 年 11 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by