Coder Social home page Coder Social logo

cameracalibration's Introduction

Camera Calibration

This project implements Zhengyou Zhang's "A Flexible New Technique for Camera Calibration" (2000).

Wilhelm Burger's "Zhang's Camera Calibration Algorithm: In-Depth Tutorial and Implementation" (2016) provided substantial aid to my understanding of details in the original paper.

Usage

python calibrate.py --data_dir=<data_directory_path>

  • data_dir - Path to the directory containing the control point file and the image point files. Each file must contain an even number of space-separated values of <x, y> points.

Dependencies

  • Python - Tested on version 3.7.0
  • Matplotlib - Tested on version 2.0.2
  • NumPy - Tested on version 1.15.0
  • OpenCV - Tested on version 3.4.1
  • Scipy - Tested on version 0.19.1

Results

Here is a comparison with Zhang's original results (available here):

Implementation Ground Truth
fx 832.499 832.500
fy 832.529 832.530
s 0.204503 0.204494
px 303.959 303.959
py 206.585 206.585
q1 -0.228602 -0.228601
q2 0.190355 0.190353

fx and fy are the intrinsic focal length parameters, s represents skew, and px and py are the principal point offsets. q1 and q2 are distortion model coefficients for the radial distortion model.

To visualize the calibration results, here are the calculated world- and camera-centric extrinsic parameters from the original dataset:

Camera-Centric

World-Centric

cameracalibration's People

Contributors

goldbema avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cameracalibration's Issues

about the camera principal axis skew factor 's'

thanks for this code, it's perfect, but I calibrate camera using 'calibrateCamera' function in Opencv,or using Matlab Camera Calibrator App,I can't get the skew factor 's ' in camera intrinsic matric,I don't know if it's precise enough without 's'.

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.