Skip to main content

Basic types

warning

The Analytics Data Format (ADF) is currently being developed and has not yet reached a stable release. All data structures are subject to change.

Basic TypesDefined Values
BoundingBoxN/A
ImageVelocityN/A
GeographicPositionN/A
SphericalCoordinateN/A
ImageN/A
ColorColorName

BoundingBox

The coordinate system used in ADF is normalized image coordinates: The x-axis pointing to the right and the y-axis pointing down, with the upper left hand corner as (0,0) and the lower right hand corner as (1,1). Thus all coordinates have positive values inside the image. This represents how many digital image libraries handles image coordinates.

PropertyTypeRequired
leftFloatYes
topFloatYes
rightFloatYes
bottomFloatYes

ImageVelocity

A velocity in image space. The velocity unit is in normalized image units per second (see the documentation for BoundingBox).

PropertyTypeRequired
vxFloatYes
vyFloatYes

GeographicPosition

A type representing a geographic position (geolocation) on Earth, with an optional elevation component. The longitude and latitude are given in degrees as defined by the Global Position System (GPS) and WGS84. The latitude is 0° at the equator, increasing northwards. The longitude is defined to be 0° at the IERS prime meridian, increasing eastwards. The elevation, if present, is specified in meters.

PropertyTypeRequired
latitudeFloatYes
longitudeFloatYes
elevationFloatNo

SphericalCoordinate

Represents a vector described in spherical coordinates. For a vector that represents a position or velocity relative to the device, the coordinate system used is the same as defined in the ONVIF Analytics Service Specification:

  • The device is placed in origin of a right-handed coordinate system where the positive X axis is rightwards relative to the device, the positive Y axis points away from the device, and the positive Z axis points upwards.
  • The magnitude (r) is given in SI units: meters for a position, and meters per second for a velocity.
  • The elevation angle (θ) is the vertical angle from the X-Y plane spanning from -90 to 90 degrees and increasing upwards. The value 0° indicates no relative elevation difference (level in the X-Y plane).
  • The azimuth angle (φ) is the rotation angle around the Z axis, spanning from -180 to 180 degrees and increasing counterclockwise, i.e. rightwards as seen from the device. The value 0° indicates straight ahead.
PropertyTypeRequired
rFloatYes
azimutFloatYes
elevationFloatYes

Spherical coordinates system

Image

Cropped image

PropertyTypeRequiredNote
timestampStringYesAccording to format: YYYY-MM-DDTHH:MM:SS.MMMMMMZ
bounding_boxBoundingBoxYes
dataStringYesImage payload. Base64 encoded when serialized to json

Color

PropertyTypeRequiredNote
NameStringYesDefined Values
ScoreFloatYes

Color values

The available color values today:

  • Beige
  • Black
  • Blue
  • Gray
  • Green
  • Red
  • White
  • Yellow

TrackedObjectObservation

PropertyTypeRequiredNote
timestampStringYesAccording to format: YYYY-MM-DDTHH:MM:SS.MMMMMMZ
track_idIDNo
velocityImageVelocityNoThe velocity in the image of the object, in normalized coordinates
bounding_boxBoundingBoxYesBounding box describes an object's surrounding rectangle
classObjectClassificationNo
classesArray of ObjectClassificationNo
imageImageNoImage cropped around the detected object
world_positionSphericalCoordinateNoThe position of the object relative to the device channel that made this detection
world_velocitySphericalCoordinateNoThe velocity of the object relative to the device channel that made this detection
geopositionGeographicPositionNoThe geographic position of the object