使用linux中的opencv从Windows共享文件夹中读取图像

时间:2021-10-15 06:41:37

I have a shared folder in another computer (running windows 7) and I can access it using samba shared drive in linux (Ubuntu 14.04)

我在另一台计算机(运行Windows 7)中有一个共享文件夹,我可以使用linux中的samba共享驱动器访问它(Ubuntu 14.04)

I want to access the folder data which is an image using opencv and Qt5.

我想使用opencv和Qt5访问文件夹数据。

I've read in many articles in internet that Qt is unable to access non local folders and first I need to mount the drive manually.

我在互联网上阅读了许多文章,Qt无法访问非本地文件夹,首先我需要手动安装驱动器。

The problem is that, When I mount the drive in terminal I can't still access the data using Qt and Opencv.

问题是,当我在终端中安装驱动器时,我仍然无法使用Qt和Opencv访问数据。

cv::Mat Image = cv::imread("smb://mv@10.128.4.41/mvshare/Image.jpg",1); //Image Size is 0*0 !

Is there any solution or a reference for that ?

有没有解决方案或参考?

(I've used libsmb, but it is no longer supported and is not working on my laptop !)

(我使用了libsmb,但它不再受支持,不能在我的笔记本电脑上运行!)

1 个解决方案

#1


0  

I think you need to configuration your network setting carefully, then using local addressing in cv::imshow() function you can access to content of sheared folder. I have found it : http://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/ I hope this link help you

我认为您需要仔细配置您的网络设置,然后在cv :: imshow()函数中使用本地寻址,您可以访问剪切文件夹的内容。我找到了:http://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/我希望这个链接可以帮到你

#1


0  

I think you need to configuration your network setting carefully, then using local addressing in cv::imshow() function you can access to content of sheared folder. I have found it : http://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/ I hope this link help you

我认为您需要仔细配置您的网络设置,然后在cv :: imshow()函数中使用本地寻址,您可以访问剪切文件夹的内容。我找到了:http://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/我希望这个链接可以帮到你