识别图片中的行人行为
发布时间
阅读量:
阅读量
行人识别
// Hog_SVM_Pedestrian.cpp: 定义控制台应用程序的入口点。
//图片中的行人检测
#include "stdafx.h"
#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/objdetect.hpp> // include hog
#include<iostream>
using namespace std;
using namespace cv;
void detectAndDraw(HOGDescriptor &hog,Mat &img)
{
vector<Rect> found, found_filtered;
double t = (double)getTickCount();
hog.detectMultiScale(img, found, 0, Size(8,
全部评论 (0)
还没有任何评论哟~
