COCO Dataset format
Hasty allows you to export your project in the very well-known COCO dataset format. You can find more information about this format here.
COCO Masks Decoding Python Example
The Annotation Object (“ann”)
Attributes
id (string)
The annotation ID
image_id (integer)
The ID of the image
category_id (integer)
The ID of the category of the object instance
segmentation
- size (list of integers)
Height and width of the image - counts (string)
An RLE-encoded binary mask of an object instance
area (float)
The total area of the encoded mask in squared pixels
bbox (list of integers)
List of bounding box values
iscrowd (boolean)
Indicates if the ground truth (gt) object is marked as a crowd region (1) or not (0). If it is, then the predicted bounded box can match any subregion of the ground truth. Currently, Hasty does not provide an option to mark objects as iscrowd, so the value will be set as 0
You can learn more about pycocotools Python package in the documentation.