Giter VIP home page Giter VIP logo

opencv-rgbdodometry's Introduction

RGBD-Odometry (Visual Odometry based RGB-D images)

Requirement

OpenCV >= 3.0

Setup

Download RGB-D dataset from TUM or KTTI

main.cpp will read the path of color and depth images from ./assoc.txt, then run OpenCV RgbdOdometry to compute visual odometry

The format of assoc.txt looks like:

timestamp1 rgb/[color_image_filename1] timestamp1 depth/[depth_image_filename1]
...
timestampN rgb/[color_image_filenameN] timestampN depth/[depth_image_filenameN]

You should change camera paramerts at the top of main.cpp

#define FOCUS_LENGTH 525.0
#define CX 319.5
#define CY 239.5

Build & Run

For the first time, you should download the dataset. You can use the below command

$ python tools/download_dataset.py

Start building

$ mkdir -p build; cd build

$ cmake ..; make

Start running

$ cd [Opencv-RgbdOdometry]

Create assoc.txt having synchronized rgb and depth images

$ cd rgbd_dataset_freiburg2_pioneer_slam3

$ python associate.py rgb.txt depth.txt > assoc.txt

$ ../build/rgbd-odometry

Demo video

Demo video

Demo video

opencv-rgbdodometry's People

Contributors

tzutalin avatar

Watchers

 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.