# Read in the image
from google.colab import drive
drive.mount('/gdrive')
filepath='gdrive/MyDrive/image.png'
image = cv2.imread(filepath)
print(type(image))
运行此程序时,我得到 Class "NoneType" 。我在从驱动器读取图像文件失败的地方。请纠正我。
# Read in the image
from google.colab import drive
drive.mount('/gdrive')
filepath='gdrive/MyDrive/image.png'
image = cv2.imread(filepath)
print(type(image))
运行此程序时,我得到 Class "NoneType" 。我在从驱动器读取图像文件失败的地方。请纠正我。