Dataset Annotations

Dataset Annotations

POST /api/v1/datasets/{dataset_id}/versions/{version_id}/annotations

Create Annotation

Parameters

NameInTypeRequired
dataset_idpathstringtrue
version_idpathstringtrue

Request Body

Type: Annotation

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
label_idstring
item_iduuid.UUID
split_idstringTODO Can we not have to store this??
coordinatesstringstoring obj detection coordinates as a string that can easily be converted to an array.
If we ever start to need searches/calculations on these coordinates on the backed, we can migrate them to x, y, h, w.
For now, we store everything in Yolo format, with converters on export or on the SDK side.
user_idstringTODO CoordinateFormat string json:"coordinate_format" // COCO, Yolo, Voc

Response

Type: Annotation

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
label_idstring
item_iduuid.UUID
split_idstringTODO Can we not have to store this??
coordinatesstringstoring obj detection coordinates as a string that can easily be converted to an array.
If we ever start to need searches/calculations on these coordinates on the backed, we can migrate them to x, y, h, w.
For now, we store everything in Yolo format, with converters on export or on the SDK side.
user_idstringTODO CoordinateFormat string json:"coordinate_format" // COCO, Yolo, Voc

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{}' \
  https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/annotations

PUT /api/v1/datasets/{dataset_id}/versions/{version_id}/annotations/{id}

Update Annotation

Parameters

NameInTypeRequired
dataset_idpathstringtrue
version_idpathstringtrue
idpathstringtrue

Request Body

Type: Annotation

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
label_idstring
item_iduuid.UUID
split_idstringTODO Can we not have to store this??
coordinatesstringstoring obj detection coordinates as a string that can easily be converted to an array.
If we ever start to need searches/calculations on these coordinates on the backed, we can migrate them to x, y, h, w.
For now, we store everything in Yolo format, with converters on export or on the SDK side.
user_idstringTODO CoordinateFormat string json:"coordinate_format" // COCO, Yolo, Voc

Response

Type: Annotation

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
label_idstring
item_iduuid.UUID
split_idstringTODO Can we not have to store this??
coordinatesstringstoring obj detection coordinates as a string that can easily be converted to an array.
If we ever start to need searches/calculations on these coordinates on the backed, we can migrate them to x, y, h, w.
For now, we store everything in Yolo format, with converters on export or on the SDK side.
user_idstringTODO CoordinateFormat string json:"coordinate_format" // COCO, Yolo, Voc

Example

curl -X PUT \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{}' \
  https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/annotations/{id}

DELETE /api/v1/datasets/{dataset_id}/versions/{version_id}/annotations/{id}

Delete Annotation

Parameters

NameInTypeRequired
dataset_idpathstringtrue
version_idpathstringtrue
idpathstringtrue

Response

Type: Annotation

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
label_idstring
item_iduuid.UUID
split_idstringTODO Can we not have to store this??
coordinatesstringstoring obj detection coordinates as a string that can easily be converted to an array.
If we ever start to need searches/calculations on these coordinates on the backed, we can migrate them to x, y, h, w.
For now, we store everything in Yolo format, with converters on export or on the SDK side.
user_idstringTODO CoordinateFormat string json:"coordinate_format" // COCO, Yolo, Voc

Example

curl -X DELETE \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/annotations/{id}