This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
crowddetector.CrowdDetectorFilter.kmd.json
254 lines (254 loc) · 8.22 KB
/
crowddetector.CrowdDetectorFilter.kmd.json
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
{
"remoteClasses": [
{
"name": "CrowdDetectorFilter",
"doc": "Filter that detects people agglomeration in video streams",
"extends": "Filter",
"constructor": {
"doc": "Create a :rom:cls:`CrowdDetectorFilter`",
"params": [
{
"name": "mediaPipeline",
"doc": "the :rom:cls:`MediaPipeline` to which the filter belongs",
"type": "MediaPipeline"
},
{
"name": "rois",
"doc": "Regions of interest for the filter",
"type": "RegionOfInterest[]"
}
]
},
"properties": [
{
"name": "processingWidth",
"doc": "The processing image will be resized to this width (in pixels)",
"type": "int",
"readOnly": false,
"defaultValue": "320"
}
],
"events": [
"CrowdDetectorFluidity",
"CrowdDetectorOccupancy",
"CrowdDetectorDirection"
]
}
],
"complexTypes": [
{
"typeFormat": "REGISTER",
"properties": [
{
"name": "x",
"doc": "Percentage relative to the image width to calculate the X coordinate of the point [0..1]",
"type": "float"
},
{
"name": "y",
"doc": "Percentage relative to the image height to calculate the Y coordinate of the point [0..1]",
"type": "float"
}
],
"name": "RelativePoint",
"doc": "Relative points in a physical screen, values are a percentage relative to the image dimensions. X left to right and Y top to down."
},
{
"typeFormat": "REGISTER",
"properties": [
{
"name": "occupancyLevelMin",
"doc": "minimun occupancy percentage in the ROI to send occupancy events",
"type": "int",
"optional": true,
"defaultValue": 10
},
{
"name": "occupancyLevelMed",
"doc": "send occupancy level = 1 if the occupancy percentage is between occupancy_level_min and this level",
"type": "int",
"optional": true,
"defaultValue": 35
},
{
"name": "occupancyLevelMax",
"doc": "send occupancy level = 2 if the occupancy percentage is between occupancy_level_med and this level,\nand send occupancy level = 3 if the occupancy percentage is between this level and 100",
"type": "int",
"optional": true,
"defaultValue": 65
},
{
"name": "occupancyNumFramesToEvent",
"doc": "number of consecutive frames that a new occupancy level has to be detected to recognize it as a occupancy level change.\nA new occupancy event will be send",
"type": "int",
"optional": true,
"defaultValue": 5
},
{
"name": "fluidityLevelMin",
"doc": "minimun fluidity percentage in the ROI to send fluidity events",
"type": "int",
"optional": true,
"defaultValue": 10
},
{
"name": "fluidityLevelMed",
"doc": "send fluidity level = 1 if the fluidity percentage is between fluidity_level_min and this level",
"type": "int",
"optional": true,
"defaultValue": 35
},
{
"name": "fluidityLevelMax",
"doc": "send fluidity level = 2 if the fluidity percentage is between fluidity_level_med and this level,\n and send fluidity level = 3 if the fluidity percentage is between this level and 100",
"type": "int",
"optional": true,
"defaultValue": 65
},
{
"name": "fluidityNumFramesToEvent",
"doc": "number of consecutive frames that a new fluidity level has to be detected to recognize it as a fluidity level change.\n A new fluidity event will be send",
"type": "int",
"optional": true,
"defaultValue": 5
},
{
"name": "sendOpticalFlowEvent",
"doc": "Enable/disable the movement direction detection into the ROI",
"type": "boolean",
"optional": true,
"defaultValue": false
},
{
"name": "opticalFlowNumFramesToEvent",
"doc": "number of consecutive frames that a new direction of movement has to be detected to recognize a new movement direction. \n A new direction event will be send",
"type": "int",
"optional": true,
"defaultValue": 3
},
{
"name": "opticalFlowNumFramesToReset",
"doc": "number of consecutive frames in order to reset the counter of repeated directions",
"type": "int",
"optional": true,
"defaultValue": 3
},
{
"name": "opticalFlowAngleOffset",
"doc": "Direction of the movement. The angle could have four different values: \n left (0), up (90), right (180) and down (270). This cartesian axis could be rotated adding an angle offset",
"type": "int",
"optional": true,
"defaultValue": 0
}
],
"name": "RegionOfInterestConfig",
"doc": "data structure for configuration of CrowdDetector regions of interest"
},
{
"typeFormat": "REGISTER",
"properties": [
{
"name": "points",
"doc": "list of points delimiting the region of interest",
"type": "RelativePoint[]"
},
{
"name": "regionOfInterestConfig",
"doc": "data structure for configuration of CrowdDetector regions of interest",
"type": "RegionOfInterestConfig"
},
{
"name": "id",
"doc": "identifier of the region of interest. The string used for the id must begin \n with a letter followed by an alphanumeric character included (/-_.:+)",
"type": "String"
}
],
"name": "RegionOfInterest",
"doc": "Region of interest for some events in a video processing filter"
}
],
"events": [
{
"properties": [
{
"name": "fluidityPercentage",
"doc": "Percentage of fluidity in the ROI",
"type": "float"
},
{
"name": "fluidityLevel",
"doc": "Level of fluidity in the ROI",
"type": "int"
},
{
"name": "roiID",
"doc": "Opaque String indicating the ID of the involved ROI.
@deprecated Use <code>roiId</code> instead.
",
"type": "String"
},
{
"name": "roiId",
"doc": "Opaque String indicating the ID of the involved ROI",
"type": "String"
}
],
"extends": "Media",
"name": "CrowdDetectorFluidity",
"doc": "Event raise when a level of fluidity is detected in a ROI"
},
{
"properties": [
{
"name": "occupancyPercentage",
"doc": "Percentage of occupancy in the ROI",
"type": "float"
},
{
"name": "occupancyLevel",
"doc": "Level of occupancy in the ROI",
"type": "int"
},
{
"name": "roiID",
"doc": "Opaque String indicating the ID of the involved ROI.
@deprecated Use <code>roiId</code> instead.
",
"type": "String"
},
{
"name": "roiId",
"doc": "Opaque String indicating the ID of the involved ROI",
"type": "String"
}
],
"extends": "Media",
"name": "CrowdDetectorOccupancy",
"doc": "Event raise when a level of occupancy is detected in a ROI"
},
{
"properties": [
{
"name": "directionAngle",
"doc": "Direction angle of the detected movement in the ROI",
"type": "float"
},
{
"name": "roiID",
"doc": "Opaque String indicating the ID of the involved ROI.
@deprecated Use <code>roiId</code> instead.
",
"type": "String"
},
{
"name": "roiId",
"doc": "Opaque String indicating the ID of the involved ROI",
"type": "String"
}
],
"extends": "Media",
"name": "CrowdDetectorDirection",
"doc": "Event raise when a movement direction is detected in a ROI"
}
]
}