图片读取

以下是常见的图片读取的库

库名称 读取的结果 读取的形状
PIL Image Object null
OpenCV ndarray (H,W,C),opencv读入的为GBR而不是通常的RGB
torchvision tonser (C,H,W),RGB
imageio ndarray (H,W,C),RGB
matplotlib ndarray (H,W,C),RGB

视频读取

以下为常见的视频读取的库

库名称 读取结果 读取的形状
torchvision tensor
OpenCV Object null
imageio ndarray