在 vb.net winform 项目中使用网络摄像头
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24823401/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using a webcam in a vb.net winform project
提问by Coder92
I am new to vb.net and I am relatively new to programming in general. I am creating a windows form project in vb.net which uses a webcam to take a photo of a person. The photo is subsequently saved to a database. I won't have any problem saving it to the database but I haven't a clue where to start with using a webcam with vb.net. I know this question has been asked before and I have been doing a lot of looking around the internet for a solution I can understand but I am finding this very difficult. Can someone please point me in the right direction. Any help with this problem would be greatly appreciated. Thanks in advance.
我是 vb.net 的新手,一般来说我对编程也比较陌生。我正在 vb.net 中创建一个 windows 窗体项目,它使用网络摄像头拍摄一个人的照片。照片随后被保存到数据库中。我将它保存到数据库中不会有任何问题,但我不知道从哪里开始使用带有 vb.net 的网络摄像头。我知道之前有人问过这个问题,并且我一直在互联网上寻找我能理解的解决方案,但我发现这非常困难。有人可以指出我正确的方向。对这个问题的任何帮助将不胜感激。提前致谢。
采纳答案by Coder92
I was given the following link on 'Code Project' that solved my problem. Link: http://easywebcam.codeplex.com/SourceControl/latest#EasyWebCam/WinFormVBWebCam/Form1.vb
我在“代码项目”上获得了以下链接,该链接解决了我的问题。链接:http: //easywebcam.codeplex.com/SourceControl/latest#EasyWebCam/WinFormVBWebCam/Form1.vb
回答by Dave 5709
A more complex library than EasyWebCam that can do great things with webcams is AForge.NET. If you find yourself having a need for more advanced features, such as zoom control, I'd recommend checking it out. http://www.aforgenet.com/framework/
AForge.NET 是一个比 EasyWebCam 更复杂的库,它可以用网络摄像头做大事。如果您发现自己需要更高级的功能,例如缩放控制,我建议您查看一下。 http://www.aforgenet.com/framework/

