C# + DirectShow.NET = Simple WebCam access?

后端 未结 3 1763
谎友^
谎友^ 2020-12-03 01:59

I have found an example for accessing a webcam in C#. The example uses the DirectShow.NET library. I have tried to understand the code, but so far the only thing I could fig

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 02:47

    You will need to use the ISampleGrabber interface there are many c++ examples on the net on how to use it, it will give you data the in RGB raw format which you can feed into the Bitmap class.

    There is also an open source library called Touchless it has a project in code which takes a web cam and give you a callback every time a new frame arrived.

提交回复
热议问题