Calibrate Camera

Calibrate camera view to real world distances

Overview

Calibrate Camera is designed to adjust the camera view to match real-world distances accurately. This functionality is useful for applications requiring precise distance measurements from video data. By ensuring the camera's view is correctly calibrated, users can rely on the accuracy of distance measurements within the video feed, enhancing the application's reliability and effectiveness.

The output of this node is used by Speed Estimation node.

Inputs & Outputs

  • Inputs : 1, Media Format : Raw Video
  • Outputs : 1, Media Format: Raw Video
  • Output Metadata : Presence Information

Properties

PropertyDescriptionTypeDefaultRequired
roi_labelsCalibration square labelsstringcalibrationNo
roisDraw a 4-point square ROI on the ground, such that it's length in real world is equal to calibration Length specified below. Conditional on roi_labels. Format: comma-separated normalized x,y coordinate pairs; separate multiple polygons with semicolons (for example, 0.1,0.1,0.9,0.1,0.9,0.9).string0.25,0.25,0.25,0.75,0.75,0.75,0.75,0.25No
roi_sizeReal-world length of the square. Range: minimum 1, maximum 100.0. Step: 1.integer5Yes
roi_size_unitsLength calibration unit. Options: Foot (ft); Meter (m).enumftNo
display_roiDisplay calibration grid?boolfalseNo

Output Metadata

The fields below are declared by this node's metadata schema; the JSON values are representative examples.

PathTypeDescription
nodes.<node_id>.homographyarrayTwo-dimensional array containing the camera calibration homography matrix.
nodes.<node_id>.homography_unitsstringMeasurement units used by the calibration homography.
nodes.<node_id>.typestringIdentifies the node type that produced this metadata.

JSON example

{
  "nodes": {
    "calibrate_camera1": {
      "homography": [],
      "homography_units": "value",
      "type": "calibrate_camera"
    }
  }
}

Did this page help you?