Calibrate camera with opencv, how does it work and how do i have to move my chessboard

百般思念 提交于 2019-12-03 15:20:46

the camera calibration needs a seed of points to calculate the camera matrix and the the position of the central point of the camera, and the distortion matrices , if you want to use a chessboard you have to take in consideration its dimension(I never used the circles function because the detection of chessboard is easier ) , the dimension of the chessboard should be pair X unpair number so you can get a correct rotation matrix ! the calibration function needs minimum 8x set of chessboardCorners and ( I use 30 tell 50) it depends on how precise you want to be .the return value of the calibration function is the re-projection error this should be near to zero if the calibration is good. the cameraCalibration take a the size of used chessboards ( you can use different chessboardSize) and the dimension ( in mm or cm or even m etc.. ) your result will depend on your given dimension. By the way after getting the chessboardCorners you have to refines them with the function CornerSubPix you can set how good the refinement is in the function parameter.

In the internet you can find a lot docs about this subject.

http://www.ics.uci.edu/~majumder/vispercep/cameracalib.pdf

I hope it helps !

jayce

regarding the chessboard positions, I got best results with 25-30 images First I do 3 -4 images that show the chessboard at different distances full frame half 1/3 1/4 then I make sure to go to each corner, each center of each edge plus 4 rotation on each axis XYZ. When using a 640x480 sensor my reprojection error was mostly around 0.1 or even better

here a few links that got me in the right direction: How to verify the correctness of calibration of a webcam?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!