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.
- 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.)
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
We assume pinhole camera model with radial distortion.
Calibration results:
- Ceres-Solver
- Eigen3
- opencv4
(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
## 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
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.
We can leverage the detection robustness of the circular patterns, particularly for unconventional cameras, such as thermal cameras.
@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 },
}