简体   繁体   English

我的 matlab 代码的嘴唇检测算法错误

[英]error in lip detection algorithm of my matlab code

I am getting error in my Matlab code.我的 Matlab 代码出错。 I am using R2009b version我用的是R2009b版本

Frame index must be a numeric value greater than zero and less than or equal to the number of frames in the file.帧索引必须是大于零且小于或等于文件中的帧数的数值。

Error in ==> mmreader.read at 74 videoFrames = read(getImpl(obj), index); ==> mmreader.read 错误在 74 videoFrames = read(getImpl(obj), index);

Error in ==> testing at 10 Ii=read(mov,k*10); ==> 10 时测试错误 Ii=read(mov,k*10);

Just a hunch, but I'm guessing that your frame index is not:只是一种预感,但我猜你的帧索引不是:

a numeric value greater than zero and less than or equal to the number of frames in the file.大于零且小于或等于文件中的帧数的数值。

MATLAB is telling you that the error is happening in mmreader.read , and it is happening when you call mmreader.read at this point in your file testing : MATLAB 告诉您错误发生在mmreader.read ,当您在文件testing此时调用mmreader.read时发生错误:

Ii=read(mov,k*10);

If your movie reader object mov contains less than k*10 frames, or if k is zero or a negative number, you are asking MATLAB to do something impossible.如果您的电影阅读器对象mov包含少于k*10帧,或者如果k为零或负数,则您要求 MATLAB 做一些不可能的事情。

These sort of errors can be easily tracked down by typing dbstop if error at the command line, which means that when there is an error you enter debug mode.通过在命令行输入dbstop if error可以很容易地跟踪这些类型的错误,这意味着当出现错误时,您将进入调试模式。 At this point you can then check what the value of k is, and also the number of available frames in mov .此时,您可以检查k的值,以及mov中可用帧的数量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM