From bed28e3db4f3efd134bfb6ec8f60a53ca21f9b15 Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Fri, 6 Oct 2023 20:54:09 +0200 Subject: [PATCH] Improve the documentation for annotators class --- supervision/annotators/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index 3fa26bf8..ff3ec602 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -162,7 +162,6 @@ class BoxMaskAnnotator(BaseAnnotator): """ A class for drawing box masks on an image using provided detections. """ - def __init__( self, color: Union[Color, ColorPalette] = ColorPalette.default(), @@ -173,6 +172,7 @@ class BoxMaskAnnotator(BaseAnnotator): Args: color (Union[Color, ColorPalette]): The color or color palette to use for annotating detections. + opacity (float): Opacity of the overlay mask. Must be between `0` and `1`. color_map (str): Strategy for mapping colors to annotations. Options are `index`, `class`, or `track`. """