我正在尝试使用PIL从numpy数组中读取图像,方法如下:import numpy as npImage.fromarray(img)File "...Image.py", line 2155, in fromarray
raise TypeError("Cannot handle this data type&q
因此,我试图让用户上传一个标志的图像,但我一直收到相同的错误"type object ' image‘has no attribute 'open'“。我已经查过了,但似乎找不到答案。我尝试将Image作为IMG导入,但收到错误消息"'module‘object is not callable“。我试过了我得到了同样的错误。I imported this primarily for tooltips so the user knows what