Spaces:
Runtime error
Runtime error
JustSkyDev commited on
Commit ·
998fe30
1
Parent(s): 0ba983f
Update process.py
Browse files- process.py +3 -1
process.py
CHANGED
|
@@ -27,4 +27,6 @@ def Segment(image: Image.Image, color=[255, 255, 255]):
|
|
| 27 |
mask_rgb = np.ones((*mask.shape, 3), dtype=np.uint8) * 255
|
| 28 |
mask_rgb[mask == 1] = color
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
| 27 |
mask_rgb = np.ones((*mask.shape, 3), dtype=np.uint8) * 255
|
| 28 |
mask_rgb[mask == 1] = color
|
| 29 |
|
| 30 |
+
output_image = Image.fromarray(mask_rgb)
|
| 31 |
+
|
| 32 |
+
return output_image
|