fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
1 parent
c7582f7c07
commit
53f2b4fd45
2 files changed
+5
-7
No files matched your search
@@ -16,4 +16,4 @@
|
||||
|
||||
## LabelAnnotator
|
||||
|
||||
:::supervision.annotators.core.LabelAnnotator
|
||||
:::supervision.annotators.core.LabelAnnotator
|
||||
@@ -1,10 +1,7 @@
|
||||
import os.path
|
||||
from collections import defaultdict
|
||||
from typing import List, Optional, Tuple, Union
|
||||
from typing import List, Tuple, Union
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
|
||||
from supervision.annotators.base import (
|
||||
BaseAnnotator,
|
||||
@@ -308,8 +305,9 @@ class BoxCornerAnnotator(BaseAnnotator):
|
||||
|
||||
class LabelAnnotator:
|
||||
"""
|
||||
A class for annotating labels on an image using provided detections.
|
||||
"""
|
||||
A class for annotating labels on an image using provided detections.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
color: Union[Color, ColorPalette] = ColorPalette.default(),
|
||||
|
||||
Reference in new issue
Block a user