From 04f1d8c54a4f503f8ad2172556f9136eead048d2 Mon Sep 17 00:00:00 2001 From: Shuo Zhong Date: Wed, 18 Oct 2023 13:01:36 -0400 Subject: [PATCH] fix a bug in two view plane based reconstruction --- opensfm/reconstruction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensfm/reconstruction.py b/opensfm/reconstruction.py index 6a7225963..dc10c981f 100644 --- a/opensfm/reconstruction.py +++ b/opensfm/reconstruction.py @@ -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