SIGN IN SIGN UP
roboflow / supervision UNCLAIMED

We write your reusable computer vision tools. 💜

36789 0 0 Python
2024-04-24 15:39:08 +02:00
---
comments: true
---
# Annotators
=== "VertexAnnotator"
```python
import supervision as sv
image = ...
key_points = sv.KeyPoints(...)
2024-05-13 14:30:55 +02:00
vertex_annotator = sv.VertexAnnotator(
color=sv.Color.GREEN,
radius=10,
2024-05-13 14:30:55 +02:00
)
annotated_frame = vertex_annotator.annotate(
scene=image.copy(),
key_points=key_points,
)
```
<div class="result" markdown>
![vertex-annotator-example](https://media.roboflow.com/supervision-annotator-examples/vertex-annotator-example.png){ align=center width="800" }
</div>
=== "EdgeAnnotator"
```python
import supervision as sv
image = ...
key_points = sv.KeyPoints(...)
2024-05-13 14:30:55 +02:00
edge_annotator = sv.EdgeAnnotator(
color=sv.Color.GREEN,
thickness=5,
2024-05-13 14:30:55 +02:00
)
annotated_frame = edge_annotator.annotate(
scene=image.copy(),
key_points=key_points,
)
```
<div class="result" markdown>
![edge-annotator-example](https://media.roboflow.com/supervision-annotator-examples/edge-annotator-example.png){ align=center width="800" }
</div>
2024-05-13 14:30:55 +02:00
=== "VertexLabelAnnotator"
```python
import supervision as sv
image = ...
key_points = sv.KeyPoints(...)
vertex_label_annotator = sv.VertexLabelAnnotator(
color=sv.Color.GREEN,
text_color=sv.Color.BLACK,
border_radius=5,
2024-05-13 14:30:55 +02:00
)
annotated_frame = vertex_label_annotator.annotate(
scene=image.copy(),
key_points=key_points,
2024-05-13 14:30:55 +02:00
)
```
<div class="result" markdown>
![vertex-label-annotator-example](https://media.roboflow.com/supervision-annotator-examples/vertex-label-annotator-example.png){ align=center width="800" }
</div>
<div class="md-typeset">
<h2><a href="#supervision.key_points.annotators.VertexAnnotator">VertexAnnotator</a></h2>
</div>
:::supervision.key_points.annotators.VertexAnnotator
2024-04-24 15:39:08 +02:00
<div class="md-typeset">
<h2><a href="#supervision.key_points.annotators.EdgeAnnotator">EdgeAnnotator</a></h2>
</div>
:::supervision.key_points.annotators.EdgeAnnotator
2024-05-13 14:30:55 +02:00
<div class="md-typeset">
<h2><a href="#supervision.key_points.annotators.VertexLabelAnnotator">VertexLabelAnnotator</a></h2>
2024-05-13 14:30:55 +02:00
</div>
:::supervision.key_points.annotators.VertexLabelAnnotator