boxLabelDatastoreのエラー

画像の物体検出のため、イメージラベラーで画像にラベル付けし、table形式で保存したGTを読込
イメージのデータストアとボックスのデータストアを作成し、combineで連結しようとしたが
boxLabelDatastoreでエラーが発生しました。
1つの画像に境界ボックスを複数作っているのが悪さをしているのでしょうか?
table形式に変更すれば解決するのでしょうか?
gTruth1列目はimageFilename、2列目は 境界ボックスの座標 8*4 double, 12*4 double,・・・となっています。
よろしくお願い致します。
<コード>
load gTruth.mat
imds = imageDatastore(gTruth{: , 1}); % イメージのデータストア
bxds = boxLabelDatastore(gTruth(: , 2)); % ボックスのデータストア
data = combine(imds, bxds);
<エラー>
エラー:boxLabelDatastore
1番目の入力引数trainingDataは以下のいずれかのタイプが必要です:
table
実際の型は cell でした。

Answers (1)

Shunichi Kusano
Shunichi Kusano on 8 Oct 2021

0 votes

objectdetectortrainingdataという関数でimdsとbxdsを一気に作成が可能なはずです。試してみてください。

Products

Release

R2020b

Asked:

TY
on 8 Oct 2021

Answered:

on 8 Oct 2021

Community Treasure Hunt

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

Start Hunting!