You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Computer-vision/spatial-analysis-operations.md
+5-15Lines changed: 5 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,7 +238,6 @@ The following is an example of a JSON input for the SPACEANALYTICS_CONFIG parame
238
238
"type": "count",
239
239
"config": {
240
240
"trigger": "event",
241
-
"threshold": 13.00,
242
241
"focus": "footprint"
243
242
}
244
243
}
@@ -253,7 +252,7 @@ The following is an example of a JSON input for the SPACEANALYTICS_CONFIG parame
253
252
|`zones`| list| List of zones. |
254
253
|`name`| string| Friendly name for this zone.|
255
254
| `polygon` | list| Each value pair represents the x,y for vertices of a polygon. The polygon represents the areas in which people are tracked or counted. Polygon points are based on normalized coordinates (0-1), where the top left corner is (0.0, 0.0) and the bottom right corner is (1.0, 1.0).
256
-
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. |
255
+
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. This is an optional field and value is in ratio (0-1). For example, value 0.0253 will be 13 pixels on a video with image width = 512 (0.0253 X 512 = ~13).|
257
256
|`type`| string| For **cognitiveservices.vision.spatialanalysis-personcount**, this should be `count`.|
258
257
| `trigger` | string| The type of trigger for sending an event. Supported values are `event` for sending events when the count changes or `interval` for sending events periodically, irrespective of whether the count has changed or not.
259
258
|`output_frequency`| int | The rate at which events are egressed. When `output_frequency` = X, every X event is egressed, ex. `output_frequency` = 2 means every other event is output. The `output_frequency` is applicable to both `event` and `interval`. |
@@ -283,7 +282,6 @@ The following is an example of a JSON input for the `SPACEANALYTICS_CONFIG` para
283
282
"type": "linecrossing",
284
283
"config": {
285
284
"trigger": "event",
286
-
"threshold": 13.00,
287
285
"focus": "footprint"
288
286
}
289
287
}
@@ -300,7 +298,7 @@ The following is an example of a JSON input for the `SPACEANALYTICS_CONFIG` para
300
298
|`line`| list| The definition of the line. This is a directional line allowing you to understand "entry" vs. "exit".|
301
299
|`start`| value pair| x, y coordinates for line's starting point. The float values represent the position of the vertex relative to the top left corner. To calculate the absolute x, y values, you multiply these values with the frame size. |
302
300
|`end`| value pair| x, y coordinates for line's ending point. The float values represent the position of the vertex relative to the top left corner. To calculate the absolute x, y values, you multiply these values with the frame size. |
303
-
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. The default value is 13. This is the recommended value to achieve maximum accuracy. |
301
+
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. This is an optional field and value is in ratio (0-1). For example, value 0.0253 will be 13 pixels on a video with image width = 512 (0.0253 X 512 = ~13).|
304
302
|`type`| string| For **cognitiveservices.vision.spatialanalysis-personcrossingline**, this should be `linecrossing`.|
305
303
|`trigger`|string|The type of trigger for sending an event.<br>Supported Values: "event": fire when someone crosses the line.|
306
304
|`focus`| string| The point location within person's bounding box used to calculate events. Focus's value can be `footprint` (the footprint of person), `bottom_center` (the bottom center of person's bounding box), `center` (the center of person's bounding box). The default value is footprint.|
@@ -319,7 +317,6 @@ This is an example of a JSON input for the `SPACEANALYTICS_CONFIG` parameter tha
319
317
"type": "zonecrossing",
320
318
"config":{
321
319
"trigger": "event",
322
-
"threshold": 38.00,
323
320
"focus": "footprint"
324
321
}
325
322
}]
@@ -331,7 +328,6 @@ This is an example of a JSON input for the `SPACEANALYTICS_CONFIG` parameter tha
331
328
"type": "zonedwelltime",
332
329
"config":{
333
330
"trigger": "event",
334
-
"threshold": 13.00,
335
331
"focus": "footprint"
336
332
}
337
333
}]
@@ -345,7 +341,7 @@ This is an example of a JSON input for the `SPACEANALYTICS_CONFIG` parameter tha
345
341
|`name`| string| Friendly name for this zone.|
346
342
| `polygon` | list| Each value pair represents the x,y for vertices of polygon. The polygon represents the areas in which people are tracked or counted. The float values represent the position of the vertex relative to the top left corner. To calculate the absolute x, y values, you multiply these values with the frame size.
347
343
|`target_side`| int| Specifies a side of the zone defined by `polygon` to measure how long people face that side while in the zone. 'dwellTimeForTargetSide' will output that estimated time. Each side is a numbered edge between the two vertices of the polygon that represents your zone. For example, the edge between the first two vertices of the polygon represents the first side, 'side'=1. The value of `target_side` is between `[0,N-1]` where `N` is the number of sides of the `polygon`. This is an optional field. |
348
-
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. The default value is 38 when the type is `zonecrossing` and 13 when time is `DwellTime`. These are the recommended values to achieve maximum accuracy. |
344
+
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. This is an optional field and value is in ratio (0-1). For example, value 0.074 will be 38 pixels on a video with image width = 512 (0.074 X 512 = ~38).|
349
345
|`type`| string| For **cognitiveservices.vision.spatialanalysis-personcrossingpolygon** this should be `zonecrossing` or `zonedwelltime`.|
350
346
|`trigger`|string|The type of trigger for sending an event<br>Supported Values: "event": fire when someone enters or exits the zone.|
351
347
|`focus`| string| The point location within person's bounding box used to calculate events. Focus's value can be `footprint` (the footprint of person), `bottom_center` (the bottom center of person's bounding box), `center` (the center of person's bounding box). The default value is footprint.|
@@ -366,8 +362,7 @@ This is an example of a JSON input for the `SPACEANALYTICS_CONFIG` parameter tha
366
362
"output_frequency":1,
367
363
"minimum_distance_threshold":6.0,
368
364
"maximum_distance_threshold":35.0,
369
-
"aggregation_method": "average"
370
-
"threshold": 13.00,
365
+
"aggregation_method": "average",
371
366
"focus": "footprint"
372
367
}
373
368
}]
@@ -380,7 +375,7 @@ This is an example of a JSON input for the `SPACEANALYTICS_CONFIG` parameter tha
380
375
|`zones`| list| List of zones. |
381
376
|`name`| string| Friendly name for this zone.|
382
377
| `polygon` | list| Each value pair represents the x,y for vertices of polygon. The polygon represents the areas in which people are counted and the distance between people is measured. The float values represent the position of the vertex relative to the top left corner. To calculate the absolute x, y values, you multiply these values with the frame size.
383
-
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. |
378
+
|`threshold`| float| Events are egressed when the person is greater than this number of pixels inside the zone. This is an optional field and value is in ratio (0-1). For example, value 0.0253 will be 13 pixels on a video with image width = 512 (0.0253 X 512 = ~13).|
384
379
|`type`| string| For **cognitiveservices.vision.spatialanalysis-persondistance**, this should be `persondistance`.|
385
380
| `trigger` | string| The type of trigger for sending an event. Supported values are `event` for sending events when the count changes or `interval` for sending events periodically, irrespective of whether the count has changed or not.
386
381
|`output_frequency`| int | The rate at which events are egressed. When `output_frequency` = X, every X event is egressed, ex. `output_frequency` = 2 means every other event is output. The `output_frequency` is applicable to both `event` and `interval`.|
@@ -412,7 +407,6 @@ The following is an example of a JSON input for the `SPACEANALYTICS_CONFIG` para
412
407
"type": "linecrossing",
413
408
"config": {
414
409
"trigger": "event",
415
-
"threshold": 13.00,
416
410
"focus": "footprint"
417
411
}
418
412
}
@@ -431,7 +425,6 @@ The following is an example of a JSON input for the `SPACEANALYTICS_CONFIG` para
431
425
"output_frequency": 1,
432
426
"minimum_distance_threshold": 6.0,
433
427
"maximum_distance_threshold": 35.0,
434
-
"threshold": 13.00,
435
428
"focus": "footprint"
436
429
}
437
430
},
@@ -440,21 +433,18 @@ The following is an example of a JSON input for the `SPACEANALYTICS_CONFIG` para
0 commit comments