ex01.py 157 B

12345
  1. import numpy
  2. import cv2
  3. img_array = [[[0,0,255,66]for i in range(255)]for j in range(100)]
  4. img_numpy = numpy.array(img_array)
  5. cv2.imwrite("1.jpg",img_numpy)