在 Windows CE C# 应用程序上添加相机处理
我正在尝试在 Windows CE 上开发一个应用程序。我的设备有一个摄像头,我想在我的应用程序中处理它。我找到了许多 Windows Mobile 示例并尝试实现它,但没有成功。 Windows CE 是否有关于相机处理的特定类或程序集???
谢谢
I'm trying to develop an application on Windows CE. My device has a camera and I would like to handle it in my application. I've found many samples for windows mobile and try to implement it but without success.
Is there a specific class or assembly for Windows CE about camera handling ???
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,CE 下没有使用相机数据的通用“相机类别”。 Windows Mobile 有 CameraCaptureDialog,但它需要仅 WinMo OEM 需要的特定软件接口。由于相机可以具有多种软件接口,并且不要求任何 OEM 使用任何特定的软件接口,因此 CF 团队没有办法将其包装在控件中。
在许多情况下,摄像机输入流可以通过 Direct Show 获得。如果您的设备有 DShow 并且相机驱动程序提供了 DSHow 接口(两个大假设),那么您可能可以创建一个过滤器图表来导入它。这样做涉及相当复杂的 COM 互操作,所以这不是我会说很简单,但它至少是可以实现的。
No, there is no generic "camera class" for using camera data under CE. Windows Mobile has the CameraCaptureDialog, but it requires a specific software interface that is only required from WinMo OEMs. Since cameras can have a wide variety of software interfaces and since there is not requirement for any OEM to use any specific one, there wasn't a way for the CF team to wrap it in a control.
In many cases the camera input stream can be gotten through Direct Show. If your device has DShow and the camera driver provides a DSHow interface (two big ifs) then you can probably create a filtergraph to import it. Doing so involves a fair bit of complex COM interop, so it's not what I'd call simple, but it's at least achievable.