本文共 463 字,大约阅读时间需要 1 分钟。
#include#include #include #include #include #include #include using namespace std;using namespace cv; int main(){ Mat src = imread("10.jpg"); HOGDescriptor hog;//HOG特征检测器 hog.setSVMDetector(HOGDescriptor::getDefaultPeopleDetector());//设置SVM分类器为默认参数 vector found, found_filtered;//矩形框数组 hog.detectMultiScale(src, found, 0, Size(8,8), Size(32,32), 1.05, 2);//对图像进行多尺度检测,检测窗口移动步长为(8,8) cout<<"矩形个数:"< <
转载地址:http://oosws.baihongyu.com/