Issue
I have mounted my Google drive to my colab notebook:
from google.colab import drive
drive.mount("/content/gdrive")
I can import csv files through it, in my case:
df = pd.read_csv("/content/gdrive/MyDrive/colab/heart-disease.csv")
But when I try to import images in markdown/text in colab nothing happens:
![](/content/gdrive/MyDrive/colab/6-step-ml-framework.png)
Here's my directory on Google drive:
Solution
You can using OpenCV in colab by import cv2 as cv
, read image by img = cv.imread('/content/gdrive/MyDrive/colab/6-step-ml-framework.png')
, convert image to numpy array using img = np.float32(img)
Answered By - Mr. For Example
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.