如何在 google colab 中存储在笔记本电脑中的 read/import 图片?
how do i read/import images ,which is stored in my laptop, in google colab?
每当我像 "C:\Users\Admin\Desktop\tumor" 那样指定它们的路径时,我都会使用 cv2.imread() 得到 "file not found" 错误。谁能解释一下正确的阅读方式?
您需要将文件传输到后端 VM。食谱在 I/O 示例笔记本中:
https://colab.research.google.com/notebooks/io.ipynb
或者,您可以按照此处所述使用本地运行时:
http://research.google.com/colaboratory/local-runtimes.html
每当我像 "C:\Users\Admin\Desktop\tumor" 那样指定它们的路径时,我都会使用 cv2.imread() 得到 "file not found" 错误。谁能解释一下正确的阅读方式?
您需要将文件传输到后端 VM。食谱在 I/O 示例笔记本中: https://colab.research.google.com/notebooks/io.ipynb
或者,您可以按照此处所述使用本地运行时: http://research.google.com/colaboratory/local-runtimes.html