Giter Club home page Giter Club logo

docker-camodocal's Introduction

CamOdoCal Docker Container

Docker container with the CamOdoCal camera calibration software.

Getting Started

Prerequisites

In order to build and run the docker container, the following is needed:

Installing

After cloning the repository, you only need to run the next command (UNIX systems):

./docker_helper.sh build

If you are using a Windows plaform, run the following command:

docker build camodocal:1.0 .

Usage

First, we should enable docker to use GUI. You only need to run the following command in your local host's terminal:

xhost +local:docker

Method 1

After the container is built; run the following command (note that you should in this repo's directory):

./docker_helper.sh run "CAMODOCAL_COMMAND"

where CAMODOCAL_COMMAND is a string with the instruction and parameters needed as defined in the CamOdoCal repository. For example:

./docker_helper.sh run "stereo_calib -w 8 -h 6 -s 0.06 --camera-model kannala-brandt -i /root/input_data -o /root/output_data"

The /input_data and /output_data directories are mounted to the docker container for the user to save the files needed to run these commands as well as their output. Please, be sure to add the /root parent directory when writing the path to these directories. You can run the previous command with the sample images given in this repository. You can always run the --help command to see a list of available parameters:

./docker_helper.sh run "intrinsic_calib --help"

Method 2

After the container is built; run the following command to start the docker image:

docker run --runtime=nvidia -it --rm  \
--env="DISPLAY" \
-e QT_X11_NO_MITSHM=1 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $HOME:/data \
$USER/camodocal:1.0

Now you are in the docker container, you can then run the following command to test:

cd camodocal/
intrinsic_calib -i data/images/ -p img --camera-model mei

In my own case, I record some images and run:

intrinsic_calib -w 9 -h 7 -s 100 -i cam_right/ -p img --camera-model kannala-brandt

Note that your local host's home directory is now mapped to the docker container's /data directory, so you can easily access your local host's files.

References

In case of using this software for research activities, please reference this repository as well as the following paper. See the full list of papers related to CamOdoCal in its repository):

- Lionel Heng, Paul Furgale, and Marc Pollefeys,
Leveraging Image-based Localization for Infrastructure-based Calibration of a Multi-camera Rig,
Journal of Field Robotics (JFR), 2015.

docker-camodocal's People

Contributors

arturokkboss33 avatar marquistj13 avatar

Watchers

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