Data Collection

Data collection object

{
"id": "f513077b-a4d2-4856-9508-fc81fef41e00",
"jobId": "eafe97e4-a969-41b5-bbdd-3ac94c63d3af",
"sourceId": "f2296bb1-27f7-41b5-be8b-729be0374bf0",
"fileName": "1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"key": "a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"url": "https://intenseye-test.s3.amazonaws.com/a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"annotations": [
{
"x": 1345,
"y": 586,
"width": 82,
"height": 237,
"categoryId": 1,
"confidence": 0.5179650783538818,
"objectTags": [1,3,5]
},
{
"x": 1477,
"y": 491,
"width": 59,
"height": 200,
"categoryId": 1,
"confidence": 0.5235685706138611
},
{
"x": 1075,
"y": 766,
"width": 46,
"height": 104,
"categoryId": 1,
"confidence": 0.5948519110679626
}
],
"imageMetadata": {
"width": 1920,
"height": 1080
},
"workspaceId": "f513077b-a4d2-4856-9508-fc81fef41e00",
"status": "Pending",
"imageId": 1234
}

Endpoints


Get data collections

GET/maia/jobs/:jobId/data_collections

Roles:

maia:write

Arguments

PATH PARAMETER
  • jobId UUID required The id of the Maia job
QUERY STRING PARAMETERS
  • page Int optional
  • count Int optional

Returns

Returns list of data collection objects

{
"status": "ok",
"data": [
{
"id": "f513077b-a4d2-4856-9508-fc81fef41e00",
"jobId": "eafe97e4-a969-41b5-bbdd-3ac94c63d3af",
"sourceId": "f2296bb1-27f7-41b5-be8b-729be0374bf0",
"fileName": "1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"key": "a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"url": "https://intenseye-test.s3.amazonaws.com/a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"annotations": [
{
"x": 1345,
"y": 586,
"width": 82,
"height": 237,
"categoryId": 1,
"confidence": 0.5179650783538818,
"objectTags": [1,3,5]
},
{
"x": 1477,
"y": 491,
"width": 59,
"height": 200,
"categoryId": 1,
"confidence": 0.5235685706138611
},
{
"x": 1075,
"y": 766,
"width": 46,
"height": 104,
"categoryId": 1,
"confidence": 0.5948519110679626
}
],
"imageMetadata": {
"width": 1920,
"height": 1080
},
"workspaceId": "f513077b-a4d2-4856-9508-fc81fef41e00",
"status": "Pending",
"imageId": 1234
}
]
}

Get single data collection

GET/maia/jobs/:jobId/data_collections/:dataCollectionId

Roles:

maia:write

Arguments

PATH PARAMETERS
  • jobId UUID required The id of the Maia job
  • dataCollectionId UUID required Id of data collection
QUERY STRING PARAMETERS
  • count Int optional

Returns

Returns a single data collection object

{
"status": "ok",
"data": {
"id": "f513077b-a4d2-4856-9508-fc81fef41e00",
"jobId": "eafe97e4-a969-41b5-bbdd-3ac94c63d3af",
"sourceId": "f2296bb1-27f7-41b5-be8b-729be0374bf0",
"fileName": "1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"key": "a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"url": "https://intenseye-test.s3.amazonaws.com/a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"annotations": [
{
"x": 1345,
"y": 586,
"width": 82,
"height": 237,
"categoryId": 1,
"confidence": 0.5179650783538818
},
{
"x": 1477,
"y": 491,
"width": 59,
"height": 200,
"categoryId": 1,
"confidence": 0.5235685706138611
},
{
"x": 1075,
"y": 766,
"width": 46,
"height": 104,
"categoryId": 1,
"confidence": 0.5948519110679626
}
],
"imageMetadata": {
"width": 1920,
"height": 1080
},
"workspaceId": "f513077b-a4d2-4856-9508-fc81fef41e00",
"status": "Pending",
"imageId": 1234
}
}

Save a data collection

PATCH/maia/jobs/:jobId/data_collections/:dataCollectionId

Roles:

maia:write

Arguments

PATH PARAMETERS
  • jobId UUID required The id of the Maia job
  • dataCollectionId UUID required Id of data collection
BODY

Body must be list of annotations where the properties are:

  • x Double required X coordinate of annotation
  • y Double required Y coordinate of annotation
  • width Double required Width of annotation
  • height Double required Height of annotation
  • categoryId Int required Category Id
  • confidence Double required Confidence score
  • objectTags List[Int] optional Object tags

Returns

Returns a success message

{
"status": "ok",
"message": "Saved!"
}

Delete a data collection

DELETE/maia/jobs/:jobId/data_collections/:dataCollectionId

Roles:

maia:write

Arguments

PATH PARAMETERS
  • jobId UUID required The id of the Maia job
  • dataCollectionId UUID required Id of data collection

Returns

Returns a success message

{
"status": "ok",
"message": "Removed."
}

Annotate a data collection

GET/maia/jobs/:jobId/data_collections/:dataCollectionId/annotate

Roles:

maia:write

Arguments

PATH PARAMETERS
  • jobId UUID required The id of the Maia job
  • dataCollectionId UUID required Id of data collection

Returns

Returns list of data collection objects

{
"status": "ok",
"data": [
{
"id": "f513077b-a4d2-4856-9508-fc81fef41e00",
"jobId": "eafe97e4-a969-41b5-bbdd-3ac94c63d3af",
"sourceId": "f2296bb1-27f7-41b5-be8b-729be0374bf0",
"fileName": "1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"key": "a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"url": "https://intenseye-test.s3.amazonaws.com/a088b2cf-fefb-41be-b605-7b874c82c361/f2296bb1-27f7-41b5-be8b-729be0374bf0/1a385580-3826-4041-a14c-03fb8ac494df.jpg",
"annotations": [
{
"x": 1345,
"y": 586,
"width": 82,
"height": 237,
"categoryId": 1,
"confidence": 0.5179650783538818,
"objectTags": [1,3,5]
},
{
"x": 1477,
"y": 491,
"width": 59,
"height": 200,
"categoryId": 1,
"confidence": 0.5235685706138611
},
{
"x": 1075,
"y": 766,
"width": 46,
"height": 104,
"categoryId": 1,
"confidence": 0.5948519110679626
}
],
"imageMetadata": {
"width": 1920,
"height": 1080
},
"workspaceId": "f513077b-a4d2-4856-9508-fc81fef41e00",
"status": "Pending",
"imageId": 1234
}
]
}