Capturing image from WebCam in .Net Core 2.0

Actually for capturing images and other image processing activities, probably you can try OpenCvSharp.

It has support for .Net core.

https://github.com/shimat/opencvsharp

Nuget Package is available (look for more details in the above link).

Here is an example for capturing video.

https://github.com/shimat/opencvsharp/wiki/%5BCpp%5D-Capturing-Video

if you pass 0 (zero) as input to VideoCapture, it should open the default camera.

Something like this (not tried):

VideoCapture capture = new VideoCapture(0); //assumption based on how actual openCV works.