Go to documentation repository
...
Code Block |
---|
{ "queryType": "zone", "figures": [ { "shape": [ [0.3, 0.3], [0.7, 0.3], [0.7, 0.7], [0.3, 0.7] ] } ], "objectProperties": { "size": { "height": [0, 0.25] } }, "conditions": { "duration": 5 } } |
objectProperties/category
)An object can be abandoned or moving (face, human, group, vehicle). In the request abandoned type cannot be mixed with other object types (otherwise the abandoned requirement will be ignored).
...
Code Block |
---|
{ "queryType": "line", "figures": [ { "shape": [ [0.5, 0.8], [0.5, 0.2] ] } ] "objectProperties": { "category": ["human", "group"], } } |
objectProperties/size
)It sets minimum and maximum width and height of an object.
...
Code Block |
---|
{ "queryType": "zone", "figures": [ { "shape": [ [0.3, 0.3], [0.7, 0.3], [0.7, 0.7], [0.3, 0.7] ] } ], "objectProperties": { "size": { "height": [0, 0.25] } } } |
objectProperties/color
)It sets minimum and maximum coordinates of the object color in HSV space. Hue is measured in degrees (from 0 to 360), saturation and brightness – in fractions from 0 to 1.
...
Code Block |
---|
{ "queryType": "zone", "figures": [ { "shape": [ [0.3, 0.3], [0.7, 0.3], [0.7, 0.7], [0.3, 0.7] ] } ], "objectProperties": { "color": { "hue": [0, 360], "saturation": [0, 0.1], "brightness": [0.8, 1] } } } |
conditions/velocity
)It sets minimum and maximum velocity of the object.
...
Code Block |
---|
{ "queryType": "zone", "figures": [ { "shape": [ [0.3, 0.3], [0.7, 0.3], [0.7, 0.7], [0.3, 0.7] ] } ], "conditions": { "velocity": [0.25, 1] } } |
conditions/directions
)It sets the direction for the object as an array of angles. Angles are measured in radians and are counted from the axis directed to the right clockwise.
...
Code Block |
---|
{ "queryType": "zone", "figures": [ { "shape": [ [0.3, 0.3], [0.7, 0.3], [0.7, 0.7], [0.3, 0.7] ] } ], "conditions": { "directions": [ [315, 45], [135, 225] ] } } |
conditions/duration
)It sets time (in seconds) during which the object is to continuously meet all conditions.
...
Code Block |
---|
{ "queryType": "zone", "figures": [ { "shape": [ [0.3, 0.3], [0.7, 0.3], [0.7, 0.7], [0.3, 0.7] ] } ], "conditions": { "duration": 5 } } |
condtions/count
)It sets the minimum required number of objects that simultaneously meet other request conditions.
...