shireenchand commited on
Commit
be2aeea
·
1 Parent(s): bba6946

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ def depthMap(imgL,imgR):
21
  print(disparity.size)
22
  return disparity
23
 
24
- leftCam = gr.inputs.Image(shape=(224, 224), source="webcam",invert_colors=True)
25
- RightCam = gr.inputs.Image(shape=(224, 224), source="webcam",invert_colors=True)
26
 
27
  map = gr.Interface(fn=depthMap,
28
  inputs=[leftCam,RightCam],
 
21
  print(disparity.size)
22
  return disparity
23
 
24
+ leftCam = gr.inputs.Image(shape=(224, 224), source="webcam",image_mode="L")
25
+ RightCam = gr.inputs.Image(shape=(224, 224), source="webcam",image_mode="L")
26
 
27
  map = gr.Interface(fn=depthMap,
28
  inputs=[leftCam,RightCam],