March 2018
Beginner to intermediate
306 pages
9h 54m
English
Perform the following steps:
import cv2, numpy as np
mat = np.random.rand(100, 100).astype(np.float32)print('Shape:', mat.shape)print('Data type:', mat.dtype)
np.savetxt('mat.csv', mat)
mat = np.loadtxt('mat.csv').astype(np.float32)print('Shape:', mat.shape)print('Data type:', mat.dtype)
Read now
Unlock full access