https://github.com/enoxsoftware/kinectwithopencvforunityexample
An example of integrating Xbox One Kinect sensor "Kinect v2" with OpenCV for Unity.
https://github.com/enoxsoftware/kinectwithopencvforunityexample
kinect kinect-sensor kinect-v2 opencv unity
Last synced: about 1 year ago
JSON representation
An example of integrating Xbox One Kinect sensor "Kinect v2" with OpenCV for Unity.
- Host: GitHub
- URL: https://github.com/enoxsoftware/kinectwithopencvforunityexample
- Owner: EnoxSoftware
- Created: 2017-02-15T08:57:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-16T13:33:09.000Z (about 5 years ago)
- Last Synced: 2025-03-30T22:01:23.783Z (about 1 year ago)
- Topics: kinect, kinect-sensor, kinect-v2, opencv, unity
- Language: C#
- Homepage:
- Size: 33.2 KB
- Stars: 37
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
[](https://www.youtube.com/watch?v=_dvsSo8rzA8)
## Environment
- Windows 10
- Kinect for Xbox One ("Kinect v2") + Kinect Adapter for Windows
- Unity >= 2018.4.28f1+
- [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.4.3+
- Kinect.2.0.1410.19000.unitypackage contained in [KinectForWindows_UnityPro_2.0.1410.zip](https://go.microsoft.com/fwlink/p/?LinkId=513177)
## Setup
1. Setup "Kinect v2" device. (See [Kinect for Windows](https://developer.microsoft.com/en-us/windows/kinect/))
1. Download the latest release unitypackage. [KinectWithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/KinectWithOpenCVForUnityExample/releases)
1. Create a new project. (KinectWithOpenCVForUnityExample)
1. Import Kinect.2.0.1410.19000.unitypackage
1. Import OpenCVForUnity.
* Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
1. Import the KinectWithOpenCVForUnityExample.unitypackage.
1. Add the "Assets/KinectWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
## Examples
**[KinectColorFrameExample.cs](/Assets/KinectWithOpenCVForUnityExample/KinectColorFrameExample/KinectColorFrameExample.cs)**
Converts ColorFrame acquired from "Kinect" to Mat of "OpenCV", perform image processing.
**[KinectMultiSourceFrameExample.cs](/Assets/KinectWithOpenCVForUnityExample/KinectMultiSourceFrameExample/KinectMultiSourceFrameExample.cs)**
Converts BodyIndexFrame acquired from "Kinect" to Mat of "OpenCV", perform image processing only person.