
AttributeError:numpy.ndarray‘ object ‘ has no attribute ‘read‘ or ‘seek‘
如果在python程序或者使用opencv时,出现以上错误。可以参考一下本文。我是因为想利用PIL中得Image库对图片进行操作,正常得源程序是这样的img = self.imgimg1 = Image.open(img)draw = ImageDraw.Draw(img1)draw.rectangle((60,90,100,120), fill = (0,0,0))我这里得self.img是已经打开了,open是读取地址或者文件名的,而无法再次打开已经打开的图片,但是我这里...








