From 3bb384d789a6db5ec5f9489efe2fbf61164c68c5 Mon Sep 17 00:00:00 2001 From: Shadab Date: Sun, 28 Jul 2024 17:01:10 +0100 Subject: [PATCH] E501 Line too long (95 > 88) fix --- supervision/detection/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervision/detection/utils.py b/supervision/detection/utils.py index 00b3693a..b2f1ba30 100644 --- a/supervision/detection/utils.py +++ b/supervision/detection/utils.py @@ -1012,8 +1012,8 @@ def png_to_mask(png_string): - png_string (bytes): A byte string representing the PNG image. Returns: - - np.ndarray: A binary mask array with shape (H, W), where H and W are the height and width - of the image. + - np.ndarray: A binary mask array with shape (H, W), where H and W + are the height and width of the image. """ image = Image.open(io.BytesIO(png_string)) mask = np.array(image, dtype=np.uint8)