• Stars
    star
    228
  • Rank 174,496 (Top 4 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created almost 11 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A set of easy-to-use Kinect utilities that will speed-up the development of your projects.

Vitruvius

Vitruvius is a set of easy-to-use Kinect utilities that will speed-up the development of your projects. Supports WPF and Windows Store. Requires Kinect 2.

Installation

Grab the package using NuGet

    PM> Install-Package lightbuzz-vitruvius

... and import Vitruvius in your project

    using LightBuzz.Vitruvius;

You'll also need to set the project configuration to Release and the target processor to x64 (preferred) or x86.

Academic & Premium Versions

vitruviuskinect.com

Features

Bitmap Generators

    var bitmap = colorFrame.ToBitmap();
    var bitmap = depthFrame.ToBitmap();
    var bitmap = infraredFrame.ToBitmap();

Bitmap Capture

    bitmap.Save("Capture.png");

Background Removal

    var bitmap = colorFrame.GreenScreen(depthFrame, bodyIndexFrame);

Closest Body

    var body = bodyFrame.Bodies().Closest();

Body Height

    double height = body.Height();

Body Visualization

    viewer.DrawBody(body);

Angles between joints

Angles

    double angle = elbow.Angle(shoulder, wrist);
    double angle = elbow.Angle(shoulder, wrist, Axis.Z);
    double radians = angle.ToRadians();
    double degrees = radians.ToDegrees();

Automatic Coordinate Mapping

    var point = joint.Position.ToPoint(Visualization.Color);

Gesture detection

    void GestureRecognized(object sender, GestureEventArgs e)
    {
       var gesture = e.GestureType;

       switch (gesture)
       {
    	   case (GestureType.JoinedHands): break;
    	   case (GestureType.Menu): break;
    	   case (GestureType.SwipeDown): break;
    	   case (GestureType.SwipeLeft): break;
    	   case (GestureType.SwipeRight): break;
    	   case (GestureType.SwipeUp): break;
    	   case (GestureType.WaveLeft): break;
    	   case (GestureType.WaveRight): break;
    	   case (GestureType.ZoomIn): break;
    	   case (GestureType.ZoomOut): break;
       }
    }

XAML Controls

    KinectViewer		// Displays streams and skeletons.
    KinectAngle		// Displays an arc.
    KinectJointSelector	// Allows you to select a joint visually.

Avateering (Academic & Premium Versions)

Avateering

    Avateering.Update(model, body);

Recording & Playback (Academic & Premium versions)

    // Recording
    recorder = new VitruviusRecorder(path);
    recorder.RecordFrame(imageFrame, frameEffect, bodyFrame, faceFrame);
    
    // Playback
    player = new VitruviusPlayer(this, StreamFromPlayback, path));
    player.SeekFrame(seekDelta);

HD Face with properties (Academic & Premium Versions)

Face

    Face face = faceFrame.Face();
    var nose = face.Nose;
    var mouth = face.Mouth;
    var chin = face.Chin;
    var jaw = face.Jaw;
    var eyeLeft = face.EyeLeft;
    var eyeRight = face.EyeRight;
    var cheekLeft = face.CheekLeft;
    var cheekRight = face.CheekRight;
    var forehead = face.Forehead;

Contributors

License

You are free to use these libraries in personal and commercial projects by attributing the original creator of Vitruvius. Licensed under Apache v2 License.

More Repositories

1

Speech-Recognition-Unity

Speech recognition in Unity3D.
C#
143
star
2

Kinect-Finger-Tracking

The most accurate way to track fingers using Kinect v2.
C#
126
star
3

Body-Tracking-ARKit

Sample use of Unity's ARFoundation and ARKit3 body tracking
C#
108
star
4

Kinect-HTML5

Display Kinect data on an HTML5 canvas using WebSockets
C#
66
star
5

Azure-Unity

The definitive Azure SDK for Unity3D with local SQLite database support.
C#
56
star
6

Archiver-Unity

Compress and decompress files and folders in Unity3D.
C#
40
star
7

Hololens-Pokemon-Go

Pokemon Go Demo in HoloLens
C#
23
star
8

Kinect-Drawing

A simple drawing app using Kinect, C#, and XAML.
C#
23
star
9

Kinect-2-CSV

Save Kinect body data into a CSV file (and view it as an Excel spreadsheet)
C#
21
star
10

SMTP-WinRT

An SMTP client for WinRT. Send emails from within your Windows 8 and Windows Phone app.
C#
21
star
11

Kinect-Weight-Lifting-Bar

Detect a weight-lifting bar using Kinect for Windows version 2.
C#
20
star
12

RealSense

C# utilities for the Intel RealSense D415/435
C#
16
star
13

Kinect-Floor

Floor detection using Kinect v2.
C#
14
star
14

OpenCV

OpenCV for iOS and VisionOS.
C++
11
star
15

Settings-Unity

Settings utility for Unity3D.
C#
9
star
16

Speech-Recognition-Android

Speech (Voice) Recognition using Java and Android.
Java
9
star
17

Kinect-Basketball-Spinner

Basketball Spinner using Kinect v2 and Unity3D. Augmented Reality App.
C#
8
star
18

Unity-Package-Export

Export an existing Unity Package as a tarball (.tgz) file.
C#
5
star
19

Azure-HoloLens

Connects to an Azure App Service and fetches data to a HoloLens application.
C#
4
star
20

Mobile-AR

Showcasing ARFoundation, ARCore and ARKit
C#
4
star
21

Localization-UWP

Explicit Localization in Windows Universal Platform
C#
4
star
22

Encryption-WinRT

A simple encryption provider for WinRT apps. Can be used with SQLite databases.
C#
3
star
23

Unity-Canvas-Scaler

An handy canvas scaler for cross-platform Unity apps and games.
C#
3
star
24

HoloLens-App

Showcasing Microsoft HoloLens features
C#
3
star
25

Archiver-WinRT

Compress and decompress files and folders in WinRT
C#
2
star
26

Settings-WinRT

Settings utility for WinRT
C#
1
star