|
19 | 19 |
|
20 | 20 | </div> |
21 | 21 |
|
22 | | -=== "Mask" |
| 22 | +=== "BoxCorner" |
23 | 23 |
|
24 | 24 | ```python |
25 | 25 | >>> import supervision as sv |
26 | 26 |
|
27 | 27 | >>> image = ... |
28 | 28 | >>> detections = sv.Detections(...) |
29 | 29 |
|
30 | | - >>> mask_annotator = sv.MaskAnnotator() |
31 | | - >>> annotated_frame = mask_annotator.annotate( |
| 30 | + >>> corner_annotator = sv.BoxCornerAnnotator() |
| 31 | + >>> annotated_frame = corner_annotator.annotate( |
32 | 32 | ... scene=image.copy(), |
33 | 33 | ... detections=detections |
34 | 34 | ... ) |
35 | 35 | ``` |
36 | 36 |
|
37 | 37 | <div class="result" markdown> |
38 | 38 |
|
39 | | - { align=center width="800" } |
| 39 | + { align=center width="800" } |
40 | 40 |
|
41 | 41 | </div> |
42 | 42 |
|
43 | | -=== "Ellipse" |
| 43 | +=== "BoxMaskAnnotator" |
44 | 44 |
|
45 | 45 | ```python |
46 | 46 | >>> import supervision as sv |
47 | 47 |
|
48 | 48 | >>> image = ... |
49 | 49 | >>> detections = sv.Detections(...) |
50 | 50 |
|
51 | | - >>> ellipse_annotator = sv.EllipseAnnotator() |
52 | | - >>> annotated_frame = ellipse_annotator.annotate( |
| 51 | + >>> box_mask_annotator = sv.BoxMaskAnnotator() |
| 52 | + >>> annotated_frame = box_mask_annotator.annotate( |
53 | 53 | ... scene=image.copy(), |
54 | 54 | ... detections=detections |
55 | 55 | ... ) |
56 | 56 | ``` |
57 | 57 |
|
58 | 58 | <div class="result" markdown> |
59 | 59 |
|
60 | | - { align=center width="800" } |
| 60 | + { align=center width="800" } |
61 | 61 |
|
62 | 62 | </div> |
63 | 63 |
|
64 | | -=== "BoxCorner" |
| 64 | +=== "Circle" |
65 | 65 |
|
66 | 66 | ```python |
67 | 67 | >>> import supervision as sv |
68 | 68 |
|
69 | 69 | >>> image = ... |
70 | 70 | >>> detections = sv.Detections(...) |
71 | 71 |
|
72 | | - >>> corner_annotator = sv.BoxCornerAnnotator() |
73 | | - >>> annotated_frame = corner_annotator.annotate( |
| 72 | + >>> circle_annotator = sv.CircleAnnotator() |
| 73 | + >>> annotated_frame = circle_annotator.annotate( |
74 | 74 | ... scene=image.copy(), |
75 | 75 | ... detections=detections |
76 | 76 | ... ) |
77 | 77 | ``` |
78 | 78 |
|
79 | 79 | <div class="result" markdown> |
80 | 80 |
|
81 | | - { align=center width="800" } |
| 81 | + { align=center width="800" } |
82 | 82 |
|
83 | 83 | </div> |
84 | 84 |
|
85 | | -=== "Circle" |
| 85 | +=== "Ellipse" |
86 | 86 |
|
87 | 87 | ```python |
88 | 88 | >>> import supervision as sv |
89 | 89 |
|
90 | 90 | >>> image = ... |
91 | 91 | >>> detections = sv.Detections(...) |
92 | 92 |
|
93 | | - >>> circle_annotator = sv.CircleAnnotator() |
94 | | - >>> annotated_frame = circle_annotator.annotate( |
| 93 | + >>> ellipse_annotator = sv.EllipseAnnotator() |
| 94 | + >>> annotated_frame = ellipse_annotator.annotate( |
95 | 95 | ... scene=image.copy(), |
96 | 96 | ... detections=detections |
97 | 97 | ... ) |
98 | 98 | ``` |
99 | 99 |
|
100 | 100 | <div class="result" markdown> |
101 | 101 |
|
102 | | - { align=center width="800" } |
| 102 | + { align=center width="800" } |
| 103 | + |
| 104 | + </div> |
| 105 | + |
| 106 | +=== "Mask" |
| 107 | + |
| 108 | + ```python |
| 109 | + >>> import supervision as sv |
| 110 | + |
| 111 | + >>> image = ... |
| 112 | + >>> detections = sv.Detections(...) |
| 113 | + |
| 114 | + >>> mask_annotator = sv.MaskAnnotator() |
| 115 | + >>> annotated_frame = mask_annotator.annotate( |
| 116 | + ... scene=image.copy(), |
| 117 | + ... detections=detections |
| 118 | + ... ) |
| 119 | + ``` |
| 120 | + |
| 121 | + <div class="result" markdown> |
| 122 | + |
| 123 | + { align=center width="800" } |
103 | 124 |
|
104 | 125 | </div> |
105 | 126 |
|
|
170 | 191 |
|
171 | 192 | :::supervision.annotators.core.BoundingBoxAnnotator |
172 | 193 |
|
173 | | -## MaskAnnotator |
174 | | - |
175 | | -:::supervision.annotators.core.MaskAnnotator |
176 | | - |
177 | | -## EllipseAnnotator |
178 | | - |
179 | | -:::supervision.annotators.core.EllipseAnnotator |
180 | | - |
181 | 194 | ## BoxCornerAnnotator |
182 | 195 |
|
183 | 196 | :::supervision.annotators.core.BoxCornerAnnotator |
184 | 197 |
|
| 198 | +## BoxMaskAnnotator |
| 199 | + |
| 200 | +:::supervision.annotators.core.BoxMaskAnnotator |
| 201 | + |
185 | 202 | ## CircleAnnotator |
186 | 203 |
|
187 | 204 | :::supervision.annotators.core.CircleAnnotator |
188 | 205 |
|
189 | | -## LabelAnnotator |
| 206 | +## EllipseAnnotator |
190 | 207 |
|
191 | | -:::supervision.annotators.core.LabelAnnotator |
| 208 | +:::supervision.annotators.core.EllipseAnnotator |
192 | 209 |
|
193 | | -## TraceAnnotator |
| 210 | +## MaskAnnotator |
194 | 211 |
|
195 | | -:::supervision.annotators.core.TraceAnnotator |
| 212 | +:::supervision.annotators.core.MaskAnnotator |
| 213 | + |
| 214 | +## LabelAnnotator |
| 215 | + |
| 216 | +:::supervision.annotators.core.LabelAnnotator |
196 | 217 |
|
197 | 218 | ## BlurAnnotator |
198 | 219 |
|
199 | 220 | :::supervision.annotators.core.BlurAnnotator |
| 221 | + |
| 222 | +## TraceAnnotator |
| 223 | + |
| 224 | +:::supervision.annotators.core.TraceAnnotator |
0 commit comments