OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 2377|回复: 1

opencv3.4.2无法读取视频文件

[复制链接]
发表于 2018-10-23 10:09:18 | 显示全部楼层 |阅读模式
ubuntu18.04下编译运行,代码如下:

    VideoCapture cap;
    Mat in_frame,out_frame;
   
    in_frame = cap.open("/home/macren/1.mp4");
    if(!cap.isOpened())
    {
        cout << "Video file not open...\n";
        return -1;
    }
   
回复

使用道具 举报

 楼主| 发表于 2018-10-23 10:11:35 | 显示全部楼层
终端运行结果:

Unable to stop the stream: Inappropriate ioctl for device
Video file not open...
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-3-29 09:03 , Processed in 0.009449 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表