Skip to content

Camera calibration

Rafael Bailón edited this page May 19, 2015 · 1 revision

Camera calibration is done with v4l2stereo software.

Procedure

Done on Linux Mint 17.0 x86.

/dev/videoX sources will change depending if you have other cameras or not.

cd object\ recognition/v4l2stereo/
make
./v4l2stereo --dev0 /dev/video1 --dev1 /dev/video0 --calibrate "6 9 24"

v4l2stereo will start taking photos of chessboard pattern if it is detected. Our board has 6 x 9 squares of 24mm.

v4l2stereo-calibration

After 20 photos (can be changed with --calibrationimages argument) v4l2stereo generates calibration.txt file containing camera intrinsic, extrinsic and rectification parameters.

You can test the results running depth calculation with

./v4l2stereo --dev0 /dev/video1 --dev1 /dev/video0 --disparitymap --equal

v4l2stereo-depthmap

More information in https://code.google.com/p/sentience/wiki/MinoruWebcam.

Clone this wiki locally