How do I connect to a USB webcam in .NET? [closed]

Solution 1:

You will need to use Windows Image Acquisition (WIA) to integrate a webcam with your application. There are plenty examples of this readily available. Here is a C# Webcam User Control with source.

Here are some more articles and blog posts from people looking to solve the same problem you are:

  • MSDN Coding4Fun: Look at me! Windows Image Acquisition
  • CodeProject: WIA Scripting and .NET
  • CodeProject: WebCam Fast Image Capture Service using WIA
  • clausn.dk: Webcam control from C# and WIA

Solution 2:

Interesting side note, WIA isn't supported by Vista for doing Captures from Webcams anymore. They mainly targeted it towards Scanners and pulling stills from cameras.

Also, larger manufacturers like logitech have abandoned WIA is favor of DirectShow.