-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatchbot.conf.yml
109 lines (90 loc) · 2.58 KB
/
watchbot.conf.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Location of sqlite db file.
sqlite-db-file: /var/watchbot/sqlite_motion.db
# The ticker interval given in miliseconds, the rate will not be faster than this.
frame-interval-ms: 200
# Setup a check on healthchecks.io
heartbeat-url: "https://hc-ping.com/{uuid}"
# Set to true on systemd hosts (RPi), prevent double logging, or running in foreground.
log-journal: false
# Whether to output debug logs
debug: false
### Cameras
# Axis notes
# Gstreamer pipeline:
# rtsp://user:pass@host:5454/axis-media/media.amp
# protocols=tcp
# NO videorate - doesn't work
# crop-x: 250
# crop-y: 0
# crop-w: 720
# crop-h: 720
# Hikvision notes - on second stream 360p
# rtsp://user:pass@host/Streaming/Channels/2
# protocols=udp
# videorate drop-only=true ! video/x-raw,framerate=5/1 ! appsink max-buffers=1 drop=true"
# crop-x: 200
# crop-y: 0
# crop-w: 360
# crop-h: 360
# On old Hikvision, cannot use videorate either as it doesn't work.
# Camera config
camera0:
name: "Camera 0"
url: "rtspsrc protocols=tcp location=rtsp://user:pass@host:5454/axis-media/media.amp do-retransmission=false latency=0 drop-on-latency=true ! decodebin ! videoconvert ! appsink max-buffers=1 drop=true"
telegram-bot-token: "00000:aaaaa-bbbbb"
telegram-group-alert: "-00000000"
telegram-group-command: "-00000000"
# Crops the image before resampling it to the size required by the model,
# usually a square, use this to prevent distortion.
crop-x: 250
crop-y: 0
crop-w: 720
crop-h: 720
# ROI is relative to the crop region, not the original frame size. Boxes outside
# the ROI are rejected.
roi-x: 10
roi-y: 0
roi-w: 700
roi-h: 720
# Max width of the box allowed, larger are rejected.
max-width: 500
# Whether we require all boxes to be in portrait orientation (landscape is rejected).
require-portrait: false
# camera1:
# ... etc, same as above
## Detector config
# The minimum required confidence to trigger a detection
detect-min-confidence: 10
# Which labels to alert on
detect-alert-labels:
- "person"
- "car"
- "motorbike"
# - "tvmonitor"
# The location of the model graph, it's size and complete set of detectable labels
detect-graph-file: "/home/mark/Workarea/ncappzoo/caffe/SSD_MobileNet/graph"
detect-graph-file: "/opt/graph-mobilenet-sdk-1.0/graph"
detect-graph-width: 300
detect-graph-height: 300
detect-graph-labels:
- "background"
- "aeroplane"
- "bicycle"
- "bird"
- "boat"
- "bottle"
- "bus"
- "car"
- "cat"
- "chair"
- "cow"
- "dining table"
- "dog"
- "horse"
- "motorbike"
- "person"
- "potted plant"
- "sheep"
- "sofa"
- "train"
- "tvmonitor"