1

i am new in python and I face this error can anyone help me?

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)

martineau
  • 119,623
  • 25
  • 170
  • 301

0 Answers0