可以使用OpenCV读取位于远程服务器上的Home Jupyter笔记本中的我的数据集
以前,当我尝试使用PIP安装OpenCV安装OpENCV时,我遇到了以下错误
错误:找不到满足要求OPENCV的版本(来自版本:无)
错误:未找到openCV的匹配分布
注意:您可能需要重新启动内核使用更新的软件包。
因此,我尝试了此命令“ pip install opencv-python-headless
我不知道这是否是我无法使用openCV读取数据集的原因,
这是我的代码
path='/home/pfadim/env/ImageCLEFmed2009_.02/ImageCLEFmed2009_.02/*.png'
train=[]
for image in path:
img=cv2.imread(image)
train.append(img)
,这是我遇到的错误
[warn: [email  preated] ] .cpp(239)findDecoder imread _('h'):无法打开/读取文件:检查文件路径/完整性
[warn: [email  procepted] ] global/io/io/opencv/modules/imgcodecs/src/loadsave.cpp(239)文件:检查文件路径/完整性
[warn: /io/opencv/modules/imgcodecs/src/loadsave.cpp(239)findDecoder imread _('m'):无法打开/读取文件:检查文件路径/完整性
Previously when I tried to install opencv with pip install opencv I got this following error
ERROR: Could not find a version that satisfies the requirement opencv (from versions: none)
ERROR: No matching distribution found for opencv
Note: you may need to restart the kernel to use updated packages.
So I tried this command instead "pip install opencv-python-headless
I don't know if this is the reason why I couldn't read my dataset with opencv
Here is my code
path='/home/pfadim/env/ImageCLEFmed2009_.02/ImageCLEFmed2009_.02/*.png'
train=[]
for image in path:
img=cv2.imread(image)
train.append(img)
Here is the error that I get
[ WARN:[email protected]] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('h'): can't open/read file: check file path/integrity
[ WARN:[email protected]] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('o'): can't open/read file: check file path/integrity
[ WARN:[email protected]] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('m'): can't open/read file: check file path/integrity
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论