nielsr HF staff commited on
Commit
e3f8b3e
1 Parent(s): 0cc576d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- cv2.imwrite("result.png", out.astype("uint16"), [cv2.IMWRITE_PNG_COMPRESSION, 0])
 
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