Welcome to weblogs.com.pk Sign in | Join | Help

Capturing Webcam Image in C# (and other .NET Langs)

I found this amazing project, name Touchless on CodePlex.com today, using which you can not only capture webcam images, but can also create some cool apps. Writing will not do the justice, so see yourself!

Video: Touchless
  • Touchless Demo is an open source application that anyone with a webcam can use to experience multi-touch, no geekiness required. There are 4 fun demos: Snake - where you control a snake with a marker, Defender - up to 4 player version of a pong-like game, Map - where you can rotate, zoom, and move a map using 2 markers, and Draw - the marker is used to guess what....  draw!
  • Touchless SDK is an open source SDK that enables developers to create multi-touch based applications using a webcam for input, geekiness recommended.

Learn More >>

Direct link to download binaries along with the demo app shown in the video above!

BTW, sample code to capture image using this SDK!

TouchlessMgr touch = new TouchlessMgr();
List<Camera> listOfCameras = new List<Camera>();
catch { }
if (listOfCameras.Count > 0)
    touch.CurrentCamera = listOfCameras[0];
if (null != touch.CurrentCamera)
    touch.CurrentCamera.CaptureHeight = 600 / 3;
    touch.CurrentCamera.CaptureWidth = 800 / 3;
    touch.CurrentCamera.Fps = 15;
    Bitmap b = touch.CurrentCamera.GetCurrentImage();
    //Do whatever with b, like saving it to disk / ftping somewhere etc
Published Sunday, February 08, 2009 7:08 PM by khurram
Filed under:


No Comments

New Comments to this post are disabled