ANSI C Implementation of Classical Camera Calibration Algorithms: Tsai and Zhang


Manuel E. L. Fernandez, Lucas Teixeira  and Marcelo Gattass


In this site we present free (LGPL Licence) ANSI C implementations of the three classical algorithms for camera calibration:

(1D)  Zhang , Z., “Camera Calibration with One-Dimensional Objects” by Zhengyou Zhang, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 26, no. 7, July 2004.

(2D)   “A Flexible New Technique for Camera Calibration” by Zhengyou Zhang.

(3D)   Tsai, R.Y., “An Efficient and Accurate Camera Calibration Technique for 3D Machine Vision”, CVPR’86 Proceeding, IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Miami Beach, FL, June 22-26, pp. 364-373, 1986.

For didactical reasons our implementation seeks to follow the corresponding papers as close as possible.

Download links:

  1. Source code with demo and documentation: Zhang1D, Zhang2D and Tsai3D.
  2. Zhang's 2D camera calibration: step by step (Description of the implantation) click here