From 7ad0bc361b3cd9927fc66b908fd36987072f4f45 Mon Sep 17 00:00:00 2001 From: Grzegorz Klimaszewski <166530809+grzegorz-roboflow@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:08:12 +0200 Subject: [PATCH] Adjust docstrings --- supervision/detection/tools/polygon_zone.py | 2 +- supervision/draw/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/supervision/detection/tools/polygon_zone.py b/supervision/detection/tools/polygon_zone.py index 2ca4d080..af0d1c0c 100644 --- a/supervision/detection/tools/polygon_zone.py +++ b/supervision/detection/tools/polygon_zone.py @@ -109,7 +109,7 @@ class PolygonZoneAnnotator: default is cv2.FONT_HERSHEY_SIMPLEX center (Tuple[int, int]): The center of the polygon for text placement display_in_zone_count (bool): Show the label of the zone or not. Default is True - opacity: The opacity of zone when drawn on the scene. Default is 0 (only zone border will be drawn) + opacity: The opacity of zone filling when drawn on the scene. Default is 0 """ def __init__( diff --git a/supervision/draw/utils.py b/supervision/draw/utils.py index 678f3f66..b5df0921 100644 --- a/supervision/draw/utils.py +++ b/supervision/draw/utils.py @@ -69,7 +69,7 @@ def draw_filled_rectangle( scene (np.ndarray): The scene on which the rectangle will be drawn rect (Rect): The rectangle to be drawn color (Color): The color of the rectangle - opacity (float): The opacity of rectangle when drawn on the scene. Default is 1 (no opacity) + opacity (float): The opacity of rectangle when drawn on the scene. Returns: np.ndarray: The scene with the rectangle drawn on it @@ -179,7 +179,7 @@ def draw_filled_polygon( scene (np.ndarray): The scene to draw the polygon on. polygon (np.ndarray): The polygon to be drawn, given as a list of vertices. color (Color): The color of the polygon. - opacity (float): The opacity of rectangle when drawn on the scene. Default is 1 (no opacity) + opacity (float): The opacity of rectangle when drawn on the scene. Returns: np.ndarray: The scene with the polygon drawn on it.