Facebook
From Beefy Armadillo, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 239
  1.         c=0
  2.         for (idx, imagePath) in enumerate(imutils.paths.list_images(path)):
  3.             image = cv2.imread(imagePath)
  4.             c+=1
  5.             np.savez_compressed("./ppp/"+ c.__str__()+".npz", img=image)
  6.             img = np.load("./ppp/"+ c.__str__()+".npz")['img']