■ imread 함수를 사용해 이미지를 로드하는 방법을 보여준다.
▶ main.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import matplotlib from skimage import io matplotlib.use("TkAgg") io.use_plugin("matplotlib") imageNDArray = io.imread("sample.png") io.imshow(imageNDArray) io.show() |
▶ requirements.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
cycler==0.11.0 fonttools==4.34.4 imageio==2.21.1 kiwisolver==1.4.4 matplotlib==3.5.3 networkx==2.8.5 numpy==1.23.1 packaging==21.3 Pillow==9.2.0 pip==22.0.4 pyparsing==3.0.9 python-dateutil==2.8.2 PyWavelets==1.3.0 scikit-image==0.19.3 scipy==1.9.0 setuptools==58.1.0 six==1.16.0 tifffile==2022.8.8 |