Code Monkey home page Code Monkey logo

intel-realsense-hand-toolkit-unity's Introduction

Intel Realsense Hand Toolkit for Unity

realsense.jpg

Intel Realsense Hand Toolkit for Unity is toolkit for developing on hand tracking feature in Unity application with Intel Realsense camera easier.

Latest Unity3D Package

Download Unity Package

Intel Realsense SDK

Download Intel Realsense SDK

Requirement

Unity3D
Intel Realsense SDK
Intel Realsense Full Hand Tracking and Gesture Recognition SDK
F200/SR300 Camera Driver

Noted: R200 is not supported, because Intel Realsense Full Hand Tracking and Gesture Recognition SDK is not available in R2.

Initialization

Setup

  1. Connect depth camera by USB 3.0+

  2. Drag DepthCameraManager Prefabs in Assets/IRToolkit/Prefabs to Scene

  3. Write Script !

Configuration

Hand Position Manager

Sign is number that will be multiply with x-axis of hand's position. User can adjust it to 1 or -1.

  • 1 is worked for Head Mounted Display Device
  • -1 is worked for Normal Display Device

Gestural Manager

Is Enable All Gesture is boolean for enable all of gesture in system.

If Is Enable All Gesture is false, system will enable all of gesture those mention in Gesture Actions.

See gesture information

Usage

Hand Positioning

Initialize

void Start()
{
  GameObject.Find("DepthCameraManager").GetComponent<HandPositionManager>().AddSubscriber(gameObject);
}

Receive Hand Position

void OnLeftHandChange(Vector3 handPosition)
{
  // Do your work when left hand position is updated
}

void OnRightHandChange(Vector3 handPosition)
{
  // Do your work when right hand position is updated
}

Notify Hand State Change

void OnLeftHandAppear()
{
  // Do your work when left hand is appeared
}

void OnLeftHandDisappear()
{
  // Do your work when left hand is disappeared
}

void OnRightHandAppear()
{
  // Do your work when right hand is appeared
}

void OnRightHandDisappear()
{
  // Do your work when right hand is disappeared
}

Hand Gesture

Initialize

void Start()
{
  GameObject.Find("DepthCameraManager").GetComponent<GesturalManager>().AddSubscriber(gameObject);
}

Method Pattern

  • void On+GestureName()
  • void On+HandSide+Hand+GestureName()

Receive Gesture

void OnGesture(GestureData data){
  // Do your work
  // data.name is gesture name
}

void OnThumbUp(){
  // Do your work here when current gesture is thumb up
}

void OnLeftHandThumbUp(){
  // Do your work here when left hand gesture is thumb up
}

void OnRightVSign(){
  //Do your work here when right hand gesture is v sign
}

MIT License

MIT License

Copyright (c) 2017 Voraton Lertrattanapaisal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Reference

intel-realsense-hand-toolkit-unity's People

Contributors

reiiyuki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

intel-realsense-hand-toolkit-unity's Issues

NullPointerException

Hey,
I tried to open one of the example scenes, but i'm having this NullPointerException. Do you have an idea how to solve it or why is it happening? I know this sounds like a basic question, but I'm a beginner with unity.

Here's the error: 2020-07-22 (11)

Null runtime error

Hi
Getting the following null error when I try and play

NullReferenceException: Object reference not set to an instance of an object
DepthCameraManger.InititalizeSenseManager () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:28)
DepthCameraManger.Awake () (at Assets/IRToolkit/Scripts/DepthCameraManger.cs:22)

R200 STATUS_ITEM_UNAVAILABLE

Unity5.65 R200
public void StartDevice() { if (senseManager.Init() == Status.STATUS_NO_ERROR) { Debug.Log(TAG + "Initialization Successful!"); isStart = true; } else throw new System.Exception("Initialization Failed!"); }

senseManager.Init() STATUS_ITEM_UNAVAILABLE
r2 support r200,"Full Hand Tracking and Gesture Recognition SDK" belong to r3

Mobile

Hi, is it will work on mobiles?

D400

Is there any progress in finger tracking with D400 series? I am doing my undergraduate graduation project! I need to identify 22 joint points of the hand. But nuitrack cannot be completed. Maybe you can only rely on OpenCV. Is there any information or code about OpenCV in this regard? I sincerely beg for some guidance! Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.