fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot] committed 2023-09-28 21:24:53 +00:00
1 parent c7582f7c07
commit 53f2b4fd45
2 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -16,4 +16,4 @@
## LabelAnnotator
:::supervision.annotators.core.LabelAnnotator
:::supervision.annotators.core.LabelAnnotator
+4 -6
View File
@@ -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(),