Rename calculate_dynamic_font_scale to calculate_dynamic_text_scale
This commit is contained in:
1 parent
bd4208ce84
commit
23a58ef99e
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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 <piotr.skalski92@gmail.com>"]
|
||||
maintainers = ["Piotr Skalski <piotr.skalski92@gmail.com>"]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user