Skip to content

Instantly share code, notes, and snippets.

@anotherlab
Created April 6, 2018 00:57
Show Gist options
  • Save anotherlab/d5c5a9d1e2c9b9480e04ccb36aa27dd9 to your computer and use it in GitHub Desktop.
Save anotherlab/d5c5a9d1e2c9b9480e04ccb36aa27dd9 to your computer and use it in GitHub Desktop.
Using the list of attached webcams
// Get the list of connected video cameras
DsDevice[] devs = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice);
// Filter that list down to the one with hyper-aggressive focus
var dev = devs.Where(d => d.Name.Equals("Microsoft® LifeCam HD-5000")).FirstOrDefault();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment