Video Labelling for Video Classification (LSTM)

4 ビュー (過去 30 日間)
Richie Chang
Richie Chang 2020 年 12 月 2 日
回答済み: Richie Chang 2021 年 1 月 8 日
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');

採用された回答

Richie Chang
Richie Chang 2021 年 1 月 8 日
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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by