Skip to content

shimat/videoinputsharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideoInputSharp

Description

VideoInputSharp is a wrapper to the videoInput library for .NET Framework. videoInput is a free windows video capture library. You can easily capture image from your devices using VideoInputSharp without additional software.

VideoInputSharpは、 videoInputの.NET Framework向けラッパーです。videoInputとは、DirectShowによるWindows向けのビデオキャプチャを容易に行えるライブラリです。VideoInputSharpにより、その他にライブラリを用意することなく簡単にカメラ等のデバイスからキャプチャが行えます。

capture sample

Downloads

Get the VideoInputSharp DLL file from the release page.

Example

using VideoInputSharp;

class Program
{
    static void Main(string[] args)
    {
        const int DeviceID = 0;

        using (VideoInput vi = new VideoInput())
        {
            vi.SetIdealFramerate(DeviceID, 30);
            vi.SetupDevice(DeviceID, 640, 480);

            byte[] buffer = new byte[vi.GetSize(DeviceID)];

            while (true)
            {
                vi.GetPixels(DeviceID, buffer);
                // do something....
            }

            vi.StopDevice(DeviceID);
        }
    }
}

Requirements

  • Windows
  • .NET Framework 2.0 or later

About

.NET wrapper to the videoInput library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages