Rename calculate_dynamic_font_scale to calculate_dynamic_text_scale
This commit is contained in:
parent
bd4208ce84
commit
23a58ef99e
|
|
@ -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,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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue