Giter Site home page Giter Site logo

rs_bag2image's Introduction

rs_bag2image

Graphic Overview

This is convert tool that works on cross-platform (Windows, Linux, MacOS) for RealSense.
This tool converts all data of each stream types (Color, Depth, Infrared) that contained in bag file to image file.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have a Linux/Mac/Windows machine with a recent version of compatible OS.
  • You have installed the following software:
    • RealSense SDK 2.x (librealsense v2.x) - Installation Guide
    • OpenCV 3.4.0 (or later) - Installation Guide
    • CMake 3.7.2 (or later) - You can install it using: sudo apt install cmake
    • GCC 5.3 (or later) - You can install it using sudo apt install build-essential

Installing rs_bag2image

To install rs_bag2image, follow these steps:

  1. Clone the repo: git clone https://github.com/UnaNancyOwen/rs_bag2image
  2. Navigate to the cloned repository: cd rs_bag2image
  3. Create a new directory for the build: mkdir build && cd build
  4. Use CMake to generate the makefile: cmake ..
  5. Build the project: make

Using rs_bag2image

./rs_bag2image -b="/path/to/your/file.bag" -s=true -d=true

Output

rs_bag2image.exe
file.bag
file
  |-Color
  |   |-000001.jpg
  |   |-000002.jpg
  |
  |-Depth
  |   |-000001.png
  |   |-000002.png
  |
  |-Infrared 1
  |   |-000001.jpg
  |   |-000002.jpg

Option

option description
-b input bag file path. (requered)
-s enable depth scaling for visualization. false is raw 16bit image. (bool)
-q jpeg encoding quality for color and infrared. [0-100]
-d display each stream images on window. false is not display. (bool)

License

Copyright © 2018 Tsukasa SUGIURA
Distributed under the MIT License.

Contact

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.