Add TraceAnnotator description to the documentation

The documentation has been updated to include the `TraceAnnotator` class.
This commit is contained in:
SkalskiP 2023-10-04 15:35:07 +02:00
parent d7a5624d60
commit 1eb74ed88a
1 changed files with 25 additions and 0 deletions

View File

@ -124,6 +124,27 @@
</div>
=== "Trace"
```python
>>> import supervision as sv
>>> image = ...
>>> detections = sv.Detections(...)
>>> trace_annotator = sv.TraceAnnotator()
>>> annotated_frame = trace_annotator.annotate(
... scene=image.copy(),
... detections=detections
... )
```
<div class="result" markdown>
![label-annotator-example](https://media.roboflow.com/supervision-annotator-examples/label-annotator-example-2.png){ align=center width="800" }
</div>
## BoundingBoxAnnotator
:::supervision.annotators.core.BoundingBoxAnnotator
@ -147,3 +168,7 @@
## LabelAnnotator
:::supervision.annotators.core.LabelAnnotator
## TraceAnnotator
:::supervision.annotators.core.TraceAnnotator