# 画像分類で使えそうなもの 画像から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) そのパスに含まれているもの(フォルダなど)を示す
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up