4

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.

Guapo
  • 3,446
  • 9
  • 36
  • 63
  • You should keep in mind that, there should be a client side "permission" for your request. – Beytan Kurt Apr 08 '11 at 12:43
  • I believe Silverlight supports access to Web cams. – Tomas McGuinness Apr 08 '11 at 12:44
  • @Beytan Kurt the reason I want to do this is to capture periodically what can be seen once a device is stolen which should not ask for a permission otherwise the person who stole it would simple denied the request and the efforts would go to waste. I am currently creating an application like preyproject.com – Guapo Apr 08 '11 at 12:49

1 Answers1

1

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

t3d
  • 178
  • 10
  • seems to work nicely but I am stucked with how to change it to a different storage or save directly if you could here is the new question: http://stackoverflow.com/questions/5596039/picturebox-to-bitmap-or-image thanks. – Guapo Apr 08 '11 at 13:48