Giter Site home page Giter Site logo

recording_openni2_primesense's Introduction

tools_openni2

Simple recording tool using OpenNI2 for Primesense cameras and structure sensor. Once the program starts, it will show 4 windows (or only 2 if it is a "only-depth" camera). The one named Limits will permit to set the x and y limits of the pointcloud (based on the x and y limit of the RGB image) and also set the limits of the depth. Depending on the camera this "z" max limit can be changed to permit changes between close and long ranged cameras.

The other 3 windows will show in real time the RGB feed from the camera (color window), the visual representation of the depth (depth window), and the visual representation of the registration of the valid depth to the color image (RGBD window).

During the execution, it is possible to use some keys to give commands to the program. You may use the following keys:

["Esc"|"q"|"Q"] To exit the program correctly " " The space key will start/stop saving the data into memory ["s"|"S"] To save the data in memory to the hard disk (it will create a folder)

The program will generate 1 folder with 5 subfolders:

  • depth: raw depth matrix in yml format. It was saved usin opencv and can be easily parsed using opencv again. (see notes)
  • depth_viz: a visualization of the depth values
  • pcl:organized point cloud files
  • rgb: the rgb images captured by the camera
  • rgbd: a visualization of the depth and color registration

Dependencies

Make sure to have the following packages installed

  • PCL 1.7
  • OpenCV
  • Openni 2.x (must have the environment variables set)
  • QT4
  • CMake

Building

Just run the following commands

mkdir build
cd build
cmake ..
make

Running

Just go to the bin folder and run viewer executable

Notes

The program was tested in Ubuntu 12.04 x64.

To retrieve the matrix from the yml file use

cv::Mat depth;
cv::FileStorage fs("0001.yml", cv::FileStorage::READ);
fs[""]  >> depth;

recording_openni2_primesense's People

Contributors

api55 avatar cvlabbonn 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.