Giter Club home page Giter Club logo

discocal's Introduction

Unbiased Estimator for Distorted Conics in Camera Calibration (CVPR24, highlight)

For decades, the checkerboard pattern has been the go-to method for camera calibration, providing only pixel-level precision. But what if we could improve accuracy even further? This paper reveals the power of the circular pattern: a game-changer offering subpixel precision to meet challenges even from unconventional visual sensors.

[Paper][Video][BibTex]

News

  • 24.04.17. 📍We update circular pattern detector! Now, you don't need to tune hyperparameters for detections
  • 24.04.05. 🎉 Discocal is selected for highlight poster. (11.9% of accepted papers, 2.8% of total submissions.)

The core limitation for conic in camera calibration

Sub-pixel accuracy and detection robustness are virtues of the conic features. But why do we use a checkerboard, not a circular pattern?

😢 Conic is not conic anymore under distortion!!

As shown below, the circle center is not projected to the centroid of the distorted ellipse under perspective transformation and distortion.

Without considering geometery of the distorted ellipse, existing circular pattern-based calibration methods are biased, which leads low calibration accuracy than a checkerboard pattern.

📌 Our unbiased estimator completes the missing piece in the conic-based calibration pipeline


How to use

0. Projection model

We assume pinhole camera model with radial distortion.

$$\begin{aligned} s\begin{bmatrix} x_n\\ y_n \\ 1 \end{bmatrix} &= \begin{bmatrix} \boldsymbol{r}_1 & \boldsymbol{r}_2 & \boldsymbol{r}_3 & \boldsymbol{t} \end{bmatrix}\begin{bmatrix} x_w\\ y_w \\ z_w \\ 1 \end{bmatrix} \\\ k &= 1+ \sum_{i=1}^{n_d}d_i(x_n^2+y_n^2)^i\\\ \begin{bmatrix} u\\ v \end{bmatrix} &= \begin{bmatrix} f_x & \eta & c_x \\\ 0 & f_y & c_y \end{bmatrix} \begin{bmatrix} kx_n \\ ky_n \\ 1 \end{bmatrix} \end{aligned}$$

Calibration results: $f_x, f_y, c_x, c_y, \eta, d_1, d_2, ... d_n$

1. Dependency

Option 1: Install bellow packages

Option 2: Use docker

(Recommended) Build a docker image using the dockerfile.

docker build -t chaehyeonsong/discocal .  -f dockerfile

(Only for Ubuntu) or use official docker image.

docker pull chaehyeonsong/discocal:latest

2. Bulid and Run

## Build
cd [your path]/discocal
mkdir build
cd build
cmake ..
make

## Run
./main.out [n_x] [n_y] [n_d] [img_dir_path] [radius(m)] [circle distance(m)]
(ex) ./main.out 4 3 3 ../imgs/ 0.035 0.09

😮 Caution: Check detection results!

To get high-quality results, plz check all pixels in the circle are correctly detected like this.

If you don’t want to check images, turn off the “check_detection_results” option in "main.cpp".

Parameters(for experts):

  • fullfill_threshold: the difference between real area and estimated area resulting from ellipse fitting
  • eccentricity_threshold: the length ratio between a blob's major and minor axis. You can refine these parameters in the TargetDetector class.

Application: Thermal Camera calibration

We can leverage the detection robustness of the circular patterns, particularly for unconventional cameras, such as thermal cameras.

BibTex

@INPROCEEDINGS{chsong-2024-cvpr,  
    AUTHOR = { Chaehyeon Song and Jaeho Shin and Myung-Hwan Jeon and Jongwoo Lim and Ayoung Kim },  
    TITLE = { Unbiased Estimator for Distorted Conic in Camera Calibration },  
    BOOKTITLE = { IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) },  
    YEAR = { 2024 },  
    MONTH = { June. },  
    ADDRESS = { Seattle },  
}

discocal's People

Contributors

chaehyeonsong avatar ayoungk avatar myunghwanjeon 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.