Skip to content

An example of integrating Xbox One Kinect sensor "Kinect v2" with OpenCV for Unity.

Notifications You must be signed in to change notification settings

EnoxSoftware/KinectWithOpenCVForUnityExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Kinect With OpenCVForUnity Example

  • An example of reading color frame data from Kinect and adding image processing.
  • An example of reading multiple source frame data from Kinect and applying image processing only to the human body area.

Demo Video

Environment

Setup

  1. Setup "Kinect v2" device. (See Kinect for Windows)
  2. Download the latest release unitypackage. KinectWithOpenCVForUnityExample.unitypackage
  3. Create a new project. (KinectWithOpenCVForUnityExample)
  4. Import Kinect.2.0.1410.19000.unitypackage
  5. Import OpenCVForUnity.
    • Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
  6. Import the KinectWithOpenCVForUnityExample.unitypackage.
  7. Add the "Assets/KinectWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.

Examples

KinectColorFrameExample.cs
Converts ColorFrame acquired from "Kinect" to Mat of "OpenCV", perform image processing.

KinectMultiSourceFrameExample.cs
Converts BodyIndexFrame acquired from "Kinect" to Mat of "OpenCV", perform image processing only person.

About

An example of integrating Xbox One Kinect sensor "Kinect v2" with OpenCV for Unity.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages