example. numpy & cv2
import numpyimport cv2arr = numpy.array([1,2,3,4,5,6,7,8,9]).reshape(3, 3)print(arr)# 행, 열arr[0:2, 0] = 88print(arr)arr = numpy.arange(0, 100).reshape(10, 10)print(arr)print(arr.ndim)print(arr[0].ndim)print(len(arr))print(len(arr[0]))for i in range(len(arr)): arr[0:10-i, i] = -1print(arr)myimg = cv2.imread("test.jpg")print(type(myimg))row = len(myimg)col = len(myimg[0])print(type(myimg), row,..