WIA 在 Windows 7 中找不到我的内置摄像头
我目前正在开发一个项目,我需要访问内置相机(软件将在平板电脑上运行),流式传输相机显示的内容,并允许用户从流中拍照。我有一个我想要在笔记本电脑上完成的工作的版本,其内置摄像头可以正常工作。主要区别是笔记本电脑使用 Windows XP,平板电脑使用 Windows 7。
在平板电脑上运行软件时出现异常(根据一些研究,异常似乎是由于未找到 WIA 设备引起的)。内置摄像头是否可能不兼容 WIA?该设备确实在设备管理器中显示为 USB 摄像头设备,但与笔记本电脑上的摄像头不同,我无法直接访问它。我必须使用平板电脑制造商安装的第三方软件才能使相机正常工作。
有人遇到过类似的问题吗?我必须相信,如果平板电脑制造商能够满足我的需求,我也应该能够做类似的事情。
还有可以访问摄像头的 Windows 便携式设备 API,但它似乎是用 C++ 编写的,没有 .NET 包装器。有谁知道如何让 .NET 与它很好地配合的简单教程? 编辑:刚刚尝试过 WPD 也没有列出任何设备。我开始认为这台相机不存在。
任何知识/资源指示将不胜感激。 (到目前为止,无论我以哪种方式解决问题,谷歌都出现了相同的几篇文章)
I am currently working on a project where I need to access a build in camera (software will run on a tablet), stream what the camera is showing, and allow the user to take a picture from the stream. I have a version of what I am trying to accomplish on my laptop with its built in camera working. The major difference is the Laptop is using windows XP the tablet is using windows 7.
Running the software on the tablet I get an exception (with some research it appears that exception is cause by no WIA device found). Is it possible that the built in Camera is not WIA compatible? The device does show in the Device Manager as an USB Camera Device, but unlike the camera on my laptop I can't access it directly. I have to use 3rd party software put in by the tablet maker to get the camera to work.
Has anyone experience similar problems? I have to believe if the tablet maker can do what I need I should be able to do something similar.
There also is the Windows Portable Device API that can access cameras, but that appears to be written in c++, without a .NET wrapper. Does anyone know of a simple tutorial of how I could get .NET to place nice with it? EDIT: Just tried WPD didn't list any devices either. I am beginning to thing this camera doesn't exist.
Any knowledge/ pointers to resources would be appreciated. (So far google has turned up the same few articles, no matter which way I approach the problem)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
结果我的相机不兼容 WIA。我能够使用 directshow(实际上是 directshow.net)让平板电脑执行我需要执行的操作
如果其他人正在尝试执行类似的操作并遇到类似的问题,则可以提供良好的链接
http://msdn.microsoft.com/en-us /library/dd375454%28VS.85%29.aspx
http://directshownet.sourceforge.net /faq.html
Turns out my Camera was not WIA compatible. I was able to get the tablet to do what I needed it to do using directshow (actually directshow.net)
Good links if others are trying to do something similar and having similar problems
http://msdn.microsoft.com/en-us/library/dd375454%28VS.85%29.aspx
http://directshownet.sourceforge.net/faq.html