p y t h o n 读 取 图 像 的 常 用 方 式 python读取图像的常用方式 python读取图像的常用方式
https://blog.csdn.net/weixin_43593330/article/details/107403842
1.PIL中的Image函数
from PIL import Image
img = Image.open('1.png')
2.mpimg读取图片
import matplotlib.image as mpimg
mpimg.imread('1.png')
3.cv2.imread()
import cv2
cv2.imread('1.png')
4.scipy
from scipy import misc
misc.imread('1.png')
5.skimage
from skimage import io,data