Skip to main content

Detection Configuration

Detection rules applied within a region.

Example

{
"class_name": "person",
"class_threshold": 10,
"object_size": 150,
"combined_threshold": 80,
"object_descriptions": [
{
"text": "person carrying a box",
"threshold": 90,
"alert": true,
"background_prompt": false
}
],
"face_recognition": {
"match_type": "group",
"match_threshold": 80,
"group": "employees"
},
"similarity": {
"images": []
},
"conditions": [
{
"type": "count_greater_than",
"count": 0
}
],
"alert_seconds": 1,
"reset_seconds": 5
}

Fields

FieldTypeDescription
class_namestringOptional class filter such as person, vehicle, bag, animal, or unknown.
class_thresholdnumberConfidence threshold for class_name.
object_sizenumberMinimum object size in pixels.
combined_thresholdnumberMinimum combined threshold used by the server when alerting.
min_contour_areanumberOptional contour-area filter for motion or extraction logic.
max_bounding_box_areanumberOptional upper bound for bounding-box area.
object_descriptionsObject Description[]Natural-language prompts used for matching and alerting.
face_recognitionFace Recognition ConfigFace recognition match settings.
similaritySimilarity ConfigSimilarity-search settings.
conditionsDetection Condition[]Alert conditions such as count rules or line crossing.
alert_secondsnumberTime a match must persist before the server alerts.
reset_secondsnumberTime without a match before the alert state resets.
objectsDetection Object[]Optional advanced object filters or labels.