Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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 |
|