RepositoryProcessing
totovr

totovr/SimpleOpenNI

SimpleOpenNI library for Processing 3.5.2, 3.4, 3.3.7, 3.3.6 on MacOS for V1 and V2

169stars
39forks
22issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: skeleton

#1 Repository of the month

1
TINIX TRENDING·Topic: atom

#1 Repository of the month

1
TINIX TRENDING·Topic: kinect

#1 Repository of the month

SimpleOpenNI

Use Kinect 1 or 2 sensors with Processing 3

Example of skeleton tracking using KinectV2

Example of skeleton tracking using KinectV1

I update the driver to can use this library with Processing 3 and 2 with Kinect V1 and V2

Kinect V2 just works with USB 3.0

The instructions to Setup the Kinect are written for Mac OS High Sierra users.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • Processing IDE
  • A computer with OSX
  • Kinect V1
  • Kinect V2

Alternative:

  • Atom
  • Arduino IDE
  • Arduino board

Installing

Install the last stable version of Processing IDE, you can download it from this page:

For OSX you just need to unzip the folder and paste the App in the applications folder.

The library has compatibility with Kinect V2 just in Processing V3.5.2, V3.4, V3.3.7 and V3.3.6

Once you have downloaded the library unzip it and follow the next steps:

  1. Select the folder SimpleOpenNI and choose:

    Edit > Copy
    
  2. Go to the Finder

    Choose Go > Go to Folder... and enter “~/Documents/Processing/libraries/"
    

Without the quotation marks. Click OK.

  1. Press Cmd-V or choose Edit > Paste menu to put "SimpleOpenNI" in this location.

Test a program sample:

  1. Connect your Xbox Kinect motion sensor to your computer in an available USB port. Ensure the sensor is connected to a power source.

  2. Open Processing IDE

  3. Copy and paste the next example in the sketch:

import SimpleOpenNI.*;


SimpleOpenNI  context;

void setup()
{
  size(640, 480);
  context = new SimpleOpenNI(this);
  if (context.isInit() == false)
  {
    println("Can't init SimpleOpenNI, maybe the camera is not connected!");
    exit();
    return;
  }

  // mirror is by default enabled
  context.setMirror(true);

  // enable depthMap generation
  context.enableDepth();

  // enable ir generation
  context.enableRGB();
}

void draw()
{
  // update the cam
  context.update();

  background(200, 0, 0);

  // draw depthImageMap
  image(context.depthImage(), 0, 0);

  // draw irImageMap
  image(context.rgbImage(), context.depthWidth() + 10, 0);
}

This is one example of how to activate the deep camera of the Kinect.

  • For Processing 3.4 the examples are added directly in the library, the Remove_Background_RGB example just work with Kinect V1

  • For Processing 3.3.7 check this branch:

Kinect V1 and V2 Processing 3.

  • For Processing 3.3.6 check this branch:

Kinect V1 and V2 Processing 3.

  • For Processing 2.2.1 check this branch:

Kinect V1 Processing 2.

Also you can use the next text editor to build programs:

  • Atom
  • Open package manager -> Install new Package -> Processing

Use this package to run Processing Sketch inside Atom

Contributing

Please read CONTRIBUTING.md for details of the code of conduct, and the process for submitting pull requests to us.

Versioning

I use SemVer for versioning.

Author of SimpleOpenNI library:

Max Rheiner

Supporter

Antonio Vega Ramirez:

License

This project is licensed under The MIT License (MIT) - see the LICENSE.md file for details

Images

Video

Reference

This library was created by Max Rheiner and his Project:

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
SirLynix/obs-kinect

OBS Plugin to use a Kinect (all models supported) in OBS (and setup a virtual green screen based on depth and/or body detection).

502
Oct 31, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryProcessing
Spidoug/Kinect-Remold

Kinect Remold provides native runtimes and SynKinect Studio for first-generation Kinect models 1414, 1473 and Kinect for Windows 1517, plus Kinect v2 / Kinect for Xbox One, without storing downloaded SDKs, toolchains or generated binaries in the source tree.

64
Nov 6, 2026
RepositoryJavaScript
atom/atom

:atom: The hackable text editor

60.7k
Jan 3, 2023
RepositoryShell
sickcodes/Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.

53.0k
Nov 11, 2025
RepositoryShell
kholia/OSX-KVM

Run macOS on QEMU/KVM. With OpenCore + Monterey + Ventura + Sonoma support now! Only commercial (paid) support is available now to avoid spammy issues. No Mac system is required.

23.9k
Jan 26, 2026
RepositoryShell
drduh/macOS-Security-and-Privacy-Guide

Community guide to securing and improving privacy on macOS.

22.6k
Nov 27, 2026
RepositorySwift
Caldis/Mos

一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS

22.1k
Dec 2, 2026