Stopbyte

Picture capture with the webcam in C#?

Hello, I want to take pictures with the PC’s webcam that my application will be installed and save the pictures locally or on a server. So I’m looking for feedback, which library i can use? Thank you for your help.

1 Like

you can use this library:

It’s extremely useful library and here is how to use it:

1.Initialize it at first:

WebCam webcam;
webcam = new WebCam();
webcam.InitializeWebCam(ref MyImageBox);

With MyImageBox being the Windows Forms Picture Box to use to show video Frames and/or captured images.

2.Store your captured image:

To capture an image you can simply get the current image from the MyImageBox PictureBox

var MyCapturedImage = MyImageBox.Image;

that’s it, hope that helps.