Created
September 28, 2017 01:59
-
-
Save SeaOfOcean/581a5b290402902bcfd443f9af59715f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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