Commit 1a61d561 authored by Thomas Dowrick's avatar Thomas Dowrick
Browse files

Fix bug when using file as input source

parent e3ad63ea
Pipeline #4909 failed with stages
in 9 minutes and 23 seconds
......@@ -34,7 +34,15 @@ def run_demo(args):
num_of_input_sources = len(video_sources)
if num_of_input_sources == 1:
viewer = MonoViewer(int(video_sources[0]))
if len(video_sources[0]) > 1:
# it is a filename
source = video_sources[0]
print(f"Loading video from {source}")
else:
source = int(video_sources[0])
viewer = MonoViewer(source)
elif int(video_sources[1]) == -1:
viewer = MockStereoViewer(int(video_sources[0]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment