Video Labelling for Video Classification (LSTM)

4 visualizzazioni (ultimi 30 giorni)
Excuse me,
I want to ask how to make a video to be a label ?
its like imds but for a video (MATLAB R2018B)
example on imds
imds = imageDatastore('TrainingData','IncludeSubFolders',true','LabelSource','foldernames');

Risposta accettata

Richie Chang
Richie Chang il 8 Gen 2021
function for reading the labels.
function [files, labels] = TrainingDataFiles(dataFolder)
fileExtension = ".mp4";
listing = dir(fullfile(dataFolder, "*", "*" + fileExtension));
numObservations = numel(listing);
files = strings(numObservations,1);
labels = cell(numObservations,1);
for i = 1:numObservations
name = listing(i).name;
folder = listing(i).folder;
[~,labels{i}] = fileparts(folder);
files(i) = fullfile(folder,name);
end
labels = categorical(labels);
end

Più risposte (0)

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by