两个摄像头同时查看 [英] Two camera view simultaneously

查看:109
本文介绍了两个摄像头同时查看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图从两台同时运行的摄像机中抓取图像。我正在使用DirectShow.NET,这是在用C#编写的Windows窗体应用程序中。

有什么好的例子我可以使用吗?我已经看到一些可以列出设备的例子,但我不确定如何继续下去?如何同时显示两个图像?

谢谢

I am trying to grab images from two cameras that are running simultaneously. I am using DirectShow.NET and this is in a windows form application written in C#.
Are there any good examples that I can use? I have seen some examples where one can list the devices, but I am not sure how to proceed after that? How can I display both images simultaneously?
Thanks

推荐答案

请参阅我对该问题的评论,然后查看文档:

http://directshownet.sourceforge.net/faq.html [ ^ ]。



基本上, Capture 对象需要表示设备索引的参数。然后你可以使用两个不同的 Capture 对象,就像使用它们一样。



使用 DsDev.GetDevicesOfCat 方法枚举设备。例如,请参阅: http://msdn.microsoft .com / zh-CN / library / windows / desktop / dd390351%28v = vs.85%29.aspx [ ^ ]。



-SA
Please see my comment to the question, and then see the documentation:
http://directshownet.sourceforge.net/faq.html[^].

Basically, the Capture object expects the parameter representing the index of the device. Then you can use two different Capture objects exactly in the same way as you would do with one.

The devices are enumerated using the method DsDev.GetDevicesOfCat. See, for example: http://msdn.microsoft.com/en-us/library/windows/desktop/dd390351%28v=vs.85%29.aspx[^].

—SA


这篇关于两个摄像头同时查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆