mirror of
https://github.com/deepseek-ai/DeepSeek-VL2.git
synced 2025-02-22 13:49:00 -05:00
use DejaVuSans.ttf font when drawing box
This commit is contained in:
parent
d527122a4d
commit
db08efcefa
@ -301,7 +301,7 @@ def parse_ref_bbox(response, image):
|
||||
text_x = box[0]
|
||||
text_y = box[1] - 20
|
||||
text_color = box_color
|
||||
font = ImageFont.truetype('./deepseek_vl/serve/assets/simsun.ttc', size=20)
|
||||
font = ImageFont.truetype('DejaVuSans.ttf', size=20)
|
||||
draw.text((text_x, text_y), label, font=font, fill=text_color)
|
||||
|
||||
return image
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user