From 5716dd0a54b20224d9f81e28cd8dc03b15eb4f31 Mon Sep 17 00:00:00 2001 From: chflame163 Date: Mon, 23 Sep 2024 20:30:59 +0800 Subject: [PATCH] fix bug --- py/imagefunc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/imagefunc.py b/py/imagefunc.py index a595b03..e71d40a 100644 --- a/py/imagefunc.py +++ b/py/imagefunc.py @@ -2335,6 +2335,9 @@ def draw_bounding_boxes(image: Image, bboxes: list, color: str = "#FF0000", line """ Draw bounding boxes on the image using the coordinates provided in the bboxes dictionary. """ + + (_, FONT_DICT) = get_resource_dir() + font_size = 25 font = ImageFont.truetype(list(FONT_DICT.items())[0][1], font_size)