In the function plt.imshow() , I initailly used a jpg image. However that image showed an error “Image data of dtype object cannot be converted to float” . Then I converted the image format into png as sir is using png image in video. However, I again got the same error “Image data of dtype object cannot be converted to float” .
Please tell what should I do.