使用 C++ 保存在磁盘上后,有没有办法在 google colab 中打开图像? opencv?
我尝试了所有OPENCV方法来保存图像,但是图像并未保存在驱动器上。但是,它们被保存在磁盘上。如何显示正在创建的图像?
我尝试了:
imshow(“源图像”,im_src);
I tried all the opencv methods to save image, but the image is not being saved on the drive. However, they are saved on the disk. How can I show the image that is being created?
I tried:
imshow("Source Image", im_src);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦...刚刚发现如何...保存图像后:
imwrite("matches.jpg", imMatches);
它被保存在磁盘中;因此,colab 的左上角有一个名为目录的 3 行按钮。按该按钮,然后按文件夹图像。磁盘上有所有文件。只需双击图像即可打开图像。
Oh... Just found out how... After you save the image:
imwrite("matches.jpg", imMatches);
it is being saved in the disk; hence, there is a 3 line button in the top left corner of the colab named Table of contents. Press that and then press the folder image. There are all the files on the disk. Simple double click on the image will open the image.