Skip to content

Commit

Permalink
fix a bug in two view plane based reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
originlake committed Oct 18, 2023
1 parent 729339d commit 04f1d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensfm/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def two_view_reconstruction_plane_based(
inliers = _two_view_reconstruction_inliers(b1, b2, R.T, -R.T.dot(t), threshold)
motion_inliers.append(inliers)

best = np.argmax(map(len, motion_inliers))
best = np.argmax(list(map(len, motion_inliers)))
R, t, n, d = motions[best]
inliers = motion_inliers[best]
return cv2.Rodrigues(R)[0].ravel(), t, inliers
Expand Down

0 comments on commit 04f1d8c

Please sign in to comment.