From b16e479a140b7a5bde1cb9dded594dc7a474cfb8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:29:13 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/draw/utils.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/supervision/draw/utils.py b/supervision/draw/utils.py index e19cba0c..88e7d371 100644 --- a/supervision/draw/utils.py +++ b/supervision/draw/utils.py @@ -1,5 +1,5 @@ import os -from typing import Optional, Union, Tuple +from typing import Optional, Tuple, Union import cv2 import numpy as np @@ -235,15 +235,15 @@ def draw_image( def calculate_dynamic_font_scale(resolution_wh: Tuple[int, int]) -> float: """ - Calculate a dynamic font scale based on the resolution of an image. + Calculate a dynamic font scale based on the resolution of an image. - Parameters: - resolution_wh (Tuple[int, int]): A tuple representing the width and height - of the image. + Parameters: + resolution_wh (Tuple[int, int]): A tuple representing the width and height + of the image. - Returns: - float: The calculated font scale factor. - """ + Returns: + float: The calculated font scale factor. + """ return min(resolution_wh) * 1e-3