-2
# Read in the image
from google.colab import drive
drive.mount('/gdrive')
filepath='gdrive/MyDrive/image.png'
image = cv2.imread(filepath)
print(type(image))

While running this i am getting Class "NoneType" . Where i am failing in reading image file from drive. please correct me.

sandeepa
  • 21
  • 5

1 Answers1

1

I think the image path should be an absolute path with a slash in the beginning. ('/gdrive/MyDrive/image.png').