Skip to main content

Basic types

warning

This is a beta format. It will soon be deprecated. Analytics Data Format (ADF) has reached a stable release. Analytics Data Format

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

BoundingBox​

ADF uses normalized image coordinates. The x-axis points to the right, and the y-axis points down. The upper-left corner is (0,0), and the lower-right corner is (1,1). All coordinates inside the image are therefore nonnegative. This matches how many digital image libraries handle 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. Longitude and latitude are given in degrees, as defined by the Global Positioning System (GPS) and WGS 84. Latitude is 0° at the equator and increases northward. Longitude is 0° at the IERS prime meridian and increases eastward. 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, use the coordinate system defined in the ONVIF Analytics Service Specification:

  • The device is at the 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. It ranges from -180 to 180 degrees and increases counterclockwise. An azimuth of 0° points directly right, and an azimuth of 90° points straight ahead.
PropertyTypeRequired
rFloatYes
azimuthFloatYes
elevationFloatYes

Spherical coordinates system

Image​

A 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