Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AVVR-Pipeline-GDP4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GDP Project 4
AVVR-Pipeline-GDP4
Commits
982dfe05
Commit
982dfe05
authored
7 months ago
by
tee1g21
Browse files
Options
Downloads
Patches
Plain Diff
Implemented GUI to upload dpeth map
parent
b5944728
No related branches found
No related tags found
1 merge request
!5
4.2.2 depth chbox
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/GUI.py
+17
-9
17 additions, 9 deletions
scripts/GUI.py
with
17 additions
and
9 deletions
scripts/GUI.py
+
17
−
9
View file @
982dfe05
...
@@ -43,11 +43,21 @@ def select_Image(event):
...
@@ -43,11 +43,21 @@ def select_Image(event):
def
depthmap_creation
():
def
depthmap_creation
():
print
(
"
Manually upload depth map:
"
,
uploadDepthCheck
.
get
())
print
(
"
Manually upload depth map:
"
,
uploadDepthCheck
.
get
())
if
uploadDepthCheck
.
get
()
==
0
:
if
uploadDepthCheck
.
get
()
==
1
:
# if manually upload checked
check
.
set
(
1
)
check
.
set
(
0
)
# disable auto generation of depth map
else
:
upload_depth_path
=
tkinter
.
filedialog
.
askopenfilename
(
title
=
"
Select a depth map
"
,
filetypes
=
[(
"
All files
"
,
"
*.*
"
)])
#dialog box to upload dpeth map
check
.
set
(
0
)
#temporary. TODO implement Mona's monodepth upload
if
upload_depth_path
:
print
(
f
"
Uploaded depth map:
{
upload_depth_path
}
"
)
#TODO implement Mona's monodepth upload
else
:
print
(
"
No depth map selected
"
)
check
.
set
(
1
)
# if no depth map selected, enable auto generation of depth map
depth_check
.
deselect
()
# uncheck the depth map check box
else
:
check
.
set
(
1
)
# if manually upload unchecked, enable auto generation of depth map
upload_depth_path
=
None
print
(
"
Removed uploaded depth map
"
)
def
stanfordRoom_selection
():
def
stanfordRoom_selection
():
if
checkStanford
.
get
()
==
1
:
if
checkStanford
.
get
()
==
1
:
...
@@ -140,9 +150,7 @@ window.title("Immersive VR scene creator")
...
@@ -140,9 +150,7 @@ window.title("Immersive VR scene creator")
check
=
tk
.
IntVar
()
check
=
tk
.
IntVar
()
check
.
set
(
1
)
#automatically generate depth map as default
check
.
set
(
1
)
#automatically generate depth map as default
# changed check vaiable: 0 = automatically upload depth map, 1 = manually upload depth map
uploadDepthCheck
=
tk
.
IntVar
()
# added uploadDepthCheck vaiable: 0 = automatically upload depth map, 1 = manually upload depth map
# this behaviour is oppositte to previous check variable
uploadDepthCheck
=
tk
.
IntVar
()
checkStanford
=
tk
.
IntVar
()
checkStanford
=
tk
.
IntVar
()
include_top
=
tk
.
IntVar
()
include_top
=
tk
.
IntVar
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment