Get webcam image?

Guapo picture Guapo · Apr 8, 2011 · Viewed 13.3k times · Source

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.