Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting input from webcam

Tags:

c#

.net

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?

like image 724
codingbear Avatar asked May 04 '11 15:05

codingbear


People also ask

Is webcam an input device?

A webcam is an input device that captures digital images. These are transferred to the computer, which moves them to a server. From there, they can be transmitted to the hosting page. Laptops and desktops are often equipped with a webcam.

What is the input of a web cam?

A webcam is an input device because it captures a video image of the scene in front of it. It is either built in to the computer (e.g. laptop) or it is connected through an USB cable. The video signal is made up of a series of individual 'image frames' which are an instant snapshot of the scene in front of it.

How do I get the camera input in python?

Steps to capture a video:Use cv2. VideoCapture( ) to get a video capture object for the camera. Set up an infinite while loop and use the read() method to read the frames using the above created object. Use cv2.


2 Answers

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

like image 167
Centro Avatar answered Sep 28 '22 06:09

Centro


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.

like image 40
Tim Ebenezer Avatar answered Sep 28 '22 08:09

Tim Ebenezer