> For the complete documentation index, see [llms.txt](https://leftover-ice.gitbook.io/resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leftover-ice.gitbook.io/resources/ros/perception/camera/camera-calibration.md).

# Camera Calibration

**1) Calibrate camera using camera\_calibration package**\
<http://wiki.ros.org/camera_calibration>

> **Calibration:** Cameras must be calibrated in order to relate the images they produce to the three-dimensional world. The [camera\_calibration](http://wiki.ros.org/camera_calibration) package provides tools to calibrate monocular and stereo cameras in your ROS system. A [CameraInfo wiki page](http://wiki.ros.org/image_pipeline/CameraInfo) provides a detailed description of the parameters used by the pipeline.

Intrinsic Calibration of single Cameras gives us the Camera Matrix which contains information on how to undistort warping in camera lenses.&#x20;

<figure><img src="https://1375086659-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPvjB9UuBzGwkyWVheSoO%2Fuploads%2Fw6Bnn88wzq0plZmZ7xW6%2Fimage.png?alt=media&amp;token=25e74750-2957-42de-857a-54efbf085fd2" alt="" width="375"><figcaption><p>Example of Undistortion using camera_info</p></figcaption></figure>

**2) Stereo Calibration using camera\_calibration package**

If you intend on using two front facing cameras to perform stereo vision to obtain depth information, you need to perform stereo calibration to obtain the transform between two cameras. This is known as extrinsic calibration. This can also be done using camera\_calibration package in ROS.&#x20;

For more info:

{% embed url="<https://wiki.ros.org/camera_calibration/Tutorials/StereoCalibration>" %}
