Skip to content

annosaurus 0.2.8

Compare
Choose a tag to compare
@hohonuuli hohonuuli released this 10 Jul 22:53
· 397 commits to master since this release
e217e48

Added a method to make a bulk annotation request across multiple videos. This is to be used by annotation systems that need to things such as fetch all annotations for a deployment which spans multiple videos.

Count annotations

Count annotations for given videos via their video_reference_uuid:

POST /v1/annotations/multi/count
Content-Type: application/json

{
  "video_reference_uuids": [
      "a8307ef9-8e49-40d3-f163-00b37ce4971e", 
      "ec8de1e1-ea59-49b1-bbdb-3f83260d204f"
  ]
}

Retrieve annotations

Retrieve annotations for given videos via their video_reference_uuid. This method accepts limit and offset query params in the URL.

POST /v1/annotations/multi
Content-Type: application/json

{
  "video_reference_uuids": [
      "a8307ef9-8e49-40d3-f163-00b37ce4971e", 
      "ec8de1e1-ea59-49b1-bbdb-3f83260d204f"
  ]
}

In theory, you can supply any number of video_reference_uuids. In practice, this should be limited to less than 1000.