# 画像分類で使えそうなもの 画像からnumpy配列へ [参考記事](https://note.nkmk.me/python-numpy-image-processing/) ``` from PIL import Image import numpy as np im = np.array(Image.open('data/src/lena.jpg')) print(type(im)) # <class 'numpy.ndarray'> print(im.dtype) # uint8 print(im.shape) # (225, 400, 3) ``` ## osモジュールの使い方 ### os.getcwd(path) 現在自分がどこにいるか返す(カレントディレクトリを返す) ### os.listdir(path) そのパスに含まれているもの(フォルダなど)を示す