Skip to content

Automatic Camera Calibration to estimate camera parameters

Notifications You must be signed in to change notification settings

JeelChatrola/AutoCalibration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoCalib

In this project, we implement famous Zhang's Camera Calibration method from scratch. We estimate parameters of the camera like the focal length, distortion coefficients and principle point is called Camera Calibration.

Requirements

  1. NumPy
  2. OpenCV
  3. SciPy
  4. tqdm

Implementation

Highlight of the major steps include from the paper: A Flexible New Technique for Camera Calibration - Zhang's Paper link

  1. Initial Parameter Estimation
  2. Solving for approximate intrinsic and extrinsic parameters (assuming no distortion)
  3. Non-linear Geometric Error Minimization using Least Squares Optimization

To run the code please clone the repo and execute:

python3 Camera_Calib_Zhang.py

one should place the images to be used for calibration in Calibration_Imgs/ folder. This will save results in the results/ folder along with intermediate images and final camera parameters.

Results

After comparison with CV2 library implementation we found out that results are extremely close (given that we only use low level distortion coefficients). In the third image Red circle shows original corners and green shows reprojected corners

Initial Reprojected Comparison

About

Automatic Camera Calibration to estimate camera parameters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages