While running a matlab code for face detection in a video using camshift algorithm, i am getting the error Attempt to execute SCRIPT insertObjectAnnotation as a function. How to remove this error.
1 回表示 (過去 30 日間)
古いコメントを表示
my code is
% Read a video frame and run the detector.
videoFileReader = vision.VideoFileReader('a1.avi');
videoFrame = step(videoFileReader);
faceDetector = vision.CascadeObjectDetector;
bbox = step(faceDetector, videoFrame);
% Draw the returned bounding box around the detected face.
videoOut = insertObjectAnnotation(videoFrame,'rectangle',bbox,'Face');
figure, imshow(videoOut), title('Detected face')
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 12 月 10 日
Either you have a corrupted Computer Vision installation; OR you have messed up your MATLAB path; OR (most likely) you have accidentally created your own insertObjectAnnotation.m file that is interfering with your use of the Computer Vision routine.
Use
which -all insertObjectAnnotation
and see which one is being found. If it is one of yours being found then rename it or delete it.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Computer Vision Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!