我是 python 新手,我面临这个错误有人可以帮助我吗?
import numpy as np
for index,rgb_img in enumerate(list_img):
img = np.reshape(rgb_img, (200,200,3)).astype(np.uint8)
shape = np.shape(img)
Traceback (most recent call last):
line 135, in <module>
img = np.reshape(rgb_img, (200,200,3)).astype(np.uint8)
File "C:\Users\sonof\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)