【发布时间】:2010-11-24 07:12:57
【问题描述】:
这是来自 O'Reilly Learning Opencv 的代码 sn-p,
cvNamedWindow("Example3", CV_WINDOW_AUTOSIZE);
g_capture = cvCreateFileCapture(argv[1]);
int frames = (int) cvGetCaptureProperty(g_capture, CV_CAP_PROP_FRAME_COUNT);
if (frames != 0) {
cvCreateTrackbar("Position", "Example3", &g_slider_postion, frames, onTrackbarSlide);
}
但是很遗憾,cvGetCaptureProperty 总是返回 0。我在 Yahoo 中搜索过 opencv 组,发现同样的问题。
【问题讨论】:
标签: opencv