从一个数组中得到一个图像的文件路径,然后使用Image.open(data_path1),程序报错,说有两个错误
data_path1=np.array(images)[data_index1]
Image.open(data_path1)
AttributeError: numpy. ndarray object has no attribute seek'
AttributeError: numpy. ndarray object has no attribute read'
把data_path1打出来看看,它应该不是个str吧