Spaces:
Runtime error
Runtime error
Commit ·
be2aeea
1
Parent(s): bba6946
Update app.py
Browse files
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",
|
| 25 |
-
RightCam = gr.inputs.Image(shape=(224, 224), source="webcam",
|
| 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],
|