필터 지우기
필터 지우기

need code which created 'stopSigns.mat'

조회 수: 1 (최근 30일)
shreedhar bc
shreedhar bc 2013년 5월 13일
댓글: Datti Nagadhara Harini 2014년 4월 2일
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
mustafa
mustafa 2014년 1월 15일
편집: mustafa 2014년 1월 15일
You can create a GUI for bounding boxes via 'imrect' or use @Brett Shoelson's great GUI on this link to create .mat file for object recognition.

댓글을 달려면 로그인하십시오.

채택된 답변

Anand
Anand 2013년 5월 14일
You don't really need a mat file. You need ground truth data for training. So, you need a set of images with bottles in them and bounding boxes for the bottles in the images.
The mat file just contains an array of structs specifying the name of the image file and the bounding box of the bottle in that image.
The mat file is just used to pass the positive instances input argument to the trainCascadeObjectDetector function.
Hope that helps!
  댓글 수: 2
shreedhar bc
shreedhar bc 2013년 5월 14일
Sir I have 100 images in which I have bottles at different place. Each image contain one bottle. Now How to define bounding box for bottle at different place in all 100 different Images ?
Anand
Anand 2014년 1월 15일
Like mustafa suggested, you can use this file exchange submission to help with that:
You'll need to individually draw bounding boxes for each of the training images.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Esam
Esam 2014년 3월 8일
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
Datti Nagadhara Harini 2014년 4월 2일
how do u get those values to prepare a boundary box around the object

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by