带有C#/C ++的网络摄像头或数码相机系统 [英] Webcam or digicam system with C#/C++

查看:151
本文介绍了带有C#/C ++的网络摄像头或数码相机系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我正在使用应具有3个USB Web或数字摄像头的相机系统.它们受C#/C ++的控制,可以同时拍摄照片,并将照片和日期和时间返回给我的PC.该程序最多应可用于任何流行的普通凸轮.

我想我已经知道应该在DirectShow的帮助下制定代码.

但是,更重要的是,我想知道是否可能三个相同的 usb相机一起或一个接一个地拍摄照片(用于各种景点).
他们之间是否存在冲突?如果我没有选择三个不同的产品,该如何解决该问题?
还是有人已经在c程序中使用了多个摄像头?
非常感谢您的帮助!

Christoph

Hello friends,

I am working on a camera system that should have 3 USB web- or digicams. They are controlled with C#/C++ to take photos at the same time and give the photos back to my PC with the date and time. The program should at best be useable for any popular normal cams.

I think i''ve ready know the codes should be worked out with DirectShow''s help.

But what''s more, i want know if it''s possible that three same usb-cameras together or one after another to take fotos(for various sights).
Is there conflikts between them? How can i prevent the problem when i don''t choose three different ones?
Or does anybody already worked with more than one webcams in a c-program?
Thanks a lot for your help!

Christoph

推荐答案

我认为您的平台是Windows(C#...),如果您正在寻找一种处理摄像机输入的方法,我建议您研究一下Microsoft的 DirectShow [ ^ ].文档非常详细,并且网上有很多教程.
I presume your platform is windows (C#...), if you are looking for a way to handle input from the cameras, i recommend looking into Microsoft''s DirectShow[^]. The documentation is quite detailed and there are a lot of tutorials around the net.


是的,我同意Code-o-mat,您可以阅读有关DirectShow(有时缩写为DS或DShow)的信息. ),是Microsoft产生的,用于软件开发人员对媒体文件或流执行各种操作的多媒体框架和API.它是Microsoft早期的Windows视频技术的替代品. DirectShow基于Microsoft Windows组件对象模型(COM)框架,为跨各种编程语言的媒体提供了通用接口,并且是可扩展的基于筛选器的框架,可以根据用户或用户的要求按需呈现或记录媒体文件.开发人员. DirectShow开发工具和文档最初是DirectX SDK的一部分.
当前,它们作为Windows SDK(以前称为Platform SDK)的一部分进行分发.但是Microsoft计划在将来的Windows版本中逐步用Media Foundation逐步完全替代DirectShow. Windows Vista和Windows 7应用程序使用Media Foundation而不是DirectShow来完成与媒体相关的多项任务.

http://msdn.microsoft.com/zh-我们/library/windows/desktop/dd375454%28v=vs.85%29.aspx
http://www.laganiere.name/directshowTut/
http://www. codeguru.com/cpp/gm/directx/directshow/article.php/c9551/DirectShow-SingleFrame-Capture-Class-Without-MFC.htm

来自Youtube的DirectShow编程:
http://www.youtube.com/watch?v=bl_ADLC76oQ
http://www.youtube.com/watch?v=BOGF3WkmcL8&feature=relmfu
http://www.youtube.com/watch?v=ZzIKOGKJEwc&feature=relmfu
http://www.youtube.com/watch?v=BA1Vkx77fZ4&feature=relmfu
http://www.youtube.com/watch?v=RN8ygMtQFu4&feature=relmfu

这里来自codeproject的文章:
有关如何为初学者开发DirectShow源过滤器的简短教程 [ ^ ]
使用Direct Show和Windows Media格式的Streaming Server [ ^ ]
DirectShow.NET [在C#中编程DirectShow应用程序:一组教程 [ ^ ]

使用DirectShow在网络上流式传输视频:
http://social.msdn.microsoft.com /Forums/zh-CN/windowsdirectshowdevelopment/thread/f28de003-abe6-4949-8a3f-6f7d1198e008/

例如,您还可以阅读有关智能视频监控设备的开发商和制造商Mango DSP的信息:
http://www.mangodsp.com/default.asp?id=11&item=4 [^ ]
Yes, I agree with Code-o-mat,you can read about DirectShow (sometimes abbreviated as DS or DShow), is a multimedia framework and API produced by Microsoft for software developers to perform various operations with media files or streams. It is the replacement for Microsoft''s earlier Video for Windows technology. Based on the Microsoft Windows Component Object Model (COM) framework, DirectShow provides a common interface for media across various programming languages, and is an extensible, filter-based framework that can render or record media files on demand at the request of the user or developer. The DirectShow development tools and documentation were originally distributed as part of the DirectX SDK.
Currently, they are distributed as part of the Windows SDK (formerly known as the Platform SDK). But Microsoft plans to completely replace DirectShow gradually with Media Foundation in future Windows versions. Windows Vista and Windows 7 applications use Media Foundation instead of DirectShow for several media related tasks.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd375454%28v=vs.85%29.aspx
http://www.laganiere.name/directshowTut/
http://www.codeguru.com/cpp/g-m/directx/directshow/article.php/c9551/DirectShow-SingleFrame-Capture-Class-Without-MFC.htm

DirectShow Programming from Youtube:
http://www.youtube.com/watch?v=bl_ADLC76oQ
http://www.youtube.com/watch?v=BOGF3WkmcL8&feature=relmfu
http://www.youtube.com/watch?v=ZzIKOGKJEwc&feature=relmfu
http://www.youtube.com/watch?v=BA1Vkx77fZ4&feature=relmfu
http://www.youtube.com/watch?v=RN8ygMtQFu4&feature=relmfu

Here articles from codeproject:
A Brief Tutorial On How To Develop DirectShow Source Filter For Beginners[^]
Streaming Server using Direct Show and Windows Media Format[^]
DirectShow.NET[^]
Programming DirectShow applications in C#: A set of tutorials[^]

Streaming video across a network using DirectShow:
http://social.msdn.microsoft.com/Forums/en-US/windowsdirectshowdevelopment/thread/f28de003-abe6-4949-8a3f-6f7d1198e008/

For example, you can also read about Mango DSP a developer and manufacturer of intelligent video surveillance devices:
http://www.mangodsp.com/default.asp?id=11&item=4[^]


这篇关于带有C#/C ++的网络摄像头或数码相机系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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