Adjust docstrings

This commit is contained in:
Grzegorz Klimaszewski
2024-09-19 12:08:12 +02:00
parent f307f981f6
commit 7ad0bc361b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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__(
+2 -2
View File
@@ -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.