diff --git a/docs/draw/utils.md b/docs/draw/utils.md index 3ca5ff82..ee415b81 100644 --- a/docs/draw/utils.md +++ b/docs/draw/utils.md @@ -24,7 +24,7 @@ ## calculate_dynamic_font_scale -:::supervision.draw.utils.calculate_dynamic_font_scale +:::supervision.draw.utils.calculate_dynamic_text_scale ## calculate_dynamic_line_thickness diff --git a/pyproject.toml b/pyproject.toml index d7d45c12..95cc05a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "supervision" -version = "0.17.0rc5" +version = "0.17.0rc6" description = "A set of easy-to-use utils that will come in handy in any Computer Vision project" authors = ["Piotr Skalski "] maintainers = ["Piotr Skalski "] diff --git a/supervision/__init__.py b/supervision/__init__.py index f9755c44..ab6a83ed 100644 --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -45,7 +45,7 @@ from supervision.detection.utils import ( ) from supervision.draw.color import Color, ColorPalette from supervision.draw.utils import ( - calculate_dynamic_font_scale, + calculate_dynamic_text_scale, calculate_dynamic_line_thickness, draw_filled_rectangle, draw_image, diff --git a/supervision/draw/utils.py b/supervision/draw/utils.py index 88e7d371..34c11a9f 100644 --- a/supervision/draw/utils.py +++ b/supervision/draw/utils.py @@ -233,7 +233,7 @@ def draw_image( return scene -def calculate_dynamic_font_scale(resolution_wh: Tuple[int, int]) -> float: +def calculate_dynamic_text_scale(resolution_wh: Tuple[int, int]) -> float: """ Calculate a dynamic font scale based on the resolution of an image.