Go to documentation repository
...
| Section | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
queryType="zone")figures/shape is a required parameter. It sets the zone the object to be within as the list of polygon apexes. Coordinates are set in fractions of frame width/height (values from 0 to 1). It allows not to be tied to specific camera resolution.
...
| Code Block |
|---|
{
"queryType": "zone",
"figures": [
{
"shape": [
[0.3, 0.3],
[0.7, 0.3],
[0.7, 0.7],
[0.3, 0.7]
]
}
],
"queryProperties": {
"action": "enter"
}
} |
(queryType="transition")There is one required parameter − figures. It has to contain two zones describing start and end zones.
...
| Code Block |
|---|
{
"queryType": "transition",
"figures": [
{
"shape": [
[0, 0],
[0.45, 0],
[0.45, 1],
[0, 1]
]
},
{
"shape": [
[0.55, 0],
[1, 0],
[1, 1],
[0.55, 1]
]
}
]
} |
queryType="line")Required parameter figures defines a segment crossing of which triggers the condition. The segment is to be set by two points.
...