Git Product home page Git Product logo

kinect-openni-bvh-saver's Introduction

kinect-openni-bvh-saver

This project is based on OpenNI2, NITE2, and OpenCV2, it will automatically save many skeleton animation clips to bvh files.

Then you can import the bvh files into Blender or other softwares to smooth animation curves. I use Blender's default smooth key setting to smooth all rotation channels, the results is acceptable.

You can turn your body around 360 degrees in this project, I am very satisfied with the result.

Though the project is developed on macOS, you can port it to Linux, Windows easily, for the source code is portable.

Download windows release from: https://drive.google.com/file/d/0B37dehusTo2MTWJEdkdrd29pLWM/view?usp=sharing

Linux port hint:
Ubuntu Kinect C++ Development Enviroment.

Windows port hint:
1.Download Kinect for Windows SDK 1.8, install the SDK.
2.Download OpenNI 2 SDK Binaries from https://structure.io/openni, install the SDK.
3.Download NiTE-Windows-x64-2.2.zip or NiTE-Windows-x86-2.2.zip, install the SDK.
4.Download opencv 2.4.11, install the SDK.
5.Build the source code with VS2010.

Click the image to watch kinect mocap demo:
Kinect Mocap Demo

Requirements

macOS 10.11
kinect for xbox 360
OpenNI2
NITE2
OpenCV2
Xcode 7.3.1

How to use

1.Git clone openni-nite-opencv-xcode.
2.Install libpng, OpenNI2, OpenCV2 from source code, via macport or homebrew.
3.Copy all the source codes to 'openni-nite-opencv-xcode/OpenNI+NITE+OpenCV', and add them to the project.
4.Copy /usr/local/lib/OpenNI2-FreenectDriver/libFreenectDriver.0.5.0.dylib to 'openni-nite-opencv-xcode/OpenNI2/Drivers/libFreenectDriver.dylib', then add the filename to Xcode's 'Targets->Build Phases->Copy Files(5 items)', ensure that the Subpath is 'OpenNI2/Drivers'.
5.Plug kinect for xbox 360 into USB port.
6.Open the project, build and run.

Note: If you failed to run, just try again, the Kinect driver for macOS is not stable.

When the Kinect sensor detects your body, the app will start recording, after the Kinect sensor lose your body, the app will stop recording, the BVH files will be saved to '../data'.

Enter the Kinect camera's viewport, perform actions, then leave the viewport. Repeat the above steps, you can record many skeleton animation clips at one time.

Thanks

1.Derek Hendrickx's KinectMotionCapture
2.Kyle Weicht's 3D math library
3.Birdy's Notebook
4.sunchy's Kinect_to_BVH_Console
5.Rishad Bharucha's openni-nite-opencv-xcode

License

The MIT License (MIT)

kinect-openni-bvh-saver's People

Contributors

meshonline avatar

Watchers

James Cloos avatar Rado avatar

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.