Skip to content

Instantly share code, notes, and snippets.

@SeaOfOcean
Created September 28, 2017 01:59
Show Gist options
  • Save SeaOfOcean/581a5b290402902bcfd443f9af59715f to your computer and use it in GitHub Desktop.
Save SeaOfOcean/581a5b290402902bcfd443f9af59715f to your computer and use it in GitHub Desktop.
import cv2
folder = "images"
imageFiles = os.listdir(folder)
images = []
for f in imageFiles:
image = cv2.imread(folder + '/' + f)
images.append(image)
img_rdd = sc.parallelize(images)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment