Skip to content

searchTrackImages

Query

Search for tracks whose images match a text description.

Response

Returns SearchTrackImagesResponse

Arguments

NameTypeDescription
searchTextString!

The text description to search against.

searchImageBoolean!

If true, the searchText will refer to the entire image, rather than just the track. Defaults to false.

Default: false

collectionIdID

If provided, only search for tracks from the given collection.

pointOfInterestIdID

If provided, only search for tracks from the given point of interest.

dataSourceIds[ID!]

If provided, only search for tracks from the given data source.

startTimeDateTimeOffset

If provided, only search for tracks after the given start time.

endTimeDateTimeOffset

If provided, only search for tracks before the given end time.

includeTagIds[ID!]

If provided, only search for tracks from matching one of the given tags.

excludeTagIds[ID!]

If provided, do not return tracks matching the given tags.

firstInt!

Returns the first n entries from the search.

Default: 20

Example

query searchTrackImages(
$searchText: String!,
$searchImage: Boolean!,
$collectionId: ID,
$pointOfInterestId: ID,
$dataSourceIds: [ID!],
$startTime: DateTimeOffset,
$endTime: DateTimeOffset,
$includeTagIds: [ID!],
$excludeTagIds: [ID!],
$first: Int!
) {
searchTrackImages(
searchText: $searchText,
searchImage: $searchImage,
collectionId: $collectionId,
pointOfInterestId: $pointOfInterestId,
dataSourceIds: $dataSourceIds,
startTime: $startTime,
endTime: $endTime,
includeTagIds: $includeTagIds,
excludeTagIds: $excludeTagIds,
first: $first
) {
tracks {
track {
id
modelId
tag
startTime
endTime
finished
metadata
}
dataSource {
id
name
type
labels
}
trackBoxId
timestamp
confidence
}
}
}