https://github.com/reiiyuki/intel-realsense-hand-toolkit-unity
Intel Realsense Toolkit for Hand tracking and Gestural Recognition on Unity3D
https://github.com/reiiyuki/intel-realsense-hand-toolkit-unity
depth-camera gesture gesture-detection gesture-recognition hand-control hand-gestures hand-recognition hand-tracking intel realsense unity3d
Last synced: 8 months ago
JSON representation
Intel Realsense Toolkit for Hand tracking and Gestural Recognition on Unity3D
- Host: GitHub
- URL: https://github.com/reiiyuki/intel-realsense-hand-toolkit-unity
- Owner: ReiiYuki
- License: mit
- Archived: true
- Created: 2017-06-20T02:01:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T16:05:19.000Z (over 6 years ago)
- Last Synced: 2024-10-21T06:11:11.089Z (12 months ago)
- Topics: depth-camera, gesture, gesture-detection, gesture-recognition, hand-control, hand-gestures, hand-recognition, hand-tracking, intel, realsense, unity3d
- Language: C#
- Homepage:
- Size: 664 KB
- Stars: 85
- Watchers: 11
- Forks: 17
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Intel Realsense Hand Toolkit for Unity

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](https://github.com/ReiiYuki/Intel-Realsense-Hand-Toolkit-Unity/releases/download/1.1.0/Intel-Realsense-Hand-Toolkit-v1.1.0.unitypackage)
## Intel Realsense SDK
[Download Intel Realsense SDK](https://software.intel.com/en-us/realsense-sdk-windows-eol)
## 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](https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_hand_handling_gestures.html)
## Usage
### Hand Positioning
#### Initialize
```Cs
void Start()
{
GameObject.Find("DepthCameraManager").GetComponent().AddSubscriber(gameObject);
}
```#### Receive Hand Position
```Cs
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
```cs
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
```cs
void Start()
{
GameObject.Find("DepthCameraManager").GetComponent().AddSubscriber(gameObject);
}
```#### Method Pattern
* void On+`GestureName`()
* void On+`HandSide`+Hand+`GestureName`()#### Receive Gesture
```cs
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 LicenseCopyright (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™ SDK 2016 R2 Documentation](https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/)