Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.ip.stereo
Commits
e1ee5d8b
Commit
e1ee5d8b
authored
Aug 19, 2020
by
Vincent POLLET
Browse files
Remove debuging outputs
parent
dc0de4e5
Pipeline
#42131
passed with stage
in 9 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/ip/stereo/test/test.py
View file @
e1ee5d8b
...
...
@@ -100,11 +100,6 @@ def test_stereo_mapping_and_project():
landmarks
=
np
.
load
(
resource_path
(
"test/data/landmarks.npy"
))
bounding_box
=
np
.
load
(
resource_path
(
"test/data/bounding_box.npy"
))
print
(
"landmarks before: "
)
print
(
landmarks
)
print
(
"bbox before: "
)
print
(
bounding_box
)
# Load camera configurations
nir_left_stereo
=
load_camera_config
(
resource_path
(
"config/idiap_face_calibration.json"
),
"nir_left"
)
nir_right_stereo
=
load_camera_config
(
resource_path
(
"config/idiap_face_calibration.json"
),
"nir_right"
)
...
...
@@ -121,11 +116,6 @@ def test_stereo_mapping_and_project():
# project color image on left camera (rectified)
projected_image
=
reproject_image
(
color_image
,
map_3d
,
color
,
camera_pair
,
bounding_box
,
landmarks
)
print
(
"landmarks after: "
)
print
(
landmarks
)
print
(
"bbox after: "
)
print
(
bounding_box
)
# Compare to saved values
groundtruth_color_image
=
np
.
load
(
resource_path
(
"test/data/projected_image.npy"
))
groundtruth_map_3d
=
np
.
load
(
resource_path
(
"test/data/map_3d.npy"
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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