segmentationForImage
Query
Segment an image
Response
Returns SegmentationResponse
Arguments
| Name | Type | Description |
|---|---|---|
imageId | ID! | The ID of the image |
options | SegmentationOptionsInput | Optional segmentation parameters. |
Example
query segmentationForImage( $imageId: ID!, $options: SegmentationOptionsInput) { segmentationForImage( imageId: $imageId, options: $options ) { results { segment { __typename } regionIndex } }}{ "imageId": "6ae37220-5b5a-84fa-bb19-fcf1d4a8ac2b"}{ "data": { "segmentationForImage": { "results": [ { "segment": { "__typename": "Segment" }, "regionIndex": 919 } ] } }}