-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig-example.json
More file actions
114 lines (113 loc) · 3.1 KB
/
config-example.json
File metadata and controls
114 lines (113 loc) · 3.1 KB
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
110
111
112
113
114
{
"timeout": 10,
"logging": {
"version": 1,
"formatters": {
"aiGuard": {
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S"
}
},
"handlers": {
"default": {
"level": "INFO",
"formatter": "aiGuard",
"class": "logging.StreamHandler"
},
"file": {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "aiGuard",
"filename": "aiGuard.log",
"maxBytes": 10485760,
"backupCount": 10
}
},
"loggers": {
"": {
"handlers": ["file", "default"],
"level": "INFO",
"propagate": true
}
}
},
"actions": {
"pushover": {
"api-token": "...",
"user-key": "...",
"timeout": 60,
"lock-file": "pushover.disable",
"active": "true"
}
},
"processors": {
"notifyPerson": {
"classes": [
{
"name": "nothing",
"detections": {
"mode": "none"
}
},
{
"name": "hot",
"detections": {
"mode": "any",
"keys": ["person"]
},
"action": "pushover",
"throttle": {
"active": "true",
"delta": 100,
"threshold_size": 1036800
}
},
{
"name": "common",
"detections": {
"mode": "all",
"keys": ["cow", "bench", "horse", "cup", "dog", "bird", "chair", "dining table", "sheep"]
}
},
{
"name": "check",
"detections": {
"mode": "move"
}
}
]
},
"classify": {
"classes": [
{
"name": "check",
"detections": {
"mode": "move"
}
}
]
}
},
"directories": {
"one": {
"path": "/home/ftp/ipcam/one",
"regexp": ".+\\.jpg",
"processor": "notifyPerson",
"processFirst": "true"
},
"two": {
"path": "/home/ftp/ipcam/two",
"regexp": ".+\\.jpg",
"processor": "classify",
"processFirst": "true"
}
},
"detector": {
"type": "YOLOv3",
"model": "models/yolo.h5",
"fallback": {
"type": "RetinaNet",
"model": "models/resnet50_coco_best_v2.0.1.h5"
},
"outdir": "processed"
}
}