Commit 67f0e68d authored by Thomas Dowrick's avatar Thomas Dowrick
Browse files

Fix bug in source selection

parent 1a61d561
Pipeline #4921 failed with stages
in 9 minutes and 28 seconds
...@@ -35,10 +35,11 @@ def run_demo(args): ...@@ -35,10 +35,11 @@ def run_demo(args):
if num_of_input_sources == 1: if num_of_input_sources == 1:
if len(video_sources[0]) > 1: if isinstance(video_sources[0], str):
# it is a filename # it is a filename
source = video_sources[0] source = video_sources[0]
print(f"Loading video from {source}") print(f"Loading video from {source}")
else: else:
source = int(video_sources[0]) source = 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