Go to documentation repository
Page History
...
Section | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Object in the zone (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.
...
queryProperties/action is an optional parameter of the request:
- If this parameter is not set, then objects in the zone are searched.
queryProperties/action="enter"
- objects entering the zone are searched.queryProperties/action="exit"
- objects exiting the zone are searched.
...
Object transition from one zone to another (queryType="transition"
)
There is one required parameter — − figures. It has to contain two zones describing start and end zones.
There are no optional parameters.
Search for objects that moved from the left part of the frame to the right one:
...
Line crossing (queryType="line"
)
Required parameter figures defines a segment crossing of which triggers the condition. The segment is to be set by two points.
Code Block |
---|
{ "queryType": "line", "figures": [ { "shape": [ [0.5, 0.8], [0.5, 0.2] ] } ] } |
Optional parameter queryProperties/direction sets direction of line crossing.
- If this parameter is not set, then objects crossing the line in any direction will be in results.
- queryProperties/direction="left" means that the object is to cross the line from the right to the left if look from the right point of the segment.
- queryProperties/direction="right" means that the object is to cross the line from the left to the right if look from the right point of the segment..
Code Block |
---|
{ "queryType": "line", "figures": [ { "shape": [ [0.5, 0.8], [0.5, 0.2] ] } ], "queryProperties": { "direction": "left" } } |
...
Overview
Content Tools