-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
30 lines (26 loc) · 798 Bytes
/
config.yaml
File metadata and controls
30 lines (26 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Camera Processing Routes
routes:
- name: "front_door_camera"
from: "rtsp://{{CAMERA_USER}}:{{CAMERA_PASS}}@{{CAMERA_IP}}/stream1"
processors:
- type: "external"
command: "python -m ultralytics_processor"
input_format: "frame_stream"
output_format: "json"
config:
confidence_threshold: 0.6
target_objects: ["person", "car"]
- type: "filter"
condition: "{{confidence}} > 0.7"
- type: "transform"
template: "Person detected at {{position}} ({{confidence}}%)"
to: "smtp://{{SMTP_SERVER}}:{{SMTP_PORT}}?user={{SMTP_USER}}&password={{SMTP_PASS}}&to={{ALERT_EMAIL}}"
env_vars:
- CAMERA_USER
- CAMERA_PASS
- CAMERA_IP
- SMTP_SERVER
- SMTP_PORT
- SMTP_USER
- SMTP_PASS
- ALERT_EMAIL