Created
June 12, 2019 16:42
-
-
Save StrikingLoo/23517576cec26bee2fa3d5b572c7eee7 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
| IMG_SIZE = (94, 125) | |
| def pixels_from_path(file_path): | |
| im = Image.open(file_path) | |
| im = im.resize(IMG_SIZE) | |
| np_im = np.array(im) | |
| #matrix of pixel RGB values | |
| return np_im |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment