Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ def write_depth(depth, bits):
|
|
21 |
else:
|
22 |
out = np.zeros(depth.shape, dtype=depth.dtype)
|
23 |
|
24 |
-
|
|
|
25 |
|
26 |
return
|
27 |
|
|
|
21 |
else:
|
22 |
out = np.zeros(depth.shape, dtype=depth.dtype)
|
23 |
|
24 |
+
out = out/256
|
25 |
+
cv2.imwrite("result.png", out.astype("uint8"), [cv2.IMWRITE_PNG_COMPRESSION, 0])
|
26 |
|
27 |
return
|
28 |
|