risekid commited on
Commit
3ce11a7
·
1 Parent(s): c9db781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -184,7 +184,7 @@ def getSegmentationMaskImage(input_img, blur_kernel_size=21):
184
 
185
  # 在mask位置添加红色文本和指向原始图像非模糊部分的红色线
186
  draw = ImageDraw.Draw(process_image)
187
- font = ImageFont.truetype("Geneva.ttf", 20) # 您可以选择其他字体和大小
188
  text_position = (10, 20)
189
  draw.text(text_position, label, font=font, fill=(255, 0, 0))
190
 
 
184
 
185
  # 在mask位置添加红色文本和指向原始图像非模糊部分的红色线
186
  draw = ImageDraw.Draw(process_image)
187
+ font = ImageFont.load_default() # 您可以选择其他字体和大小
188
  text_position = (10, 20)
189
  draw.text(text_position, label, font=font, fill=(255, 0, 0))
190