feat: add alarm test overlay with low thresholds
This commit is contained in:
parent
a40a50a108
commit
84aab0fa8e
47
configs/overlays/alarm_test_sensitive.json
Normal file
47
configs/overlays/alarm_test_sensitive.json
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
"description": "降低告警阈值用于测试:缩短冷却时间、降低最小持续时间和命中数。",
|
||||
"instance_overrides": {
|
||||
"*": {
|
||||
"override": {
|
||||
"nodes": {
|
||||
"alarm_violation": {
|
||||
"rules": [
|
||||
{
|
||||
"name": "non_compliant_workshoe",
|
||||
"class_ids": [2],
|
||||
"min_score": 0.1,
|
||||
"min_duration_ms": 100,
|
||||
"min_hits": 1,
|
||||
"hit_window_ms": 5000,
|
||||
"cooldown_ms": 2000
|
||||
}
|
||||
],
|
||||
"face_rules": [
|
||||
{
|
||||
"name": "unknown_face",
|
||||
"type": "unknown",
|
||||
"cooldown_ms": 2000,
|
||||
"min_hits": 1,
|
||||
"hit_window_ms": 5000,
|
||||
"min_face_area_ratio": 0.0001,
|
||||
"min_face_aspect": 0.3,
|
||||
"max_face_aspect": 3.0
|
||||
},
|
||||
{
|
||||
"name": "known_person",
|
||||
"type": "person",
|
||||
"cooldown_ms": 2000,
|
||||
"min_sim": 0.3,
|
||||
"min_hits": 1,
|
||||
"hit_window_ms": 5000,
|
||||
"min_face_area_ratio": 0.0001,
|
||||
"min_face_aspect": 0.3,
|
||||
"max_face_aspect": 3.0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user