Skip to content

createDetection

Mutation

Creates a new Detection.

Response

Returns Detection

Arguments

NameTypeDescription
detectionCreateDetectionInput!

Arguments to create a new detection.

Example

mutation createDetection(
$detection: CreateDetectionInput!
) {
createDetection(
detection: $detection
) {
id
track {
id
dataSource {
id
name
type
labels
}
video {
id
startTime
endTime
cloudAvailable
url
thumbnailUrl
displayName
resolutionHeight
resolutionWidth
frameRate
}
modelId
tag
startTime
endTime
finished
detections {
id
timestamp
metadata
createdAt
updatedAt
direction
}
properties {
__typename
}
metadata
zoneIntersections {
id
startTime
endTime
}
geofenceIntersections {
id
startTime
endTime
}
}
timestamp
frame {
number
}
polygon {
type
coordinates
crs {
type
properties
}
}
position {
type
coordinates
crs {
type
properties
}
}
zones {
id
dataSource {
id
name
type
labels
}
name
polygon {
type
coordinates
}
active
createdAt
updatedAt
}
geofences {
id
name
labels
site {
id
name
timezone
}
pointOfInterest {
id
name
metadata
}
bounds {
height
}
active
}
metadata
createdAt
updatedAt
direction
}
}