Facebook
From Walloping Motmot, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 276
  1.         c=0
  2.         for (idx, imagePath) in enumerate(imutils.paths.list_images(path)):
  3.             image = cv2.imread(imagePath)
  4.             c+=1
  5.             file = open("./ppp/"+ c.__str__(), 'w')
  6.             np.savez_compressed(file, image)