diff --git a/supervision/detection/tools/polygon_zone.py b/supervision/detection/tools/polygon_zone.py index ccc6ec95..f78bd609 100644 --- a/supervision/detection/tools/polygon_zone.py +++ b/supervision/detection/tools/polygon_zone.py @@ -1,8 +1,8 @@ +import warnings from dataclasses import replace from typing import Iterable, Optional, Tuple import cv2 -import warnings import numpy as np import numpy.typing as npt @@ -12,7 +12,7 @@ from supervision.draw.color import Color from supervision.draw.utils import draw_polygon, draw_text from supervision.geometry.core import Position from supervision.geometry.utils import get_polygon_center -from supervision.utils.internal import deprecated_parameter, SupervisionWarnings +from supervision.utils.internal import SupervisionWarnings, deprecated_parameter class PolygonZone: @@ -101,7 +101,6 @@ class PolygonZone: return is_in_zone.astype(bool) - class PolygonZoneAnnotator: """ A class for annotating a polygon-shaped zone within a