开发者

Getting input from webcam

开发者 https://www.devze.com 2023-03-03 11:18 出处:网络
Does .NET have a native support for getting input from webcam? If not, what is the best/recommended way to get input from web开发者_Go百科cam using C#/.NET?.NET does not have a native support for webc

Does .NET have a native support for getting input from webcam?

If not, what is the best/recommended way to get input from web开发者_Go百科cam using C#/.NET?


.NET does not have a native support for webcams. You can use OpenCV library. Also a .NET wrapper exists for OpenCV - Emgu CV.


You might like to look at the easywebcam codeplex project:

http://easywebcam.codeplex.com/

On the other hand, the "native" option is to develop this using DirectShow. However, there is no (as far as I know), official managed interface for DirectShow, so it can have a steep learning curve to develop with.


This was also asked in How to get web cam images in C#? and you might find the following useful:

I've just released the complete sourcecode of my Windows app CamTimer (written in .NET/C#). Download/view the complete code (with working Webcam examples) at https://github.com/johanssonrobotics/CamTimer

Happy coding!


There is also an SDK called MetriCam. It is supposed for Kinect and Time-of-Flight cameras, but also supports webcams. You can download it for free at http://www.metricam.net

It includes samples and tutorials how to integrate a DirectShow webcam into C#/.NET The webcam tutorial can be watched here: http://www.youtube.com/watch?v=BvnRpby8mSE

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号