v1

latestOpenAPI 3.0.3Apache 2.02026-07-175678720.5 KB
config

Gets calibration config from database

get/config/calibration

Query parameters

sensorIdstring
emptyIfNotFoundboolean

If set to true, empty calibration will be returned when calibration config is not found.

Response

Successful Operation.

versionstring required
osmURLstring required
calibrationType'geo' | 'cartesian' | 'image' required

Example response

{
  "version": "v1",
  "osmURL": "URL",
  "calibrationType": "cartesian",
  "sensors": [
    {
      "type": "camera",
      "id": "cam1",
      "coordinates": {
        "x": 1,
        "y": 1,
        "z": 1
      },
      "translationToGlobalCoordinates": {
        "x": 1,
        "y": 1,
        "z": 1
      },
      "scaleFactor": 1,
      "attributes": [
        {
          "name": "source",
          "value": "vst"
        }
      ],
      "group": {
        "name": "bev-sensor-1",
        "type": "bev",
        "origin": [
          1
        ],
        "dimensions": [
          1
        ],
        "alias": "area-1"
      },
      "region": {
        "placeLevel": "building",
        "origin": [
          1
        ],
        "dimensions": {
          "length": 1,
          "width": 1
        }
      },
      "place": [
        {
          "name": "building",
          "value": "warehouse"
        }
      ],
      "imageCoordinates": [
        {
          "x": 1,
          "y": 1
        }
      ],
      "globalCoordinates": [
        {
          "x": 1,
          "y": 1,
          "z": 1
        }
      ],
      "intrinsicMatrix": [
        [
          2
        ]
      ],
      "extrinsicMatrix": [
        [
          3
        ]
      ],
      "cameraMatrix": [
        [
          4
        ]
      ],
      "homography": [
        [
          5
        ]
      ],
      "rois": [
        {
          "id": "buffer_zone_1",
          "type": "buffer_zone",
          "roiCoordinates": [
            {
              "x": 1,
              "y": 1
            }
          ],
          "restrictedObjectTypes": [
            "Person"
          ],
          "confinedObjectTypes": [
            "Fourier_GR1_T2_Humanoid"
          ]
        }
      ],
      "tripwires": [
        {
          "id": "tripwire-id-1",
          "wire": {
            "p1": {
              "x": 1,
              "y": 1
            },
            "p2": {
              "x": 1,
              "y": 1
            }
          },
          "direction": {
            "p1": {
              "x": 1,
              "y": 1
            },
            "p2": {
              "x": 1,
              "y": 1
            }
          }
        }
      ]
    }
  ],
  "rois": [
    {
      "id": "buffer_zone_1",
      "type": "buffer_zone",
      "roiCoordinates": [
        {
          "x": 1,
          "y": 1
        }
      ],
      "sensors": [
        "cam1"
      ],
      "groups": [
        "bev-sensor-1"
      ],
      "restrictedObjectTypes": [
        "Person"
      ],
      "confinedObjectTypes": [
        "Fourier_GR1_T2_Humanoid"
      ]
    }
  ],
  "tripwires": [
    {
      "id": "tripwire-id-1",
      "wire": {
        "p1": {
          "x": 1,
          "y": 1
        },
        "p2": {
          "x": 1,
          "y": 1
        }
      },
      "direction": {
        "p1": {
          "x": 1,
          "y": 1
        },
        "p2": {
          "x": 1,
          "y": 1
        }
      },
      "sensors": [
        "cam1"
      ],
      "groups": [
        "bev-sensor-1"
      ]
    }
  ],
  "corridors": [
    {
      "name": "city=abc/corridor=xyz",
      "sensors": [
        "cam1"
      ],
      "directions": [
        "N"
      ],
      "length": 5
    }
  ]
}