import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread('messi5.jpg',0)
plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')
plt.xticks([]), plt.yticks([]) # to hide tick values on X and Y axis
plt.show()
when input the code as picture showing, the shell output the error as title
"TypeError: Image data can not convert to float"
i don't know how to solve the problem, i expect the answer.thank you very much
