docs: 📝 supervision/annotators/core.py PercentageBarAnnotator >>>/... removed

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
Onuralp SEZER
2024-01-24 15:41:18 +03:00
parent 5a89e2170f
commit d4e0d8d46d
3 changed files with 17 additions and 17 deletions
+8 -8
View File
@@ -194,16 +194,16 @@ comments: true
=== "PercentageBar"
```python
>>> import supervision as sv
import supervision as sv
>>> image = ...
>>> detections = sv.Detections(...)
image = ...
detections = sv.Detections(...)
>>> percentage_bar_annotator = sv.PercentageBarAnnotator()
>>> annotated_frame = percentage_bar_annotator.annotate(
... scene=image.copy(),
... detections=detections
... )
percentage_bar_annotator = sv.PercentageBarAnnotator()
annotated_frame = percentage_bar_annotator.annotate(
scene=image.copy(),
detections=detections
)
```
<div class="result" markdown>
+8 -8
View File
@@ -1562,16 +1562,16 @@ class PercentageBarAnnotator(BaseAnnotator):
Example:
```python
>>> import supervision as sv
import supervision as sv
>>> image = ...
>>> detections = sv.Detections(...)
image = ...
detections = sv.Detections(...)
>>> percentage_bar_annotator = sv.BoundingBoxAnnotator()
>>> annotated_frame = percentage_bar_annotator.annotate(
... scene=image.copy(),
... detections=detections
... )
percentage_bar_annotator = sv.BoundingBoxAnnotator()
annotated_frame = percentage_bar_annotator.annotate(
scene=image.copy(),
detections=detections
)
```
![percentage-bar-example](https://media.roboflow.com/
+1 -1
View File
@@ -24,7 +24,7 @@ def get_polygon_center(polygon: np.ndarray) -> Point:
```python
from supervision.geometry.utils import get_polygon_center
import numpy as np
vertices = np.array([[0, 0], [0, 1], [1, 1], [1, 0]])
get_center(vertices)
Point(x=0.5, y=0.5)