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
-`count` - Object count changes within the region (contains entered/exited arrays)
289
305
-`objects` - Object changes within the region (entry/exit events with full object details)
290
306
291
307
**Purpose**: Both event types fire when objects enter or exit regions. The main difference is data format:
308
+
292
309
-**`count` events**: Focus on count changes with summary entry/exit information
293
310
-**`objects` events**: Provide complete object details for entry/exit events
294
311
295
312
**Note**: Both event types typically fire together for the same entry/exit events. Choose based on whether you need full object details (`objects`) or just count summaries (`count`). For continuous positional updates of objects within regions, subscribe to streaming data topics instead—see [Streaming Data Topics](#streaming-data-topics).
@@ -414,6 +433,7 @@ Each event includes object metadata and spatial context.
414
433
```
415
434
416
435
**Key Properties in Entry Events:**
436
+
417
437
-**`counts`**: Current object counts by type after the entry occurred
418
438
-**`entered` array**: Contains summary information about objects that just entered
419
439
-**`objects` array**: Full object details for all objects currently in the region, including the newly entered object with its `regions.{region_id}.entered` timestamp
@@ -488,6 +508,7 @@ Each event includes object metadata and spatial context.
488
508
```
489
509
490
510
**Key Properties in Exit Events:**
511
+
491
512
-**`counts`**: Current object counts by type after the exit occurred
492
513
-**`exited` array**: Contains critical `dwell` time data - how long each object spent in the region (essential for situational awareness applications like queue monitoring, loitering detection, and process timing analysis)
493
514
-**`objects` array**: Full details for objects still remaining in the region after the exit
@@ -541,33 +562,34 @@ Each event includes object metadata and spatial context.
541
562
```
542
563
543
564
**Key Properties in Tripwire Events:**
565
+
544
566
-**`direction` field**: Critical directional indicator (+1 or -1) showing which way each individual object crossed the tripwire relative to the configured directional flag - essential for counting applications, access control, and flow analysis. Each object in the `objects` array has its own direction field (always +1 or -1)
545
567
-**`objects` array**: Contains full object details at the moment of crossing, including position, velocity, and confidence
546
568
-**`counts`**: Number of objects crossing in this event - almost always 1 (single object crossing), except in rare cases where multiple objects cross simultaneously
547
569
548
570
### Event Field Descriptions
549
571
550
-
| Field | Type | Description |
551
-
|-------|------|-------------|
552
-
|`timestamp`| string | ISO 8601 timestamp of the original data frame or sensor input when the object interaction occurred (not when the event was detected or processed) |
553
-
|`scene_id`| string | UUID of the scene containing the region/tripwire |
554
-
|`scene_name`| string | Human-readable scene name |
555
-
|`region_id` / `tripwire_id`| string | UUID of the region or tripwire |
556
-
|`region_name` / `tripwire_name`| string | Human-readable region or tripwire name |
557
-
|`counts`| object | Current object counts by category |
558
-
|`objects`| array | Objects currently in region or crossing tripwire |
559
-
|`entered`| array | Objects that entered the region (ROI events only) |
560
-
|`exited`| array | Objects that exited the region (ROI events only); includes `object` details and `dwell` time in seconds |
561
-
|`metadata`| object | Region/tripwire configuration data |
562
-
|`dwell`| number | Time in seconds that an object spent in the region (only in exited events) |
|`timestamp`| string | ISO 8601 timestamp of the original data frame or sensor input when the object interaction occurred (not when the event was detected or processed) |
575
+
|`scene_id`| string | UUID of the scene containing the region/tripwire|
576
+
|`scene_name`| string | Human-readable scene name|
577
+
|`region_id` / `tripwire_id`| string | UUID of the region or tripwire|
578
+
|`region_name` / `tripwire_name`| string | Human-readable region or tripwire name |
579
+
|`counts`| object | Current object counts by category|
580
+
|`objects`| array | Objects currently in region or crossing tripwire|
581
+
|`entered`| array | Objects that entered the region (ROI events only)|
582
+
|`exited`| array | Objects that exited the region (ROI events only); includes `object` details and `dwell` time in seconds|
export SCENESCAPE_TOKEN="your-api-token"# Found in SceneScape Admin panel > Tokens (admin or scenectrl user)
@@ -785,6 +810,7 @@ client.loop_forever()
785
810
**Run:** `python3 -m http.server8000` then open http://<your-server-ip>:8000 in your browser
786
811
787
812
**Important:** Replace `YOUR_SCENESCAPE_HOST` and `YOUR_SUPASS` with your actual values:
813
+
788
814
- **Host**: Use `localhost` only if your browser and SceneScape are running on the same system, otherwise use the actual hostname or IP address of your SceneScape deployment
789
815
- **Password**: Use your SceneScape web interface login password (same as the `SUPASS` environment variable)
790
816
@@ -796,6 +822,7 @@ For applications that need direct MQTT access instead of WebSockets, additional
796
822
797
823
**Docker Compose Setup:**
798
824
In `docker-compose.yml`, uncomment the broker ports section:
825
+
799
826
```yaml
800
827
broker:
801
828
image: eclipse-mosquitto:2.0.22
@@ -806,6 +833,7 @@ broker:
806
833
807
834
**Kubernetes Setup:**
808
835
Direct MQTT access is configured via NodePort service. Check `kubernetes/scenescape-chart/values.yaml`:
836
+
809
837
```yaml
810
838
mqttService:
811
839
nodePort:
@@ -815,13 +843,15 @@ mqttService:
815
843
816
844
**MQTT Credentials:**
817
845
Use the generated MQTT credentials instead of web login credentials:
@@ -878,11 +909,13 @@ SceneScape's spatial analytics provide a powerful abstraction that separates mon
878
909
This architecture means your spatial analytics logic—the regions you define, the business rules you implement, and the applications you build—remain completely unchanged even as your sensor infrastructure evolves. Whether you add new cameras, upgrade to different sensor technologies, or reconfigure your monitoring setup, your ROIs and tripwires continue working seamlessly.
0 commit comments