[PDF] [PDF] Lecture 53 Camera calibration - UiO

A radial distortion model can look like this OpenCV cv::undistort(img, undist_img, P, distCoeffs); cv::undistortPoints(pts,undist_pts,P,distCoeffs); • The effect of 



Previous PDF Next PDF





[PDF] Lecture 2 – Camera Models and Calibration - Automatic Control

One of the first introduction of the tangential distortion model OpenCV is a computer vision library originally developed by Intel, now available on 



[PDF] Robust Radial Distortion from a Single Image - Asian Institute of

the pinhole camera model, but lens distortion with off-the-shelf cam- we used OpenCV's Canny and contour extraction algorithms with a low gradient threshold  



[PDF] Lecture 53 Camera calibration - UiO

A radial distortion model can look like this OpenCV cv::undistort(img, undist_img, P, distCoeffs); cv::undistortPoints(pts,undist_pts,P,distCoeffs); • The effect of 



[PDF] Accuracy evaluation of optical distortion calibration by digital image

29 jui 2017 · order, third-order radial distortion models and the eight-parameters dis- tortion model from Open Source Computer Vision Library(OpenCV)



[PDF] The effects of lens distortion calibration patterns on the accuracy of

compare lens distortion modelling techniques and calibration patterns in a unified 20 over the method used in OpenCV are consistently obtained This work 



[PDF] Non-parametric Models of Distortion in Imaging Systems by Pradeep

OpenCV calibration toolkit [5] and Bouguet's Matlab calibration toolkit [19], are based on this technique Calibrating a lens distortion model in a photogrammetric  



[PDF] A real-time camera calibration system based on OpenCV

OpenCV based camera calibration system, and developed and implemented in the imaging must be established, the geometric model parameters is camera 

[PDF] opencv radial and tangential distortion

[PDF] opencv python tutorials documentation pdf

[PDF] opening business account

[PDF] openldap 2.4 setup

[PDF] openldap administrator's guide

[PDF] openldap create database

[PDF] openldap lib

[PDF] openldap mdb

[PDF] openldap sdk

[PDF] operant conditioning

[PDF] operating modes of 8086 microprocessor

[PDF] operation research question bank with answers pdf

[PDF] operation research questions and answers pdf

[PDF] operational process of state prisons

[PDF] operations manager next step

Lecture 5.3

Camera calibration

Thomas Opsahl

Introduction

2

•For finite projective cameras, the correspondence between points in the world and points in the image

can be described by the simple model 0݂ 001

•This camera model is typically not good enough for accurate geometrical computations based on images

=1

The image

World frame

Introduction

•Since light enters the camera through a lens instead of a pinhole, most cameras suffer from some kind of distortion •This kind of distortion can be modeled and compensated for

A radial distortion model can look like this

ݔො=ݔ1+ߢ

ො=ݕ1+ߢ where ߢ and ߢ are the radial distortion parameters X Y Z x y

No radial distortion

X Y Z x y

Barrel distortion

X Y Z x y

Pincushion distortion

3

Introduction

•When we calibrate a camera we typically estimate the camera calibration matrix ܭ together with distortion parameters does not in general describe the correspondence between points in the world and points in the image •Instead it describes the correspondence between points in the world and points in a undistorted image - an image where the distortion effects have been removed

Does not satisfy ࢛෥=ܴܭ

Satisfies ࢛෥=ܴܭ

Image from a non

-projective camera

Equivalent projective

-camera image

Images: http://www.robots.ox.ac.uk/~vgg/hzbook/

4

Undistortion

•So earlier when we estimated homographies between overlapping images, we should really have been

working with undistorted images! •How to undistort? -Matlab [undist_img,newOrigin] = undistortImage(img,cameraParams); undistortedPoints = undistortPoints(points,cameraParams); -OpenCV cv::undistort(img, undist_img, P, distCoeffs);

•The effect of undistortion is that we get an image or a set of points that satisfy the perspective camera

model ࢛ much better than the original image or points -So we can continue working with the simple model 5

Camera calibration

•Camera calibration is the process of estimating the matrix ܭ we use to describe radial/tangential distortion •We have seen how ܭ can be found directly from the camera matrix ܲ •The estimation of distortion parameters can be baked into this •One of the most common calibration algorithms was proposed by Zhegyou Zhang in the paper ''A

Flexible New Technique for Camera Calibration

'' in 2000 -OpenCV: calibrateCamera -Matlab: Camera calibration app •This calibration algorithm makes use of multiple images of a asymmetric chessboard 6

Zhang's method in short

•Zhang's method requires that the calibration object is planar •Then the 3D-2D relationship is described by a homography 123
01111

XuXXYv KK Y HYéù

12 rrrt rrt 7

Zhang's method in short

•This observation puts 2 constraints on the intrinsic parameters due to the fact that ܴ •Where ܪ and ܭ 1 1212
11

11 2211 22

00 TTT

T TTT TT

KK KK KK

þîrrh h

rr rr h h h h 8

Zhang's method in short

00 22 2

11 12 13

20010

21 22 23222 222 2

31 32 33

220000

00 00

222 2 22 2

1 1 1 y uuvuv y T uvuv vuv v yy y uvuv v uv v vs ufs fffff bbbsvs ufvssBKK b b bff ff f ff fbbb svs uf vs uf vs uf vv ff ff f ff f 9

Zhang's method in short

•If we denote •Thus we have 11 12 21 22
31 13
32 23
33
then ij ij ij ij TT iji j ij ij ij ij ij ij hh hh hh hhBhh hh hh hh hhéù êú+êúêú+êúêúëûvh h vb

1 21 212

1 1 2 21 1 2 211 22

000 0 TT T

T TT TTT

B

BBüì üé ù

þî þë ûrr

h hvbrr rr h h h h v v 10

Zhang's method in short

•Given ܰ of linear equations which can be solved by SVD when ܰ •From the estimated ࢈ we can recover all the intrinsic parameters •The distortion coefficients are then estimated solving a linear least-squares problem •Finally all parameters are refined iteratively •More details in Zhang's paper 11

Camera calibration in practice

•OpenCV -Camera calibration tutorial -We'll test it out in the lab •Matlab -App: Camera Calibrator -This opens a new window 12

Camera calibration in practice

•Add Images and specify the size of the chessboard squares -Chessboard detection starts 13

Camera calibration in practice

•Add Images and specify the size of the chessboard squares -Chessboard detection starts •Inspect the correctness of detection and choose what to estimate -2/3 radial distortion coeffs? -Tangential distortion? -Skew? •Calibrate 14

Camera calibration in practice

•Add Images and specify the size of the chessboard squares -Chessboard detection starts •Inspect the correctness of detection and choose what to estimate -2/3 radial distortion coeffs? -Tangential distortion? -Skew? •Calibrate •Export to a Matlab variable 15

Camera calibration in practice

•Add Images and specify the size of the chessboard squares -Chessboard detection starts •Inspect the correctness of detection and choose what to estimate -2/3 radial distortion coeffs? -Tangential distortion? -Skew? •Calibrate •Export to a Matlab variable 16quotesdbs_dbs8.pdfusesText_14