Skimage

作者: 光华_5206 | 来源:发表于2018-06-29 08:26 被阅读0次

    Python中常用图像处理库

    • skimage
    # 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(...)
    
    • opencv
    # install
    pip install opencv-python
    
    import cv2;
    cv2.imread('camera.png')
    
    • PIL (Python Imaging Library)
    from PIL import Image
    
    • Pillow
    from skimage import io, data
    import matplotlib
    cam = data.camera()
    io.imshow(cam)
    print(cam.shape)
    

    相关文章

      网友评论

          本文标题:Skimage

          本文链接:https://www.haomeiwen.com/subject/sbxpyftx.html