[英]using directshow to snapshot image
我正在使用Windows Win7 64位+ Windows 7.1 SDK +网络摄像头
当我在\\ Samples \\ multimedia \\ directshow \\ capture \\ playcap使用smaple代码时
它运行正常,但问题是我想获取位图的图像数据,
看来我需要为ISampleGrabber包括“ qedit.h”,
但是在任何文件夹中都没有“ qedit.h”,我尝试将“ qedit.h”制作如下:
但会编译错误“ identifier'ISampleGrabber”
可以使用DirectShow通过Win7 SDK获取图像数据吗?
最好的祝福!!
谢谢!
Microsoft已弃用SDK的该部分,但Sample Grabber筛选器本身仍在包括Win 8在内的现代Windows中存在。具有Qedit.h的Windows SDK的最新版本为6.0,但即使在该版本中,它也需要某些旧版本的DirectX SDK。 您可以只使用此SampleGrabber.h ,它是原始标头的一小部分摘录。 这篇文章中有更多细节。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.