EXIF:

Full name is Exchangeable Image File Format

  • .JPG
  • .TIF
  • .WAV

EXIF tag include information of the camera and photo

  • Date and time information
  • Camera settings
  • A thumbnail (picture as icon)
  • Descriptions
  • Copyright information

Find intrinsic camera parameters:

  • EXIF has focal length f (in millimeters)
  • camera manual has pixel size

Camera calibration:

Purpose:

  • to determine geometric parameters of the image formation process

    Explicit camera calibration:

  • Use a calibration object with a known geometry

  • Write equations linking co-ordinates of the projected points,

and the camera parameters

  • From images of the calibration target
    • Intrinsic camera parameters
      • (depend only on camera characteristics)
    • Extrinsic camera parameters
      • (depend only on position camera)
    • In OpenCV, the calibration process finds fx, fy, ox, oy, along with the distortion parameters

image.png

Methods:

  1. Direct Approach (Tsai method)
  • Write projection equations in terms of all the parameters
    • That is all the unknown intrinsic and extrinsic parameters
  • Solve for these parameters using non-linear equations
  1. Projection Matrix Approach
  • Compute the projection matrix (the 3x4 matrix M)
  • Compute camera parameters as closed-form functions of M

both approaches work with same data, but the direct approach requires an extra step

All calibration methods:

  • Use patterns with know geometry or shape
  • Take multiple views of theses patterns
  • Match the information across the different views

Camera Parameters:

Intrinsic parameters (K matrix):

  • Focal length f
  • Pixel size in x and y directions: sx & sy
  • Principal point ox & oy

    Extrinsic parameters ([R | T] matrix):

  • Rotation matrix R

  • Translation matrix T

    Projection matrix:

    P = K [R | T]
    (3 by 4 matrix)
    image.png
    8. Camera Calibration - 图3

  • and the relationship between a image pixel and it’s corresponding world pixel is:

8. Camera Calibration - 图4
8. Camera Calibration - 图5

estimating the projection matrix:

solve Ax = 0 system with SVD

Decompose project matrix:

image.png
image.png

  • Find scale 8. Camera Calibration - 图8 by using unit vector 8. Camera Calibration - 图9
    • 8. Camera Calibration - 图10
  • Divide computed M by 8. Camera Calibration - 图11 to get a new M matrix
    • Then,

8. Camera Calibration - 图12
8. Camera Calibration - 图13 (i = 1, 2, 3)
with
8. Camera Calibration - 图14

  • Taking the dot products of q3 with q1 and q2 we find

    8. Camera Calibration - 图15
    8. Camera Calibration - 图16

  • Then fx and fy can be recovered:

image.png

  • and the rest of extrinsic parameters:

image.png

Reference:

  • wikipedia
  • handout of COMP4102: Introduction to Computer Vision from Carleton University School of Computer Science, 2019