March 2018
Beginner to intermediate
306 pages
9h 54m
English
You need to complete the following steps:
import cv2import numpy as np
P1 = np.eye(3, 4, dtype=np.float32)P2 = np.eye(3, 4, dtype=np.float32)P2[0, 3] = -1
N = 5points3d = np.empty((4, N), np.float32)points3d[:3, :] = np.random.randn(3, N)points3d[3, :] = 1
points1 = P1 @ points3dpoints1 = points1[:2, :] / points1[2, :]points1[:2, :] += np.random.randn(2, N) * 1e-2points2 = P2 @ points3dpoints2 = points2[:2, :] / points2[2, :]points2[:2, :] += np.random.randn(2, N) * 1e-2
points3d_reconstr = cv2.triangulatePoints(P1, ...