Install video 4 linux, sudo apt install v4l-utils
Verify /dev/video0 exists
| %% Load video and labels | |
| videoFile = ''; % The video file to use | |
| outputPath = ''; % The folder to save to | |
| S = load(''); % The .mat file with the labels data | |
| labels = S.gTruth.LabelData; | |
| %% Extract frames to the outputPath | |
| obj = VideoReader(videoFile); | |
| fileCount = 0; | |
| for i=1:size(labels) |