Skip to content

Commit

Permalink
changed to smaller font file
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 11, 2024
1 parent c3cebb1 commit c27118c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file removed vision_agent/fonts/arial.ttf
Binary file not shown.
Binary file added vision_agent/fonts/default_font_ch_en.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion vision_agent/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def overlay_bboxes(
fontsize = max(12, int(min(width, height) / 40))
draw = ImageDraw.Draw(image)
font = ImageFont.truetype(
str(resources.files("vision_agent.fonts").joinpath("arial.ttf")), fontsize
str(resources.files("vision_agent.fonts").joinpath("default_font_ch_en.ttf")), fontsize
)
if "bboxes" not in bboxes:
return image.convert("RGB")
Expand Down

0 comments on commit c27118c

Please sign in to comment.