Cannot find an exact (case-sensitive) match for 'videoreader'
이전 댓글 표시
I was tried to upload video file on matlab but it didn't work and I tried to moved my file followed the description but it;s alway shoen liks this.
>> v = videoreader('test1.avi');
Cannot find an exact (case-sensitive) match for 'videoreader'
The closest match is: VideoReader in C:\Program
FilesMATLAB\R2018b\toolbox\matlab\audiovideo\@VideoReader\VideoReader.m
obj = VideoReader('ultrasound test');
Error using VideoReader/init (line 611)
The filename specified was not found in the MATLAB path.
Error in VideoReader (line 176)
obj.init(fileName);
Can someone help me to solve this problem? please
댓글 수: 3
Walter Roberson
2019년 3월 4일
Your first try with the wrong function name was trying to read 'test1.avi'.
Your second try with the correct function name was trying to read 'ultrasound test' with no file extension. .avi is not assumed.
Mattatika Pomrop
2019년 3월 4일
Walter Roberson
2019년 3월 4일
which directory is test1.avi in? Is that the directory you are cd() to ? Is the directory on your matlab path?
답변 (2개)
madhan ravi
2019년 3월 4일
v = VideoReader('test1.avi');
% ^----^
Image Analyst
2019년 3월 4일
Now that you've spelled VideoReader correctly, it's not finding the file. Try this:
if exist('test.avi', 'file')
v = videoreader('test1.avi');
else
message = sprintf('WARNING: The file test.avi was not found in the current folder or on the search path');
uiwait(warndlg(message));
end
To fix it, you can just put the entire path (folder plus base filename) into your calls.
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!