GraphQL Subscriptions
Get notified about restricted person
In order to get notified about a detection of certain person or a group of persons (from a particular Watchlist) you need to create a GraphQL subscription
subscription restrictedPersonDetected {
matchResult(
where: { watchlistFullName: { contains : "Restricted" } }
) {
createdAt
watchlistId
watchlistFullName
watchlistMemberId
watchlistMemberFullName
watchlistMemberDisplayName
}
}
You can of course change the where
conditions to where: { watchlistId: { eq : "957e82fa-e467-48b1-864d-df262eb075e5" } }
in order to subscribe to particular Watchlist
Get notified about any detected face
In order to get notified about a any detected face with possible match information use faceProcessed
topic.
subscription anyFaceDetected {
faceProcessed {
faceInformation {
cropCoordinates {
cropLeftTopX
cropLeftTopY
}
}
matchInformation {
fullName
}
}
}
Get notified about faces of particular age
In order to get notified about a any detected face that is underage (below 18 year), no matter matched or not matched use faceExtracted
topic with where condition:
subscription faceLessThan18Detected {
faceExtracted(
where: { age: { lt: 18 } }
) {
createdAt
age
faceArea
type
}
}