David
David

Reputation: 19

Is there a commercial/open source C# wrapper component for using a webcam in Windows?

I need to rapidly develop some software that uses a camera as an AV input.

Assuming the drivers are installed for whatever the device that is giving the input I need to be able to capture images and to stream the camera in the winforms window.

I couldn't find a component that I can use, maybe because I don't know the right name for it.

Touchless is under a licence I can't use. If anyone knows of a good compoment/code I can use even if it's for a fee I will appreciate this.

Upvotes: 1

Views: 2174

Answers (2)

Teoman Soygul
Teoman Soygul

Reputation: 25732

DirectShow.NET library suits the bill here. You can use it to access the webcam directly using the underlaying DirectShow object as in here: http://www.codeproject.com/KB/audio-video/WebcamUsingDirectShowNET.aspx

Also if you consider learning WPF, there is a very neat webcam component here: http://wpfcap.codeplex.com/ It is just like dropping a image control on the worm, but this time in WPF:

Edit: There are also two Winform webcam components as I see now: http://easywebcam.codeplex.com/ and http://www.c-sharpcorner.com/UploadFile/yougerthen/810262008070218AM/8.aspx

Upvotes: 5

Jaapjan
Jaapjan

Reputation: 3385

This article explains how to access the webcam using Windows Image Aquisition services.

Upvotes: 2

Related Questions