i have trained the cascade object detector to detect fists. But now I want to count the number of fists and display. Is there any way using vision toolbox ? please suggest me the steps
1 回表示 (過去 30 日間)
古いコメントを表示
採用された回答
Anand
2014 年 10 月 9 日
If you have already trained a cascade object classifier, you should already have an output XML file containing the classification model as created by trainCascadeObjectDetector.
As an example, if the XML file is fist.xml
% associate fist.xml classification model to Cascade Object Detector
fistDetector = vision.CascadeObjectDetector('fist.xml');
% run the classifier on image im and return bounding boxes of fists.
fistBBox = step(fistDetector, im);
% display fists on image
imFist = insertObjectAnnotation(im,'rectangle',fistBBox,'Fist');
figure, imshow(imFist)
3 件のコメント
Anand
2014 年 10 月 9 日
numFists = size(fistBBox,1);
imFistWithNum = insertText( insertObjectAnnotation(im,'rectangle',fistBBox,'Fist'), [5 5], numFists );
figure, imshow(imFistWithNum);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File 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!