{
  "selected": {
    "5": {
      "store": false,
      "persist_every": 1,
      "persist_mode": "all",
      "active_learning": false,
      "scenarios": "off",
      "optional_roles": [],
      "site_id": null,
      "analysis_fps_target": 10.0,
      "inference_profile": {
        "roles": [
          "det"
        ],
        "det_model": "RFDETRFireSmoke",
        "thresholds": {
          "score": 0.5
        }
      },
      "pose": {
        "enabled": false,
        "show_bbox": true,
        "show_joints": false,
        "show_edges": false,
        "person_score": 0.25,
        "joint_score": 0.15,
        "min_joints": 10,
        "nms_enabled": true,
        "nms_iou_threshold": 0.85,
        "detail_track_id": null,
        "detail_object_ref": null,
        "detail_frame_seq": null,
        "show_joint_names": false,
        "show_joint_scores": false,
        "capture_interval_s": 3.0
      },
      "fire": {
        "enabled": true,
        "scenario": {
          "enabled": true,
          "flame_confidence": 0.5,
          "flame_window_seconds": 2.0,
          "flame_positive_ratio": 0.6,
          "smoke_confidence": 0.7,
          "smoke_window_seconds": 3.0,
          "smoke_positive_ratio": 0.5,
          "roi": [
            [
              0.0,
              0.0
            ],
            [
              1.0,
              0.0
            ],
            [
              1.0,
              1.0
            ],
            [
              0.0,
              1.0
            ]
          ],
          "roi_id": "primary",
          "roi_name": "Fire ROI",
          "debug_roi": true,
          "min_observation_seconds": 1.0,
          "clear_seconds": 5.0,
          "max_observation_gap_seconds": 0.5,
          "max_samples": 512
        }
      },
      "tracking": {
        "enabled": true
      },
      "visualization": {
        "score_threshold": 0.25,
        "categories": [
          "flame_visible"
        ]
      },
      "intrusion": {
        "enabled": true,
        "roi_id": "primary",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "point_x": 0.5,
        "point_y": 1.0,
        "confidence": 0.14,
        "dwell_seconds": 0.2,
        "rearm_seconds": 0.1,
        "grace_seconds": 0.5,
        "retention_seconds": 30.0,
        "max_states": 1024
      },
      "stream_id": "camera-afca48e959ea5a28b8a488e0cc6eda1c",
      "source_id": "5",
      "server_id": "AI-01",
      "camera_id": 5,
      "source_type": "rtsp",
      "autostart": false,
      "uri": "rtsp://192.168.50.101:8554/ivpm/camera_5_0?token=9db1c74c82159880f7",
      "frame_time_anchor": {
        "startWallTimeMs": 1791340485751,
        "synthetic": false
      },
      "secure_control_projection": {
        "profile": "REST_STATELESS",
        "skippedScenarios": [],
        "ignoredIntrusionRois": 0,
        "requestedRtpClockRate": 90000
      },
      "rec_server_id": "REC-01",
      "rec_camera_id": "00000005",
      "loitering": {
        "enabled": false,
        "roi_id": "primary",
        "roi_name": "Loitering ROI",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "point_x": 0.5,
        "point_y": 1.0,
        "confidence": 0.5,
        "dwell_seconds": 5.0,
        "rearm_seconds": 1.0,
        "grace_seconds": 1.0,
        "retention_seconds": 60.0,
        "max_states": 1024
      },
      "fight": {
        "enabled": false,
        "person_score": 0.15,
        "joint_score": 0.1,
        "pair_distance_ratio": 1.8,
        "pair_close_hold_seconds": 0.1,
        "arm_motion_window_seconds": 1.0,
        "arm_motion_ratio": 0.1,
        "toward_opponent_ratio": 0.01,
        "fight_window_seconds": 1.5,
        "required_bursts": 1,
        "burst_min_interval_seconds": 0.25,
        "rearm_quiet_seconds": 2.0,
        "pair_retention_seconds": 5.0,
        "max_people": 32,
        "max_pairs": 128,
        "history_capacity": 64,
        "roi_id": "primary",
        "roi_name": "Fight ROI",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ]
      },
      "crowd": {
        "enabled": false,
        "person_confidence": 0.45,
        "head_confidence": 0.45,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "roi_name": "Crowd ROI",
        "roi_id": "primary",
        "debug_roi": true,
        "window_seconds": 3.0,
        "report_seconds": 3.0,
        "minimum_samples": 2,
        "stale_seconds": 6.0,
        "nms_enabled": true,
        "nms_iou_threshold": 0.85,
        "event_enabled": false,
        "reference_count": 50,
        "safe_ratio": 0.25,
        "caution_ratio": 0.5,
        "warning_ratio": 0.75,
        "danger_ratio": 0.9,
        "suppress_repeated_danger": true
      },
      "fall": {
        "enabled": false,
        "person_score": 0.15,
        "joint_score": 0.1,
        "upright_angle_deg": 35.0,
        "down_angle_deg": 50.0,
        "torso_delta_deg": 25.0,
        "hip_drop_ratio": 0.25,
        "span_collapse_ratio": 0.7,
        "knee_guard_angle_deg": 100.0,
        "knee_guard_torso_max_deg": 45.0,
        "upright_hold_seconds": 0.5,
        "transition_window_seconds": 0.8,
        "transition_to_down_seconds": 0.8,
        "down_hold_seconds": 0.7,
        "test_skip_down_hold": true,
        "missing_grace_seconds": 0.5,
        "recovery_hold_seconds": 1.0,
        "confirmed_retention_seconds": 5.0,
        "reference_window_seconds": 1.0,
        "unconfirmed_retention_seconds": 5.0,
        "max_states": 1024,
        "history_capacity": 256,
        "roi_id": "primary",
        "roi_name": "Fall ROI",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ]
      },
      "event_cooldowns": {
        "FIRE": 10.0,
        "FALL": 10.0,
        "INTRUSION": 10.0,
        "LOITERING": 10.0,
        "FIGHT": 10.0,
        "CROWD": 10.0
      }
    },
    "3": {
      "store": false,
      "persist_every": 1,
      "persist_mode": "all",
      "active_learning": false,
      "scenarios": "off",
      "optional_roles": [],
      "site_id": null,
      "analysis_fps_target": 10.0,
      "inference_profile": {
        "roles": [
          "det"
        ],
        "det_model": "RFDETRMedium",
        "thresholds": {
          "score": 0.5
        }
      },
      "pose": {
        "enabled": false,
        "show_bbox": true,
        "show_joints": false,
        "show_edges": false,
        "person_score": 0.25,
        "joint_score": 0.15,
        "min_joints": 10,
        "nms_enabled": true,
        "nms_iou_threshold": 0.85,
        "detail_track_id": null,
        "detail_object_ref": null,
        "detail_frame_seq": null,
        "show_joint_names": false,
        "show_joint_scores": false,
        "capture_interval_s": 3.0
      },
      "fire": {
        "enabled": true,
        "scenario": {
          "enabled": true,
          "flame_confidence": 0.5,
          "flame_window_seconds": 2.0,
          "flame_positive_ratio": 0.6,
          "smoke_confidence": 0.7,
          "smoke_window_seconds": 3.0,
          "smoke_positive_ratio": 0.5,
          "roi": [
            [
              0.0,
              0.0
            ],
            [
              1.0,
              0.0
            ],
            [
              1.0,
              1.0
            ],
            [
              0.0,
              1.0
            ]
          ],
          "roi_id": "primary",
          "roi_name": "Fire ROI",
          "debug_roi": true,
          "min_observation_seconds": 1.0,
          "clear_seconds": 5.0,
          "max_observation_gap_seconds": 0.5,
          "max_samples": 512
        }
      },
      "tracking": {
        "enabled": true
      },
      "visualization": {
        "score_threshold": 0.25,
        "categories": [
          "person"
        ]
      },
      "intrusion": {
        "enabled": false,
        "roi_id": "primary",
        "roi_name": "침입 1",
        "debug_roi": true,
        "roi": [
          [
            0.3329297820823245,
            0.2759408602150538
          ],
          [
            0.3329297820823245,
            0.4888440860215053
          ],
          [
            0.3462469733656174,
            0.7748655913978495
          ],
          [
            0.4588377723970943,
            0.6587365591397849
          ],
          [
            0.48910411622276023,
            0.46733870967741936
          ],
          [
            0.5084745762711864,
            0.3081989247311828
          ]
        ],
        "point_x": 0.5,
        "point_y": 1.0,
        "confidence": 0.5,
        "dwell_seconds": 0.5,
        "rearm_seconds": 1.0,
        "grace_seconds": 0.5,
        "retention_seconds": 30.0,
        "max_states": 1024
      },
      "stream_id": "camera-c093c7f66edf595e953970de788efbaa",
      "source_id": "3",
      "server_id": "AI-01",
      "camera_id": 3,
      "source_type": "rtsp",
      "autostart": false,
      "uri": "rtsp://192.168.50.101:8554/ivpm/camera_3_0?token=9db1c74c82159880f7",
      "frame_time_anchor": {
        "startWallTimeMs": 1791340485750,
        "synthetic": false
      },
      "secure_control_projection": {
        "profile": "REST_STATELESS",
        "skippedScenarios": [],
        "ignoredIntrusionRois": 0,
        "requestedRtpClockRate": 90000
      },
      "rec_server_id": "REC-01",
      "rec_camera_id": "00000003",
      "loitering": {
        "enabled": false,
        "roi_id": "primary",
        "roi_name": "Loitering ROI",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "point_x": 0.5,
        "point_y": 1.0,
        "confidence": 0.5,
        "dwell_seconds": 5.0,
        "rearm_seconds": 1.0,
        "grace_seconds": 1.0,
        "retention_seconds": 60.0,
        "max_states": 1024
      },
      "fall": {
        "enabled": true,
        "person_score": 0.15,
        "joint_score": 0.3,
        "upright_angle_deg": 35.0,
        "down_angle_deg": 50.0,
        "torso_delta_deg": 25.0,
        "hip_drop_ratio": 0.25,
        "span_collapse_ratio": 0.7,
        "knee_guard_angle_deg": 100.0,
        "knee_guard_torso_max_deg": 45.0,
        "upright_hold_seconds": 0.5,
        "transition_window_seconds": 0.8,
        "transition_to_down_seconds": 0.8,
        "down_hold_seconds": 0.7,
        "test_skip_down_hold": true,
        "missing_grace_seconds": 0.5,
        "recovery_hold_seconds": 1.0,
        "confirmed_retention_seconds": 5.0,
        "reference_window_seconds": 1.0,
        "unconfirmed_retention_seconds": 5.0,
        "max_states": 1024,
        "history_capacity": 256,
        "roi_id": "primary",
        "roi_name": "쓰러짐 1",
        "debug_roi": true,
        "roi": [
          [
            0.273002421307506,
            0.2931451612903226
          ],
          [
            0.7633171912832929,
            0.2931451612903226
          ],
          [
            0.7633171912832929,
            0.8114247311827957
          ],
          [
            0.273002421307506,
            0.8114247311827957
          ]
        ]
      },
      "crowd": {
        "enabled": true,
        "person_confidence": 0.45,
        "head_confidence": 0.45,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "roi_name": "Crowd ROI",
        "roi_id": "primary",
        "debug_roi": true,
        "window_seconds": 3.0,
        "report_seconds": 3.0,
        "minimum_samples": 2,
        "stale_seconds": 6.0,
        "nms_enabled": true,
        "nms_iou_threshold": 0.85,
        "event_enabled": true,
        "reference_count": 15,
        "safe_ratio": 0.25,
        "caution_ratio": 0.5,
        "warning_ratio": 0.75,
        "danger_ratio": 0.9,
        "suppress_repeated_danger": true
      },
      "fight": {
        "enabled": false,
        "person_score": 0.15,
        "joint_score": 0.3,
        "pair_distance_ratio": 1.8,
        "pair_close_hold_seconds": 0.1,
        "arm_motion_window_seconds": 1.0,
        "arm_motion_ratio": 0.1,
        "toward_opponent_ratio": 0.01,
        "fight_window_seconds": 1.5,
        "required_bursts": 1,
        "burst_min_interval_seconds": 0.25,
        "rearm_quiet_seconds": 2.0,
        "pair_retention_seconds": 5.0,
        "max_people": 32,
        "max_pairs": 128,
        "history_capacity": 64,
        "roi_id": "primary",
        "roi_name": "싸움 1",
        "debug_roi": true,
        "roi": [
          [
            0.35230024213075056,
            0.190994623655914
          ],
          [
            0.8123486682808716,
            0.190994623655914
          ],
          [
            0.8123486682808716,
            0.780241935483871
          ],
          [
            0.35230024213075056,
            0.780241935483871
          ]
        ]
      },
      "event_cooldowns": {
        "FIRE": 10.0,
        "FALL": 15.0,
        "INTRUSION": 10.0,
        "LOITERING": 10.0,
        "FIGHT": 10.0,
        "CROWD": 10.0
      }
    }
  },
  "template": {
    "store": false,
    "persist_every": 1,
    "persist_mode": "all",
    "active_learning": false,
    "scenarios": "off",
    "optional_roles": [],
    "site_id": null,
    "analysis_fps_target": 10.0,
    "inference_profile": {
      "roles": [
        "det"
      ],
      "det_model": "RFDETRMedium",
      "thresholds": {
        "score": 0.5
      }
    },
    "pose": {
      "enabled": false
    },
    "fire": {
      "enabled": false
    },
    "tracking": {
      "enabled": true
    },
    "visualization": {
      "score_threshold": 0.25,
      "categories": [
        "person"
      ]
    },
    "intrusion": {
      "enabled": false,
      "roi_id": "primary",
      "debug_roi": true,
      "roi": [
        [
          0,
          0
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ],
        [
          0,
          1
        ]
      ],
      "point_x": 0.5,
      "point_y": 1.0,
      "confidence": 0.5,
      "dwell_seconds": 0.5,
      "rearm_seconds": 1.0,
      "grace_seconds": 0.5,
      "retention_seconds": 30.0,
      "max_states": 1024
    }
  }
}
