Tools
Tools fields in Ango Annotation Format exports.
The tools
object is part of the task
object in the Ango Annotation Format. It contains all annotation data pertaining to labels created with tools, e.g. not classifications, relations, or brushes.
Annotations created with the following annotation tools will appear in the tools
object:
Annotations created with the Brush and Medical Brush tools are not saved here. They are instead saved, respectively, in the brushDataUrl
and the medicalBrushDataUrl
objects within the task
object. See the page on the Task object for more.
The page
property, in the export, is 0-indexed, while in the Ango Hub user interface it is 1-indexed.
What this means in practice is that pages start at 0 in the export, but 1 in the UI.
So for example, if, in the UI, you create a bounding box at page "12", it will appear under page "11" in the export.
General Structure
Coordinates in the Ango Annotation Format
This is the coordinate system used when determining the position of points in the Ango export.
The origin point lies at the top left corner, and each point has a (X, Y) coordinate pair determining its position, in pixels, on the image.
Polygon
Sample
Properties
polygon
List
List of lists containing X, Y coordinates of each polygon point. List may contain any number of x, y coordinate pairs.
objectId
String
Object ID of the polygon. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
metadata
Dict
Only appears if the Annotation Metadata toggle has been turned on before export.
createdAt
: int, Time of creation in Unix epoch time in milliseconds. GMT.
createdBy
: string, email of user creating the object
createdIn
: string, ID of the stage in which the object was created.
updatedAt
: int, optional. Time of last object update in Unix millisecond epoch time. GMT. Only appears if object has been updated.
updatedBy
: string, optional. email of user last updating the object. Only appears if object has been updated.
updatedIn
: string, optional. ID of the stage in which the object was last updated. Only appears if object has been updated.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Segmentation
Segmentation point coordinates will not be visible in your export unless you activate the "Segmentation Points" toggle in the Export tab under the Fields dropdown.
Metadata for segmentations will not appear even when enabling the Annotation Metadata toggle in the export settings.
Segmentations are composed of instances, zones, regions, and holes.
An instance may contain more than one zone. One zone contains exactly one region. A region can contain more than one hole.
Each of the points composing the segmentation is represented as an X/Y coordinate pair.
Sample
Properties
segmentation
Object
Object containing details about a segmentation instance. A segmentation instance can be composed of multiple zones. Each zone contains at least one region and may optionally contain a hole, which is always included, coordinate wise, within the region. More details in the segmentation section above.
objectId
String
Object ID of the segmentation instance. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Bounding Box
Sample
Properties
bounding-box
Object
Object containing details about the bounding box.
x
- The X coordinate of the top-left point
y
- The Y coordinate of the top-left point
height
- The height, in pixels, of the bounding box
width
- The width, in pixels, of the bounding box
objectId
String
Object ID of the bounding box. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Rotated Bounding Box
Rotated Bounding Box Angles
Sample
Properties
rotated-bounding-box
Object
Object containing coordinate and dimension details about the rotated bounding box.
x
- The X coordinate of the origin point (i.e. where the user first clicked) of the rotated bounding box
y
- The Y coordinate of the origin point (i.e. where the user first clicked) of the rotated bounding box
width
- The width of the rotated bounding box, in pixels
height
- the height of the rotated bounding box, in pixels
rotation
- the angle of rotation of the rotated bounding box, in degrees. Range: -180|+180
corners
- A list of X, Y coordinate pairs pertaining to the location of the four corners of the rotated bounding box.
objectId
String
Object ID of the rotated bounding box. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Polygon
Sample
Properties
polygon
Object
Object containing coordinate details about the points making up the polygon. A list of X, Y coordinates of its points. Points are represented consecutively. The first point in the list is the first point that was clicked when creating the polygon.
objectId
String
Object ID of the polygon. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Polyline
Sample
Properties
polyline
Object
Object containing coordinate details about the points making up the polyline. A list of X, Y coordinates of its points. Points are represented consecutively. The first point in the list is the first point that was clicked when creating the polyline.
objectId
String
Object ID of the polyline. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Medical Line Tool
Sample
Properties
polyline
Object
Object containing coordinate details about the points making up the line. A dict containing 3D coordinates, in pixels, of its points, as well as its length. (Length is only available for lines created or modified after the Ango Hub 3.21 update.)
objectId
String
Object ID of the line. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Spline
Sample
Properties
spline
List
List containing coordinate, width, and marking details about the points making up the spline. A list of X, Y coordinates of its points, the width information of each point in pixels, as well as whether the point was marked (1) or not (0). Points are represented consecutively. The first point in the list is the first point that was clicked when creating the spline.
A spline may contain any number of points starting from 2.
objectId
String
Object ID of the spline. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Point
Sample
Properties
point
Object
Object containing coordinate details about the point. The X, Y coordinates of the point.
objectId
String
Object ID of the point. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
PDF
Sample
Properties
pdf
Object
Object containing coordinate, size, and content details about the PDF area.
position
: dict, positional information regarding the objectboundingRect
: dict, positional information regarding the objectx1
andy1
X, Y coordinates of the top left point of the PDF areax2
andy2
X, Y coordinates of the bottom right point of the PDF area
rects
: list, deprecated.pageNumber
: int, the number of the PDF page where the object is found. 1-indexed.
content
: dict, information regarding the content of the objecttext
: string, if OCR was run for the object, the OCR result.confidence
: int, range: 0-100, if OCR was run for the object, the confidence in the OCR result as returned by Hub.
objectId
String
Object ID of the PDF area. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
PCT
Sample
Entity (NER)
The Entity tool is used in both audio and text to select a portion of the asset.
Sample
Audio
Text
Properties
pdf
Object
Object containing start/end details about the entity selected.
start
In text, int, 0-indexed index of the first character in the entity.
In audio, float, value in seconds where the entity starts.
end
In text, int, 0-indexed index of the last character in the entity.
In audio, float, value in seconds where the entity stops.
selection
(text only): Text content of the entity.
objectId
String
Object ID of the entity. Unique in the asset.
classifications
List
List of nested classifications (if any). May contain further nested classifications in its own classifications
property. Each object in the list is of the classification format. See its docs page for more information.
schemaId
String
ID of the class to which the object belongs.
title
String
Name of the class to which the object belongs.
Special Considerations for Video Assets
interpolationStopped
An annotator may choose to make an object disappear from a video at a certain frame. This can happen, for example, if the annotator was tracking a car in a video and the car left the frame.
To do this, Hub creates an object with the following format in the tools
list:
Where the objectId
noted matches with the objectId
of the object disappearing.
The page
property indicates the page at which the object disappeared, 0-indexed. e.g. in the example above, the object was visible in pages 0, 1, 2, and 3.
If the object, later, reappears again, Hub creates another object in the tools
list, this time with the interpolationStopped
property set to false
:
In this case, it means that starting from frame 8 onwards, the object is visible again, until another interpolationStopped=true
object appears or, if it doesn't appear, until the end of the video.
Last updated