Chaitra Kulkarni
Chaitra Kulkarni

Reputation: 3

Undefined variable "vision" or class "vision.CascadeObjectDetector"

Am trying to detect face object from an image using viola-jones algorithm. I used this instruction to detect the object detect=vision.CascadeObjectDetector. But am getting an error saying:

Undefined variable "vision" or class "vision.CascadeObjectDetector".

I checked if "computer vision system toolbox" is installed or not (with the help of ver command), and yes it was installed. Though this package is installed am getting the above error. Any help?

Upvotes: 0

Views: 4819

Answers (1)

rayryeng
rayryeng

Reputation: 104514

The Viola-Jones Cascade Object Detector, or the vision.CascadeObjectDetector method was released as of R2012a. The reason why you're getting the method to be undefined is because you have an older version of MATLAB. If you want to use the vision.CascadeObjectDetector method that's part of the Computer Vision toolbox, you'll need to upgrade to at least R2012a or newer.

Check the release notes for the Computer Vision toolbox here under R2012a: http://www.mathworks.com/help/vision/release-notes.html

Sorry if this isn't want you wanted to hear! Good luck!

Upvotes: 3

Related Questions