刚开始用ZK的matlab程序生成的demo就遇到个奇怪的问题,双击运行tld1.exe出现如下界面:
于是就press0,接下来就什么都没有了。刚开始很费解,后来看到log.txt的内容
有更新,就打开开了,内容如下所示:
??? Error using ==> videoinput.videoinput at 328
The FORMAT specified is not supported by this device. See
IMAQHWINFO(ADAPTORNAME).
Error in ==> tmdInitSource at 12
Error in ==> tmdGo at 13
Error in ==> go at 49
}
imaq:videoinput:noFormat
刚开始不知道该如何感觉,只隐约感觉是init什么有问题,连问问题都不晓得怎么跟别人说清楚,后来终于在TLD算法讨论群中问到了答案,特别感谢啊。其实这个问题也是作者在readme中提到的:
Common errors:
============================================================
??? Error using ==> videoinput.videoinput at 328
The FORMAT specified is not supported by this device. See
IMAQHWINFO(ADAPTORNAME).
Error in ==> tmdInitSource at 12
Error in ==> tmdGo at 13
Error in ==> go at 49
}
imaq:videoinput:noFormat
Reason:
Your camera does not support the format specified in initcamera.m
Solution:
Find what format is supported by your camera or directly try different setting in the section 'camera format' of file initcamera.m
具体修改方法就是
source.vid = videoinput('winvideo', 1,'RGB24_320x240');//现在使用RGB24_320x240
%source.vid = videoinput('winvideo', 1,'YUY2_320x240');//原来使用YUY2_320x240
每个人遇到的问题不尽相同,不对的地方还请指正。