img = cv2.imread(“extra02filename.jpg”) img = np.zeros([7,7]) img[1:4,2:5]=1 print(img) showfig(img,‘gray’)