使用 C# 编写网络摄像头
我正在尝试制作自己的 Photobooth,我想知道是否有任何示例 C# 代码甚至 Java 代码可以帮助我对 photoboth 进行编程(拍照并将其打印出来 photobooth 风格),而且我想要一种模式,其中人处于Photobooth 还可以选择拍摄一分钟长的视频并将其保存到硬盘上。我可以使用任何链接或源代码吗?
我看过(只是谷歌),我能找到的大多数代码只是为了打开网络摄像头并向你展示它观察到的内容,而不是关于将图片保存到硬盘驱动器,当然也不是关于录制电影......也许我没有看起来还不够仔细。请帮助,感谢您花时间阅读本文:)
I was trying to make my own Photobooth and I was wondering if there was any sample C# code or even Java code that would help me program a photoboth (take pictures and print it out photobooth style) and also I wanted a mode where the person in the photobooth could also make the choice of taking a minute-long video too and save it to the hard drive. Any links or source code that I could use?
I have looked (just Google) and most code I could find was just for having the webcam on and showing you what it observes, nothing about saving the picture to the hard drive and certainly nothing about recording a movie.... perhaps I didn't look hard enough. Please Help, thank you for taking the time to read this :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 C#,您可以尝试 Directshow.Net 库:
http://directshownet.sourceforge.net/
这是一个Directshow 框架的托管版本,并且应该有示例来指导您完成。
For C# you can try the Directshow.Net library:
http://directshownet.sourceforge.net/
This is a managed version of the Directshow framework and should have examples to guide you through.