python读取图像的常用方式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
5026

被折叠的 条评论
为什么被折叠?



