Skip to content

DayenaJeong/lens-calibrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Camera Calibration & Lens Distortion Correction

A simple camera calibration and distortion correction project using OpenCV.
It extracts chessboard corners from images, calculates camera intrinsics, and performs lens distortion correction.


Chessboard Information

  • ๋‚ด๋ถ€ ์ฝ”๋„ˆ ์ˆ˜: 9 ร— 6 (๊ฐ€๋กœ 10์นธ ร— ์„ธ๋กœ 7์นธ)
  • ์บ˜๋ฆฌ๋ธŒ๋ ˆ์ด์…˜์— ์‚ฌ์šฉ๋œ ํ”„๋ ˆ์ž„ ์ˆ˜: ์ด 26์žฅ

Camera Calibration Results

fx = 1662.27  
fy = 1663.99  
cx = 952.06  
cy = 542.80
  • Distortion Coefficients (k1, k2, p1, p2, k3)
[0.2060, -0.5026, -0.00009, -0.00277, -0.4573]
  • RMSE (Reprojection Error): 0.0548

Distortion Correction Demo

Before After

์™œ๊ณก๋œ ์ด๋ฏธ์ง€๋ฅผ ๋ณด์ •ํ•˜์—ฌ, ๊ณก์„ ์ด ํŽด์ง€๊ณ  ๊ฒฉ์ž๊ฐ€ ๋”์šฑ ์ •๋ ฌ๋˜์—ˆ์Œ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


๐Ÿ›  How to Run

# ์นด๋ฉ”๋ผ ์บ˜๋ฆฌ๋ธŒ๋ ˆ์ด์…˜ ์ˆ˜ํ–‰
python3 camera_calibration.py

# ๋ Œ์ฆˆ ์™œ๊ณก ๋ณด์ •
python3 distortion_correction.py

๐Ÿ“‚ frames/ ํด๋”์— ์บ˜๋ฆฌ๋ธŒ๋ ˆ์ด์…˜์šฉ ์ด๋ฏธ์ง€(.jpg)๋ฅผ ๋„ฃ๊ณ  ์‹คํ–‰ํ•ด์ฃผ์„ธ์š”.

About

Camera calibration and lens distortion correction using OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages