MATLAB: Unable to resolve the name vision.VideoFileReader

videofilereader

This is the code I am trying to execute and I am ending up with the error message that it is "Unable to resolve the name vision.VideoFileReader"
Not getting what exactly is the issue. I have ensured the video file is selected from the right path but still not getting it. Kindly help
%% Set up video reader and player
vision.VideoFileReader('video2.avi')
videoFReader = vision.VideoFileReader('video2.avi',...
'VideoOutputDataType','double');
vidPlayer = vision.VideoPlayer;

Best Answer

Hi,
In order use vision.VideoFileReader you need to install computer vision toolbox.
Make sure you have installed computer vision toolbox at your end by using "ver" command in your MATLAB command prompt.
If computer vision toolbox is not installed you can download from the below link
Hope this helps!