Part Based Models demo程序分析
来源:互联网 发布:win10反间谍软件关闭 编辑:程序博客网 时间:2024/06/06 08:48
程序主要用了这几个函数:
我的理解为dets为root filter检测的结果,boxes为part filter检测的结果
[dets, boxes] = imgdetect(im, model, 0.4);bbox = bboxpred_get(model.bboxpred, dets, reduceboxes(model, boxes));bbox = clipboxes(im, bbox);top = nms(bbox, 0.5);result = bbox(top,:);
其中[dets, boxes, info] = imgdetect(input, model, thresh, bbox, overlap)
调用了:gdetect(pyra, model, thresh, bbox, overlap);
pyra为Hog的金字塔特征值,model为模型参数,thresh为分数的阈值。后面两个参数可以不写。
之后我们会得到dets和boxes两个矩阵
代码里面的解释为:
% dets is a matrix with 6 columns and one row per detection. Columns 1-4 % give the pixel coordinates (x1,y1,x2,y2) of each detection bounding box. % Column 5 specifies the model component used for each detection and column % 6 gives the score of each detection.%% boxes is a matrix with one row per detection and each sequential group% of 4 columns specifies the pixel coordinates of each model filter bounding% box (i.e., where the parts were placed). The index in the sequence is% the same as the index in model.filters.
我的理解为dets为root filter检测的结果,boxes为part filter检测的结果
是root filter的检测结果其实已经不错了(就是hog的检查结果)
bboxpred_get用来得到预测的结果,我觉得更像是一个检测结果融合
clipboxes用来优化窗体结构,不影响结果
nms用来去除重叠的检测窗口
其实我觉得程序可以简化成这样:
[dets, boxes] = imgdetect(im, model, 0.4);bbox = clipboxes(im, dets);top = nms(bbox, 0.5);result = bbox(top,:);不过这样就没用用到parts model的意思了
完全就是hog检测了。没有意义了。自娱自乐写就好。
最后用:
showboxes(im, dets);来显示检测的结果。
- Part Based Models demo程序分析
- Object Detection----- Discriminatively Trained Part Based Models
- DPM2010中文翻译-Object Detection with Discriminatively Trained Part Based Models
- How to train models of Object Detection with Discriminatively Trained Part Based Models
- 在windows下训练models of Object Detection with Discriminatively Trained Part Based Models
- models of Object Detection with Discriminatively Trained Part Based Models中star-cascade级联检测
- How to train models of Object Detection with Discriminatively Trained Part Based Models
- How to train models of Object Detection with Discriminatively Trained Part Based Models
- How to train models of Object Detection with Discriminatively Trained Part Based Models
- How to train models of Object Detection with Discriminatively Trained Part Based Models
- 搭建Deformable Part Models源码+学习分析
- How to train models of Object Detection with Discriminatively Trained Part Based Model
- windows 下实现 Discriminatively Trained Part Based Models中star-cascade级联检测
- OpenCV Latent SVM Discriminatively Trained Part Based Models for Object Detection
- OpenCV Latent SVM Discriminatively Trained Part Based Models for Object Detection
- 形变目标识别DPM论文《Object Detection with Discriminatively Trained Part Based Models》阅读笔记
- (1) 在window下运行DPM(deformable part models) -(检测demo部分)
- Win7+VS2010+Matlab2011b下运行 Deformable Part Models代码-运行demo()-详细步骤
- 系统架构技能之设计模式—装饰模式
- 指针与数组之间的恩恩怨怨
- VMware网络模式介绍以及配置
- TEXTMETRIC 结构详解
- android识别手势
- Part Based Models demo程序分析
- HttpCLient
- 分页实现
- Windows Phone 解析图片尺寸之bmp
- 网页制作之绑定回车键
- Eclipse与Mysql连接中遇到的一个问题,让我苦恼好久....(记录自己的菜鸟经历)
- Windows Phone 系列- Simple MVVM Navigation 页面导航的实现
- android关闭应用
- Windows Phone 点击按钮退出当前应用(真正解决篇)