Showing specific frame in a video file
Show older comments
hey I am trying to show a particular frame from video . I did following but it is showing error : Expected outputformat to match one of these strings: 'native', 'default' The input did not match any of the valid strings. Caused by: Error using validatestring>checkString (line 86) Expected input to be one of these types: char Instead its type was double.
vid1=VideoReader('D:\DDP\TEST\new.avi');
numofFrames=vid1.NumberOfFrames;
image=readFrame(vid1,numofFrames/2);
imshow(image);
Can someone help what I am doing wrong. and value of numofFrames=511.
Accepted Answer
More Answers (0)
Categories
Find more on Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!