Detection Condition
A rule that determines when a detection should be treated as a match or alert.
Example
{
"type": "line_cross",
"line_name": "entry-line",
"alert_direction": "positive",
"objects": []
}
Fields
| Field | Type | Description |
|---|---|---|
type | string | Condition type. Supported values in the SDK are count_equals, count_greater_than, count_less_than, and line_cross. |
count | number | Object count used by count-based conditions. |
line_name | string | Line name used by line_cross. |
alert_direction | string | Line-cross direction such as positive or negative. |
objects | Detection Object[] | Objects that satisfied the condition in the response payload. |