Add Tracker ID warning and image to TraceAnnotator doc

Added a warning about the requirement of `tracker_id` for TraceAnnotator in the `core.py`. Also, included an example image in the TraceAnnotator initialization for better understanding in both `core.py` and `annotators.md`.
This commit is contained in:
SkalskiP
2023-10-04 16:15:38 +02:00
parent 14388e56a2
commit 8511bbb762
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -141,7 +141,7 @@
<div class="result" markdown>
![label-annotator-example](https://media.roboflow.com/supervision-annotator-examples/label-annotator-example-2.png){ align=center width="800" }
![trace-annotator-example](https://media.roboflow.com/supervision-annotator-examples/trace-annotator-example.png){ align=center width="800" }
</div>
+9
View File
@@ -568,6 +568,12 @@ class LabelAnnotator:
class TraceAnnotator:
"""
A class for drawing trace paths on an image based on detection coordinates.
!!! warning
This annotator utilizes the `tracker_id`. Read
[here](https://supervision.roboflow.com/trackers/) to learn how to plug
tracking into your inference pipeline.
"""
def __init__(
@@ -617,6 +623,9 @@ class TraceAnnotator:
... detections=detections
... )
```
![trace-annotator-example](https://media.roboflow.com/
supervision-annotator-examples/trace-annotator-example.png)
"""
self.trace.put(detections)