Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,6 @@ def getImage(image):
|
|
42 |
ret, thresh = cv.threshold(depth, 0, 255, cv.THRESH_BINARY_INV + cv.THRESH_OTSU)
|
43 |
|
44 |
image = np.asarray(image)
|
45 |
-
print(image.shape)
|
46 |
|
47 |
x, y, c = image.shape
|
48 |
for i in range(c):
|
@@ -51,7 +50,7 @@ def getImage(image):
|
|
51 |
if thresh[j][k] == 0:
|
52 |
blurred[j][k][i] = image[j][k][i]
|
53 |
|
54 |
-
return
|
55 |
|
56 |
|
57 |
demo = gr.Interface(
|
|
|
42 |
ret, thresh = cv.threshold(depth, 0, 255, cv.THRESH_BINARY_INV + cv.THRESH_OTSU)
|
43 |
|
44 |
image = np.asarray(image)
|
|
|
45 |
|
46 |
x, y, c = image.shape
|
47 |
for i in range(c):
|
|
|
50 |
if thresh[j][k] == 0:
|
51 |
blurred[j][k][i] = image[j][k][i]
|
52 |
|
53 |
+
return blurred
|
54 |
|
55 |
|
56 |
demo = gr.Interface(
|