Ryan O'Neill
Ryan O'Neill

Reputation: 5687

Displaying, overlaying and interpreting live video feed in WinForms

I am starting a new project to show live video in a Windows form from an attached web cam and overlay that video with windows controls (buttons etc). Additionally I would like to do some image correction to remove distortion on the fly and do some edge detection.

I'm confused as to which library might be best suited for this.

  1. OpenCVSharp - Can handle the correction / detection, not sure if overlay / live feed is possible.
  2. DirectShow/DirectShow.Net - Do I need to code filters up for the overlay, how to handle edge detection?
  3. AForge.net - It's been recommended but I'm not sure it is as capable

Does anyone have experience of these or other libs that might be suitable for access from .Net?

Upvotes: 0

Views: 1888

Answers (2)

karlphillip
karlphillip

Reputation: 93410

I believe you can accomplish that with OpenCVSharp and the instructions from transparent image overlay.

Upvotes: 1

Rutix
Rutix

Reputation: 861

If you only want to work with the vision part then AForge.net is your best bet. I have used it in the past and it was pretty good for video/feed stuff. Don't expect to do something with your audio later on though since AForge.NET only supports Vision related stuff. Personally I wouldn't use DirectShow since that is pretty old and sometimes requires you to do some complex interop tricks to get what you want. If you want to go the DirectShow way at least use DirectShow.NET.

Upvotes: 2

Related Questions