Git Product home page Git Product logo

eowjd0512 / fisheye-calib-adapter Goto Github PK

View Code? Open in Web Editor NEW
37.0 1.0 3.0 1.11 MB

Fisheye-Calib-Adapter: An Easy Tool for Fisheye Camera Model Conversion

Home Page: https://www.linkedin.com/in/sangjun-lee-128038228/

License: MIT License

CMake 0.78% C++ 99.22%
calibration ceres-solver eigen fisheye fisheye-camera fisheye-image fisheye-lens-distortion kalibr opencv ucm double-sphere eucm fisheye-camera-calibration kannala-brandt ocamcalib woodscape fca fisheye-calib-adapter

fisheye-calib-adapter's Introduction

Fisheye-Calib-Adapter

Overview

The Fisheye-Calib-Adapter is a conversion tool designed to facilitate seamless transitions between different fisheye camera models. This tool is invaluable for applications in fields like robotics and autonomous driving, where fisheye cameras are increasingly common. It simplifies the process of camera model conversion, eliminating the need for cumbersome recalibrations. The adapter is user-friendly, straightforward, yet precise, offering conversion capabilities for a broader range of models compared to existing tools. It ensures that converted models function correctly in real-world applications such as SLAM, allowing researchers to easily translate input parameters into output parameters without the need for an image set or any recalibration processes.

Paper

The pre-print paper related to this project can be found at:

Fisheye-Calib-Adapter: An Easy Tool for Fisheye Camera Model Conversion

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

Supported Camera Models

The Fisheye-Calib-Adapter supports a wide range of fisheye camera models, including:

  • UCM (Unified Camera Model)
  • EUCM (Enhanced Unified Camera Model)
  • DS (Double Sphere)
  • KB (Kannala-Brandt)
  • OCamCalib
  • RadTan (Radial-Tangential Distortion Model)

For those looking to implement a customized camera model, you can utilize the interface provided in 'include/model/custom.hpp'. This allows for the extension and adaptation of the Fisheye-Calib-Adapter to meet specific requirements or to incorporate unique camera models not originally covered by the standard implementation.

Requirements

The system requires the following libraries:

  • Eigen
  • OpenCV
  • Ceres Solver
  • yaml-cpp

Setup

To set up the environment, follow these steps using Docker:

  1. Build the Docker image:
docker build -t fca -f dockerfile/DockerFile .
  1. Set display permissions for Docker and run the container:
xhost +local:docker
docker run -it -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd):/workspace fca

Building the Project

To build the project, execute the following commands:

mkdir build
cd build
cmake ..
make -j 4

Running the Tool

To run the tool, use the following command:

./main example/config.yml

You can figure out the input-output model in the example/config.yml described as below

Configuration File Description

The config.yml file should include the following parameters:

  • dataset_path: The root path where the fisheye model is stored.
  • input_model, output_model: The input and output models you wish to convert.
  • image_name: The name of the image to apply if you want, which must be located within dataset_path.
  • show_image: Set to true if you want to display the image.
  • sample_point: The number of point samples.
  • result_path: The path where the output model will be stored.
  • save_result: Set to true to save the output model.
  • display_optimization_progress: Displays the optimization process if set to true.
  • evaluation: Set to true to perform evaluation (calculates reprojection error, parameter error, RMSE/SSIM if an image is set).

fisheye-calib-adapter's People

Contributors

eowjd0512 avatar

Stargazers

Eunseong Jang avatar Nical avatar Ryohei Sasaki avatar Guillaume Caron avatar  avatar Jeffrey Wardman avatar davci avatar  avatar zzh avatar Juwon Kim avatar Ma avatar Gyubeom Im avatar Vineet Pandey avatar Daisuke Nishimatsu avatar He Rong avatar Martin Valgur avatar  avatar Muhammad Haritsah Mukhlis avatar Andrey Penkovskiy avatar Daniel Eneh avatar Vishal Prabhu avatar Charlie avatar Vinod Khare avatar Andre Nguyen avatar hgy_rick avatar Matthew avatar Tobias Cornille avatar AniketDhar avatar TaeYoung Kim avatar Dusan Svilarkovic avatar meliortony avatar james.yookh avatar 庄庭达 avatar  avatar Ingee Hong avatar Dongwon Shin avatar revolutionaer avatar

Watchers

 avatar

fisheye-calib-adapter's Issues

Segmentation fault

Hey,

first of all, thanks for this repository. I was looking for something like this for a long time and found it by accident.

I get a segmentation fault when I change the output model inside of the config.yml to OcamCalib and run
./main example/config.yml

Anything I can do about it?

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.