Guides

Scene Classification

Request JSON

This example shows a request payload JSON to process an asset with ID asset_id and update the metadata.

{
    "disposition": {
        "update_metadata": true
    }
}

Request Parameters

ParameterTypeDescription
dispositionJSON(optional) Indicates how analysed data must be disposed
disposition .update_metadataBooleantrue if Asset Metadata should be updated for reserved field _filespin_scene_labels. All labels will be updated as space seperated strings into Asset metadata field.

RESPONSE JSON when is_synchronous is true

The API call will return with a JSON response as below.

{
    "data": [
      {
        "label": "amusement_park",
        "confidence": 0.6366952061653137
      },
      {
        "label": "tower",
        "confidence": 0.4299171566963196
      },
      {
        "label": "castle",
        "confidence": 0.2965517044067383
      },
      {
        "label": "skyscraper",
        "confidence": 0.2801764905452728
      },
      {
        "label": "museum",
        "confidence": 0.22096014022827148
      }
    ]
}

RESPONSE JSON when is_synchronous is false

The API call will return with a JSON response as below.

{
    "job_id" : "9172985e-a6f2-4bb7-abaa-9026fcabf297"
}

KeyValueDescription
job_idStringThe job ID to track the job

Retrieve result using job_id

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!