이미지 처리

 

 
 
 
python file 위치
path = 'e:DL/torch/np.array로_이미지_처리.ipynb 


%matplotlib inline
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
 
img = mpimg.imread('./cnn/기타/old000023.png')
img[0]
 
array([[0.95686275, 0.95686275, 0.95686275],
[0.95686275, 0.95686275, 0.95686275],
[0.95686275, 0.95686275, 0.95686275],
...,
[0.95686275, 0.95686275, 0.95686275],
[0.95686275, 0.95686275, 0.95686275],
[0.95686275, 0.95686275, 0.95686275]], dtype=float32)
 
img.shape
(482, 640, 3)
 
imgplot = plt.imshow(img)




댓글