Web-Cam Video frames to System.Drawing.Bitmap

Posted by Hooch on Stack Overflow See other posts from Stack Overflow or by Hooch
Published on 2011-01-10T18:46:16Z Indexed on 2011/01/10 18:53 UTC
Read the original article Hit count: 258

Filed under:
|
|
|
|

Hello. I'm using AForge.NET framework to process some data from webcam. My Image processor is working.

class WebProc
{
   public void Process(System.Drawing.Bitmap image)
   {
      ....
   }
}

I know how to send image from HDD.

I was thinking about something like that:

private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
   while(!backgroundWorker1.CancellationPending)
   {
      Bitmap Frame GetVidoFrameSomeWay();
      WebProc.Process(Frame);
   }
}

Can you help me with those questions?

  1. How to get frame from webcam?
  2. How to list all available webcam for user to chose from?
  3. How to open Webcam setting window?
  4. Is there a way to set frame size to 640x480 o user size?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET