Skimage

2018-06-29  本文已影响0人  光华_5206

Python中常用图像处理库

# install
pip install scikit-image

from skimage import io, data
# import camera.png from data directory
data.camera()
from skimage import data_dir
print(data_dir)
# io
io.imread('camera.png', as_grey=True)
im.imshow(...)
# install
pip install opencv-python

import cv2;
cv2.imread('camera.png')
from PIL import Image
from skimage import io, data
import matplotlib
cam = data.camera()
io.imshow(cam)
print(cam.shape)
上一篇下一篇

猜你喜欢

热点阅读