Skip to content

telegie/librgbd

Repository files navigation

librgbd

librgbd is a C++ library for RGBD videos and is based on libmatroska of the .mkv files. Its Python binding is provided as pyrgbd.

Docs | Viewer

MIT License Build Status

Core features of librgbd include:

  • Compression of color using VP8.
  • Compression of depth using a depth video codec.
  • Storage and access of IMU information and camera pose in a well-defined and documented coordinate system.
  • Storage and access of per-frame camera calibration information (i.e., ARKit calibration support).
  • Mapping/unmapping of depth pixels to/from 3D space with lens distortion taken into account.
  • Support of multiple camera parameter sets: Azure Kinect, iOS (AVFoundation and ARKit), and pinhole.
  • Undistortion of videos with lens distortion.
  • Compatibility with 2D video players. For example, VLC player can play the color and audio tracks of our .mkv files.

While the easiest way to capture our .mkv files is using Telegie (https://apple.co/3qaycil), librgbd aims and is designed to support RGBD videos recorded from any RGBD camera or application.

Usage

Python via Pypi (Mac and Linux)

  • pip install pyrgbd

C++ via Source

  • Run boostrap.py
  • Add to your project via CMake add_subdirectory.

Python via Source

  • python boostrap.py
  • pip install -e .

Shortest Path to Try

pip install pyrgbd
cd {path/to/librgbd/examples/python}
pip install -r requirements.txt
python download.py -i https://telegie.com/posts/DTosAKtQuvc -o cat.mkv 
python opencv_imshow.py -i cat.mkv

See tutorial documentation for explanation of the above.