Skip to content

Commit

Permalink
Merge branch '23-return-params'
Browse files Browse the repository at this point in the history
  • Loading branch information
MattClarkson committed Jul 28, 2020
2 parents 63405ae + 56b0651 commit 25d13ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ def handeye_calibration(self):

self.calibration_params.set_handeye(handeye, pattern2marker)

return proj_err, recon_err
return proj_err, recon_err, copy.deepcopy(self.calibration_params)
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,4 @@ def handeye_calibration(self):
self.calibration_params.right_params.set_handeye(
r_handeye, r_pattern2marker)

return proj_err, recon_err
return proj_err, recon_err, copy.deepcopy(self.calibration_params)
4 changes: 2 additions & 2 deletions tests/video/test_hand_eye.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_handeye_calibration_mono():
assert reproj_err_1 < one_pixel
assert recon_err_1 < one_pixel

proj_err, recon_err = calibrator.handeye_calibration()
proj_err, recon_err, _ = calibrator.handeye_calibration()

print(f'Reproj err {proj_err}')
print(f'Recon err {recon_err}')
Expand Down Expand Up @@ -152,7 +152,7 @@ def test_handeye_calibration_stereo():
assert reproj_err_1 < one_pixel
assert recon_err_1 < one_pixel

proj_err, recon_err = calibrator.handeye_calibration()
proj_err, recon_err, _ = calibrator.handeye_calibration()

print(f'Reproj err {proj_err}')
print(f'Recon err {recon_err}')
Expand Down

0 comments on commit 25d13ad

Please sign in to comment.