你知道如何使用OpenCV-DirectShow(不使用VFW)从网络摄像头获取原始的YUY2图像吗?
在http://opencv.willowgarage.com/wiki/CameraCapture中,我成功地使用了示例获取了IPL图像(Intel Processing Library image)。
在代码中使用cvShowImage()函数时,屏幕上的图像很好。但我不想在屏幕上显示图像,也不需要IPL格式,我只需要YUYV原始数据……
维基百科页面的第二部分正是我想要的,但deviceSetupWithSubtype()在OpenCV 2.4中似乎不再存在(即使Google也不知道它)。
编辑:我已经找到了:它在链接到页面的rar文件中!Google在rar文件中看不到。这是链接:http://opencv.willowgarage.com/wiki/CameraCapture?action=AttachFile&do=get&target=Camera+property+Settings.rar 。我将研究这个。
在http://opencv.willowgarage.com/wiki/CameraCapture中,我成功地使用了示例获取了IPL图像(Intel Processing Library image)。
在代码中使用cvShowImage()函数时,屏幕上的图像很好。但我不想在屏幕上显示图像,也不需要IPL格式,我只需要YUYV原始数据……
维基百科页面的第二部分正是我想要的,但deviceSetupWithSubtype()在OpenCV 2.4中似乎不再存在(即使Google也不知道它)。
编辑:我已经找到了:它在链接到页面的rar文件中!Google在rar文件中看不到。这是链接:http://opencv.willowgarage.com/wiki/CameraCapture?action=AttachFile&do=get&target=Camera+property+Settings.rar 。我将研究这个。