title: Capturing image from WebCam in .Net Core 2.0
body: <p>I'm developing an app in .Net Core 2.0 to run on a Raspberry Pi, which is running Win 10 IoT. The Pi has a USB WebCam attached and I'm looking to capture a still image from the camera. Unfortunately this is proving somewhat troublesome, to say the least.</p>
  
  <p>Firstly I had a good search through the .Net Core 2.0 libraries to see if there's anything that will provide this functionality, but have not had any luck.</p>
  
  <p>My second line of enquiry was NuGet, to see if any third-party libraries might do the job. EmguCV looked promising for a while, but they do not seem to support .Net Core just yet.</p>
  
  <p>Finally I googled for anything that might do the job and came across the MediaCapture class in Windows.Media.Capture for UWP, but I've had no success referencing this from my .Net Core console app. It seems like you can reference .Net Core assemblies from UWP solutions, but I've not found a way to do it the other way around.</p>
  
  <p>Bearing in mind that I'd prefer to keep my project in .Net Core 2.0, rather than re-writing for UWP, I'm looking for any means of capturing a still image from the WebCam. Any pointers will be gratefully received, as this is proving to be surprisingly frustrating. </p>