Update deprecation annotations and refactor `deprecated` utility usage
This commit is contained in:
parent
ae6aa369ae
commit
0ba57b2f57
|
|
@ -819,6 +819,7 @@ class Detections:
|
|||
|
||||
@classmethod
|
||||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ def pad_boxes(xyxy: np.ndarray, px: int, py: int | None = None) -> np.ndarray:
|
|||
|
||||
|
||||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.30.0",
|
||||
args_mapping={"normalized_xyxy": "xyxy"},
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ from supervision.validators import validate_resolution
|
|||
|
||||
|
||||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -495,6 +495,7 @@ class ConfusionMatrix:
|
|||
|
||||
|
||||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.31.0",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ import cv2
|
|||
import numpy as np
|
||||
import numpy.typing as npt
|
||||
from PIL import Image
|
||||
from supervision.geometry.core import Point
|
||||
from typing_extensions import Literal
|
||||
|
||||
from deprecate import deprecated
|
||||
from supervision import Point
|
||||
from supervision.annotators.base import ImageType
|
||||
from supervision.draw.color import Color, unify_to_bgr
|
||||
from supervision.utils.conversion import (
|
||||
|
|
@ -287,6 +287,7 @@ def letterbox_image(
|
|||
|
||||
|
||||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.32.0",
|
||||
)
|
||||
|
|
@ -633,6 +634,7 @@ class ImageSink:
|
|||
|
||||
|
||||
@deprecated(
|
||||
target=None,
|
||||
deprecated_in="0.27.0",
|
||||
remove_in="0.27.0",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue