In this recipe, you will learn how to reconstruct 3D point coordinates given observations in two views. This is a building block for many higher level 3D reconstruction algorithms and SLAM systems.
Restoring a 3D point from two observations through triangulation
Getting ready
Before you proceed with this recipe, you need to install the OpenCV version 3.3 (or greater) Python API package.
How to do it
You need to complete the following steps:
- Import the necessary modules.
import cv2
import numpy as np
- Generate the test camera's projection matrices:
P1 = np.eye(3...