/RsRx

Reactive extensions for Intel Realsense SDK (C#) for Windows

Primary LanguageC#MIT LicenseMIT

RsRx

Reactive extensions for Intel Realsense SDK (C#) for Windows

This repository just only README!! please wait my contribution.

Description

There was only painfull way to use Intel RealSense SDK (C#) for Windows.
This module provides easier way to use RealSense SDK by the SharpSenses infrastructure and Rx syntax.

It supports hand tracking, gesture, custom poses, face expressions and much more.

Demo

T.B.D.

Requirement

  • RealSense SDK
  • Intel 3D Camera Driver
  • .NET Framework 4.5

Dependency

Usage

ICamera cam = Camera.Create();

// hand event as observable
cam.RightHand.MoveAsObservable().Subscribe( (s,a) =>
{
    Console.WriteLine("-> x:{0} y:{1}", a.Position.Image.X, a.Position.Image.Y);
});

// gesture as observable
cam.Gestures.SlideLeftAsObservable().Subscribe( (s, a) => Console.WriteLine("Swipe Left"));

// poses as observable
cam.Poses.PeaceAsObservable().Subscribe(
    hand => Console.WriteLine("Make love, not war"),
    ex => Console.WriteLine(""),
    () => Console.WriteLine("Bye!"));

// facial expression as observable
cam.Face.FacialExpressionAsObservable().Subscribe( (s,e) =>
{
    Console.WriteLine("FacialExpression: " + e.NewFacialExpression);
});

// face recognition
cam.Face.PersonRecognizedAsObservable().Subscribe( (s,a) =>
{
    Console.WriteLine("Hello " + a.UserId);
});

// speech recognition
cam.Speech.SpeechRecognizeAsObservable().Subscribe( (s,a) =>
{
    Console.WriteLine("-> " + a.Sentence);
});


// start sampling
cam.Start();

Install

Install from Nuget Gallery

PM> Install-Package RsRx

LICENSE

The MIT License

Author

fumitoito