Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get webcam image?

How do I verify if there is a webcam available and if so get a screenshot of what it can capture ?

I was initially looking for an easy to use library but I guess none exist and most of the information I found was like from 2006 and around.

For instance:

Webcam webcam = new Webcam();
webcam.GetDefaultDevice().SaveCapturedImageTo("path");

Ofc this is just me dreaming of a simple code but I wonder if there is a library simple like that or that you dont actually need to write pages of code to simple interact with a default installed webcam and get a screenshot out of it.

like image 312
Guapo Avatar asked May 12 '26 23:05

Guapo


1 Answers

http://sites.google.com/site/webcamlibrarydotnet/winfrom-and-csharp-sample-code-and-download

like image 135
t3d Avatar answered May 15 '26 13:05

t3d



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!