March 2018
Beginner to intermediate
306 pages
9h 54m
English
You need to complete the following steps:
import cv2import numpy as np
camera_matrix = np.load('../data/pinhole_calib/camera_mat.npy')dist_coefs = np.load('../data/pinhole_calib/dist_coefs.npy')img = cv2.imread('../data/pinhole_calib/img_00.png')
ud_img = cv2.undistort(img, camera_matrix, dist_coefs)cv2.imshow('undistorted image', ud_img)cv2.waitKey(0)cv2.destroyAllWindows()