The relations object is part of the task objectin the Ango Annotation Format. It contains all data pertaining to labels created with relations, e.g. not tools, classifications, or brushes.
Relations created with the following classification classes will appear in the relations object:
"relations" : [ { from // string, only in single relations, objectID of the object from where the relation starts to // string, only in single relations, objectID of the object where the relation stops objectId // string, ID of the relation schemaId, // string, ID of the relation class in the project group // list, only in group relation, the objectIDs of the objects present in the relation direction, // string, only in single relations, one of straight, reverse, bidirectional. title // string, title of the relation class page // int, optional, if asset is multi-frame (video, TIFF, DICOM) frame where the relation takes place }, { ... }]
In single relations only, object ID of the object which was clicked first when setting up the relation.
to
String
In single relations only, object ID of the object which was clicked second when setting up the relation.
objectId
String
Object ID of the relation. Unique in the asset.
schemaId
String
ID of the class to which the relation belongs.
group
List
In group relations only, the objectIDs of the objects in the relation.
title
String
Name of the class.
direction
String
In single relations only, direction of the relation. One of:
straight: The relation has an arrow starting from the object indicated by from and pointing towards the object with the objectID indicated by to.
reverse: The relation has an arrow starting from the object indicated by to and pointing towards the object with the objectID indicated by from.
bidirectional: The relation has two arrows, each starting from one of the two objects and pointing towards the other.