Search code examples
c#video-streamingvideo-capture

How to import live video stream and capture one frame


How would I go about capturing one frame from a feed of video from a webcam or video capture card in C#? I want to display the live feed and have a method that takes one frame and saves it to a remote server either via FTP or over a shared network path.


Solution

  • You could use OpenCV. If you search on StackOverflow you'll find a lot of source on how to do that.

    There's even .NET wrappers for OpenCV like opencvdotnet and Emgu CV.

    You will probably end up using a few functions from the library, such as cvCaptureFromCAM() and cvQueryFrame().