matlab16 vision.VideoFileReader在ubuntu中显示错误

时间:2017-04-20 06:33:09

标签: matlab computer-vision ubuntu-16.04

我最近在Windows上使用matlab 2015b在Ubuntu上切换到2016b

 Error using VideoFileReader/setup
    Could not open the specified file.

Error in matlab.system.mixin.FiniteSource/isDone

Error in draw_boxes (line 11)
while ~isDone(videoFReader)

当我尝试在2016b Ubuntu上运行以下代码时出现上述错误

    % Load the video using a video reader object.
videoFReader = vision.VideoFileReader('pp1_2.avi');
%%
% Create a video player object to play the video file.
videoPlayer = vision.VideoPlayer;
%%
% Use a while loop to read and play the video frames.
while ~isDone(videoFReader)
  videoFrame = videoFReader();
  videoPlayer(videoFrame);
end
%%
% Release the objects.
release(videoPlayer);
release(videoFReader);

但它出错了。它没有给内置视频序列ecolli.avi带来任何错误。视频的路径是正确的,因为我已经检查了它.pp1_2.avi是我正在制作的视频

我已经尝试了网站http://mukeshchomu.blogspot.in/2015/04/ubuntu-matlab-error-using.html中所述的一些方法,比如安装gstreamer,但它还没有为我工作

任何帮助将不胜感激。提前谢谢

0 个答案:

没有答案