Video Playback Annotation Hypothesis

When creating a videoplaybackannotation task, you can provide prelabels in the hypothesis field, so that workers don't have to start from scratch to annotate the image.

In order to add pre-labels in a task using hypothesis, you’ll need to provide these in the hypothesis field of the payload when creating the task. The schema of the hypothesis object must match the schema of the task response.

  1. Verify the task response field schema for the desired task type.
  2. Review your project taxonomy (label names, attribute conditions, annotation types, etc).
  3. Generate pre-labels that are formatted to match the aforementioned schema and taxonomy.
  4. Generate a URL from where to download the formatted pre-labels.
  5. Create a task, including a hypothesis field that contains the pre-labels URL at the same top-level as other task fields such as project and instructions.

The hypothesis format will largely mirror Scale’s task response format. In this particular task type, [annotations.url](https://docs.scale.com/reference/callback-format) field is mandatory inside the hypothesis object.

Hypothesis Example:

{
   ...
   “attachment” : "scaledata://634730d90F23432331534f1c/6690542d-eea6-48b1-abe7-7ec",
   “hypothesis” : {
     "annotations": {
     "url": "https://s3.labeling-data.net/scale-cds-public-us-west-2/634730d90e2"
   }},
   ...
}
geometries = {
     "box": {
       "objects_to_annotate": [
         "(EXAMPLE) Box label"
       ],
       "min_height": 10,
       "min_width": 10
     },
     "polygon": {
       "objects_to_annotate": []
     }
 }
"response": {
   "annotations": {
     "url": "https://s3.labeling-data.net/scale-cds-public-us-west-2/63473d"
   },
}
{
   "800d9179-f41b-4c27-8709-0d69af2bd619": {
       "label": "(EXAMPLE) Box label",
       "geometry": "box",
       "frames": [
           {
               "attributes": {},
               "left": 1465,
               "top": 416,
               "height": 93,
               "width": 66,
               "key": 0,
               "timestamp_secs": 0
           },
           {
               "attributes": {},
               "left": 1459.8562622070312,
               "top": 414.9712371826172,
               "height": 93,
               "width": 66,
               "key": 60,
               "timestamp_secs": 1
           },
           {
               "attributes": {},
               "left": 1462.9425048828125,
               "top": 294.6067199707031,
               "height": 93,
               "width": 66,
               "key": 120,
               "timestamp_secs": 2
           },
           {
               "attributes": {},
               "left": 1317.8878784179688,
               "top": 211.27745056152344,
               "height": 105.31401480962617,
               "width": 66,
               "key": 180,
               "timestamp_secs": 3
           },
           {
               "attributes": {},
               "left": 866.2638549804688,
               "top": 374.8497314453125,
               "height": 117.62802961925235,
               "width": 66,
               "key": 240,
               "timestamp_secs": 4
           },
           {
               "attributes": {},
               "left": 266.4989013671875,
               "top": 482.86915588378906,
               "height": 129.9420444288785,
               "width": 66,
               "key": 300,
               "timestamp_secs": 5
           },
           {
               "attributes": {},
               "left": 228.1513426248629,
               "top": 557.3045839905444,
               "height": 182.8215708730972,
               "width": 88.97307219134917,
               "key": 420,
               "timestamp_secs": 7
           },
           {
               "attributes": {},
               "left": 684.2630246794819,
               "top": 570.8047140829245,
               "height": 160.96597860307904,
               "width": 100.4596082870238,
               "key": 480,
               "timestamp_secs": 8
           },
           {
               "attributes": {},
               "left": 1039.556591499726,
               "top": 551.3846781596797,
               "height": 139.1103863330609,
               "width": 111.94614438269832,
               "key": 540,
               "timestamp_secs": 9
           }
       ]
   }
}