diff --git a/supervision/__init__.py b/supervision/__init__.py index 6cdb23ca..f8e7a832 100644 --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -34,7 +34,6 @@ from supervision.dataset.core import ( ClassificationDataset, DetectionDataset, ) -from supervision.utils.conversion import pillow_to_cv2, cv2_to_pillow from supervision.detection.annotate import BoxAnnotator from supervision.detection.core import Detections from supervision.detection.line_zone import LineZone, LineZoneAnnotator @@ -72,6 +71,7 @@ from supervision.geometry.core import Point, Position, Rect from supervision.geometry.utils import get_polygon_center from supervision.metrics.detection import ConfusionMatrix, MeanAveragePrecision from supervision.tracker.byte_tracker.core import ByteTrack +from supervision.utils.conversion import cv2_to_pillow, pillow_to_cv2 from supervision.utils.file import list_files_with_extensions from supervision.utils.image import ( ImageSink, diff --git a/supervision/utils/image.py b/supervision/utils/image.py index dd3316ec..44ccbeac 100644 --- a/supervision/utils/image.py +++ b/supervision/utils/image.py @@ -368,7 +368,7 @@ class ImageSink: Examples: ```python import supervision as sv - + frames_generator = sv.get_video_frames_generator(, stride=2) with sv.ImageSink(target_dir_path=) as sink: