codingbear
codingbear

Reputation: 15063

Getting input from webcam

Does .NET have a native support for getting input from webcam?
If not, what is the best/recommended way to get input from webcam using C#/.NET?

Upvotes: 13

Views: 17667

Answers (4)

user2048932
user2048932

Reputation: 21

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

Upvotes: 2

Fredrik Johansson
Fredrik Johansson

Reputation: 3535

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!

Upvotes: 2

Centro
Centro

Reputation: 4012

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

Upvotes: 5

Tim Ebenezer
Tim Ebenezer

Reputation: 2724

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.

Upvotes: 2

Related Questions