segmentationForTrack
Query
Segment an image within the polygon defined by a track’s detection
Response
Returns SegmentationResponse
Arguments
| Name | Type | Description |
|---|---|---|
trackId | ID! | The ID of the track |
timestamp | DateTimeOffset! | The time of the track’s detection. Will use the nearest detection if there isn’t one at this exact timestamp |
options | SegmentationOptionsInput | Optional segmentation parameters. |
Example
query segmentationForTrack( $trackId: ID!, $timestamp: DateTimeOffset!, $options: SegmentationOptionsInput) { segmentationForTrack( trackId: $trackId, timestamp: $timestamp, options: $options ) { results { segment { __typename } regionIndex } }}{ "trackId": "51e7360e-02a3-8c4f-81dc-16e8dbf47622", "timestamp": "2025-01-01T00:00:00.000Z"}{ "data": { "segmentationForTrack": { "results": [ { "segment": { "__typename": "Segment" }, "regionIndex": 919 } ] } }}