Skip to content

Commit

Permalink
autopep8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justusschock authored and actions-user committed Mar 20, 2020
1 parent d82384b commit 658a1e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/LinearPnP.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@
# noinspection PyBroadException
try:
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
except:
except BaseException:
pass

# G


def linear_pnp(correspondences_2d_3d: float, calibration_matrix: float) -> float:
def linear_pnp(
correspondences_2d_3d: float,
calibration_matrix: float) -> float:
"""
Given 2D-3D correspondences, X↔x and the intrinsic parameter K, estimate the camera pose using linear least squares
:param correspondences_2d_3d: 2D to 3D point correspondences
:param calibration_matrix: intrinsic matrix K
:return: estimated camera pose using linear least square
"""
...

0 comments on commit 658a1e1

Please sign in to comment.