Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def process_image(image, prompt):
|
|
39 |
# Convert mask to grayscale format
|
40 |
mask_image = mask_image.resize((image.shape[1], image.shape[0]))
|
41 |
mask_image = cv2.cvtColor(np.array(mask_image), cv2.COLOR_RGB2GRAY)
|
42 |
-
mask_image = cv2.threshold(mask_image,
|
43 |
|
44 |
|
45 |
|
|
|
39 |
# Convert mask to grayscale format
|
40 |
mask_image = mask_image.resize((image.shape[1], image.shape[0]))
|
41 |
mask_image = cv2.cvtColor(np.array(mask_image), cv2.COLOR_RGB2GRAY)
|
42 |
+
mask_image = cv2.threshold(mask_image, 70, 255, cv2.THRESH_BINARY)[1]
|
43 |
|
44 |
|
45 |
|