Skip to content

Commit

Permalink
Updated ONNX example
Browse files Browse the repository at this point in the history
  • Loading branch information
PetreStegaroiu committed May 14, 2024
1 parent 95b6720 commit 3126055
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 373 deletions.
4 changes: 2 additions & 2 deletions Advanced/onnx_object_detection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This example demonstrates how you can use an ONNX model to detect objects in an

---
**NOTE:**
Use this example with SAS Event Stream Processing 2024.03 and later.
Use this example with SAS Event Stream Processing 2024.04 and later.

---

Expand Down Expand Up @@ -111,7 +111,7 @@ Click the object_tracker window to explore its settings.

After an ONNX model is used to detect objects and post-processing is applied, tracking the detected objects over time can be a useful next step. For example, you could follow a person between multiple frames. In this example, the w_object_tracker window tracks a mobile phone and an apple on a table, rather than a person.

Essentially, in addition to the bounding box, score, and label, each detected object is assigned a track ID by the window, represented by `Object0_id`, `Object1_id`, and so on, as can be seen by clicking ![Output Schema](img/output-schema-icon.png "Output Schema"). In short, the Object Tracker window uses an algorithm to give an object that is detected in frame 1 and frame 2 the same track ID in both frames. A static camera position works best for tracking objects with the Object Tracker window.
Essentially, in addition to the bounding box, score, and label, each detected object is assigned a track ID by the window, represented by `Object0_id` array, as can be seen by clicking ![Output Schema](img/output-schema-icon.png "Output Schema"). In short, the Object Tracker window uses an algorithm to give an object that is detected in frame 1 and frame 2 the same track ID in both frames. A static camera position works best for tracking objects with the Object Tracker window.

For more information, see [Using Object Tracker Windows](https://go.documentation.sas.com/doc/en/espcdc/v_043/espcreatewindows/p0jsgd7e0fa40ln16wxod1qpj9d2.htm).

Expand Down
Binary file not shown.
15 changes: 8 additions & 7 deletions Advanced/onnx_object_detection/grafana.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 1,
"id": 2,
"links": [],
"liveNow": false,
"panels": [
Expand All @@ -42,7 +42,9 @@
"controls": true,
"height": 0,
"heightMode": "auto",
"infinityPlay": false,
"name": "image",
"noResultsMessage": "Nothing to display...",
"scale": "auto",
"toolbar": false,
"width": 0,
Expand All @@ -59,9 +61,9 @@
"fields": [
"image"
],
"projectName": "onnx_object_detection",
"projectName": "computer_vision_with_onnx",
"refId": "A",
"serverUrl": "ws://esps-onnx-5fobject-5fdetection:80",
"serverUrl": "ws://esps-computer-5fvision-5fwith-5fonnx:80",
"windowName": "w_annotate"
}
],
Expand All @@ -71,7 +73,6 @@
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
Expand Down Expand Up @@ -108,8 +109,8 @@
"type": "timepicker"
},
"timezone": "browser",
"title": "ONNX Object Detection",
"title": "Computer Vision with ONNX",
"uid": "b054bce8-552f-4487-821e-f4c4d10d0637",
"version": 3,
"version": 5,
"weekStart": ""
}
}
Loading

0 comments on commit 3126055

Please sign in to comment.