Git Product home page Git Product logo

kinectwithopencvforunityexample's Introduction

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.

kinectwithopencvforunityexample's People

Contributors

enoxsoftware 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

Watchers

 avatar  avatar  avatar  avatar  avatar

kinectwithopencvforunityexample's Issues

Error - The type or namespace name 'Mat' could not be found

I bought the $95 openCV for unity asset and downloaded this example specifically to connect my Kinect to unity and use open cv processing on it. I started by importing the kinect asset pack and then the openCV for unity pack. Then I copied the example into assets and the warning pops up that it will not compile because the namespace name 'Mat' could not be found (are you missing a using directive or an assembly reference?). That message is displayed 5 times, and one shows for 'Size' could not be found.

I have tried googling but could not find a solution.

For reference i'm using the
kinect.2.0.1410.19000 (same as requested in readme)
openCV for Unity 2.4.3 (0.4.3 newer than requested in readme, do not know how to get an older version)

I was wondering if there was any suggestions you would have to get the code to work? I have been lost and nothing I have tried has worked.

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.