Giter Site home page Giter Site logo

xtion's Introduction

Xtion

Working in OSX Yosemite environment, I have not been able to use openframeworks with my Xtion device (ofxKinect does not work wit it, ofxOpenNI does not work with latest openframeworks version).

This repo contains everything you need to capture an Xtion point cloud (or kinect) sequence to an ONI file, with the possibility to extract each frames to PLY file format. A C++ script is present to convert PLY to PRT files, importable in Krakatoa.

It as been used on OSX using Yosemite.

Requirements

How to

When SimpleOpenNI examples work, you can open xtion_record.pde file.

Recording will save an ONI file while playing will replay a recorded ONI file.

The following keyboard keys are usable :

  • a to decrease MAX Z threeshold
  • z to increase MAX Z threeshold
  • q to decrease MIN Z threeshold
  • s to increase MIN Z threeshold
  • o to increase the captured number of points (heavily affects performance)
  • p to deacrease the captured number of points

Arrows could be used to move viewport.

Press SPACE BAR to finish the record (needed to save the total frame number !).

Using xtion_replay, you will be able to view your record.

If everything looks good, move to xtion_ply folder programm to convert each frame to PLY files (it can take some times depending on captured point number parameter you choosed).

Convert to PRT

A small C++ script is also present to allow conversion of PLY to PRT files. First you have to compile the script with the following command (-lz parameters for zlib flag) : g++ -lz ply_to_prt.cpp

Then, execute it with ./a.out

If you run out of memory, simply increase CHUNK variable by setting an higher number.

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.