|
| 1 | +=== "BoundingBox" |
| 2 | + |
| 3 | + ```python |
| 4 | + >>> import supervision as sv |
| 5 | + |
| 6 | + >>> image = ... |
| 7 | + >>> detections = sv.Detections(...) |
| 8 | + |
| 9 | + >>> bounding_box_annotator = sv.BoundingBoxAnnotator() |
| 10 | + >>> annotated_frame = bounding_box_annotator.annotate( |
| 11 | + ... scene=image.copy(), |
| 12 | + ... detections=detections |
| 13 | + ... ) |
| 14 | + ``` |
| 15 | + |
| 16 | + <div class="result" markdown> |
| 17 | + |
| 18 | + { align=center width="800" } |
| 19 | + |
| 20 | + </div> |
| 21 | + |
| 22 | +=== "Mask" |
| 23 | + |
| 24 | + ```python |
| 25 | + >>> import supervision as sv |
| 26 | + |
| 27 | + >>> image = ... |
| 28 | + >>> detections = sv.Detections(...) |
| 29 | + |
| 30 | + >>> mask_annotator = sv.MaskAnnotator() |
| 31 | + >>> annotated_frame = mask_annotator.annotate( |
| 32 | + ... scene=image.copy(), |
| 33 | + ... detections=detections |
| 34 | + ... ) |
| 35 | + ``` |
| 36 | + |
| 37 | + <div class="result" markdown> |
| 38 | + |
| 39 | + { align=center width="800" } |
| 40 | + |
| 41 | + </div> |
| 42 | + |
| 43 | +=== "Ellipse" |
| 44 | + |
| 45 | + ```python |
| 46 | + >>> import supervision as sv |
| 47 | + |
| 48 | + >>> image = ... |
| 49 | + >>> detections = sv.Detections(...) |
| 50 | + |
| 51 | + >>> ellipse_annotator = sv.EllipseAnnotator() |
| 52 | + >>> annotated_frame = ellipse_annotator.annotate( |
| 53 | + ... scene=image.copy(), |
| 54 | + ... detections=detections |
| 55 | + ... ) |
| 56 | + ``` |
| 57 | + |
| 58 | + <div class="result" markdown> |
| 59 | + |
| 60 | + { align=center width="800" } |
| 61 | + |
| 62 | + </div> |
| 63 | + |
| 64 | +=== "BoxCorner" |
| 65 | + |
| 66 | + ```python |
| 67 | + >>> import supervision as sv |
| 68 | + |
| 69 | + >>> image = ... |
| 70 | + >>> detections = sv.Detections(...) |
| 71 | + |
| 72 | + >>> corner_annotator = sv.BoxCornerAnnotator() |
| 73 | + >>> annotated_frame = corner_annotator.annotate( |
| 74 | + ... scene=image.copy(), |
| 75 | + ... detections=detections |
| 76 | + ... ) |
| 77 | + ``` |
| 78 | + |
| 79 | + <div class="result" markdown> |
| 80 | + |
| 81 | + { align=center width="800" } |
| 82 | + |
| 83 | + </div> |
| 84 | + |
| 85 | +=== "Circle" |
| 86 | + |
| 87 | + ```python |
| 88 | + >>> import supervision as sv |
| 89 | + |
| 90 | + >>> image = ... |
| 91 | + >>> detections = sv.Detections(...) |
| 92 | + |
| 93 | + >>> circle_annotator = sv.CircleAnnotator() |
| 94 | + >>> annotated_frame = circle_annotator.annotate( |
| 95 | + ... scene=image.copy(), |
| 96 | + ... detections=detections |
| 97 | + ... ) |
| 98 | + ``` |
| 99 | + |
| 100 | + <div class="result" markdown> |
| 101 | + |
| 102 | + { align=center width="800" } |
| 103 | + |
| 104 | + </div> |
| 105 | + |
| 106 | +=== "Label" |
| 107 | + |
| 108 | + ```python |
| 109 | + >>> import supervision as sv |
| 110 | + |
| 111 | + >>> image = ... |
| 112 | + >>> detections = sv.Detections(...) |
| 113 | + |
| 114 | + >>> label_annotator = sv.LabelAnnotator(text_position=sv.Position.CENTER) |
| 115 | + >>> annotated_frame = label_annotator.annotate( |
| 116 | + ... scene=image.copy(), |
| 117 | + ... detections=detections |
| 118 | + ... ) |
| 119 | + ``` |
| 120 | + |
| 121 | + <div class="result" markdown> |
| 122 | + |
| 123 | + { align=center width="800" } |
| 124 | + |
| 125 | + </div> |
| 126 | + |
| 127 | +## BoundingBoxAnnotator |
| 128 | + |
| 129 | +:::supervision.annotators.core.BoundingBoxAnnotator |
| 130 | + |
| 131 | +## MaskAnnotator |
| 132 | + |
| 133 | +:::supervision.annotators.core.MaskAnnotator |
| 134 | + |
| 135 | +## EllipseAnnotator |
| 136 | + |
| 137 | +:::supervision.annotators.core.EllipseAnnotator |
| 138 | + |
| 139 | +## BoxCornerAnnotator |
| 140 | + |
| 141 | +:::supervision.annotators.core.BoxCornerAnnotator |
| 142 | + |
| 143 | +## CircleAnnotator |
| 144 | + |
| 145 | +:::supervision.annotators.core.CircleAnnotator |
| 146 | + |
| 147 | +## LabelAnnotator |
| 148 | + |
| 149 | +:::supervision.annotators.core.LabelAnnotator |
0 commit comments