Matlab中未定义函数"insertObjectAnnotation"中的错误 [英] error in Undefined function 'insertObjectAnnotation' in matlab

查看:414
本文介绍了Matlab中未定义函数"insertObjectAnnotation"中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在matlab中应用代码进行人脸检测和跟踪,但不幸的是,此错误提示了

i try to apply code for face detection and tracking in matlab but unfortunately this error prompted up

我使用matlab R2012a

i use matlab R2012a

这是我尝试过的代码

faceDetector = vision.CascadeObjectDetector();
videoFileReader = vision.VideoFileReader('visionface.avi');
videoFrame      = step(videoFileReader);
bbox            = step(faceDetector, videoFrame);
videoOut = insertObjectAnnotation(videoFrame,'rectangle',bbox,'Face');

这是错误:

Undefined function 'insertObjectAnnotation' for input
arguments of type 'single'.

请帮助.

推荐答案

R2012b中的Matlab函数引入了insertObjectAnnotation函数.它不适用于matlab R2012a

The function insertObjectAnnotation was introduced to Matlab in R2012b. it is not available for matlab R2012a

这篇关于Matlab中未定义函数"insertObjectAnnotation"中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆