Peru provides functionality for calibrating a camera or a stereo camera using only images of a checkerboard pattern as input. Peru also provides functionality for calculating disparity maps (depth maps) from a stereo image pair.