Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
WEISS
Software Repositories
SNAPPY
scikit-surgerydavinci
Commits
1a61d561
Commit
1a61d561
authored
Oct 01, 2020
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
sksurgerydavinci/ui/sksurgerydavinci_demo.py
View file @
1a61d561
...
...
@@ -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
]))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment