need code which created 'stopSigns.mat'
古いコメントを表示
Using Computer Vision system toolbox i'm trying to detect bottles in an image. For that I want to train Computer Vision System toolbox with "trainCascadeObjectDetector" function. I also analysed the example program "Train a Stop Sign Detector"
But the problem is i'am stuck at one point, that is, for my application how to create and load positive samples data from "bottles.mat" file, which is same as "stopSigns.mat"
Can any-one crack the issue, or is there any alternate way to train Computer Vision System Toolbox without using .mat file for positive samples data input.
1 件のコメント
採用された回答
その他の回答 (1 件)
Esam
2014 年 3 月 8 日
1 投票
Try this code to create ur .mat file as I did. u'll need to describe each positive sample :
data = [];
field1 ='imageFilename';
value1 = {'Car/T01.bmp','Car/T02.bmp','Car/T03.bmp','Car/T04.bmp','Car/T05.bmp'};
field2 ='objectBoundingBoxes';
value2 = {[21,25,100,150] ,[17,10,168,122] ,[20,13,150,182] ,[9,15,162,100] ,[17,3,130,107]};
data = struct(field1,value1,field2,value2);
save ('cars.mat','data');
1 件のコメント
Datti Nagadhara Harini
2014 年 4 月 2 日
how do u get those values to prepare a boundary box around the object
カテゴリ
ヘルプ センター および File Exchange で Semantic Segmentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!