PIL(python image library) img = Image.open(path) #读入图片创建PIL对象 numpy img = cv2.imread(path) #创建numpy对象 tensor