我成功地跟踪了视频中的移动物体.

但是我想决定一个对象是否是人.我HOGDescriptor在OpenCV中尝试过.HOGDescriptor有两种检测人的方法:HOGDescriptor::detect和HOGDescriptor::detectMultiScale.OpenCV "sources\samples\cpp\peopledetect.cpp"演示了如何使用HOGDescriptor::detectMultiScale,它以不同的比例搜索图像并且非常慢.
就我而言,我已经跟踪了矩形中的对象.我认为使用HOGDescriptor::detect检测矩形内部会更快.但OpenCV文件只有gpu::HOGDescriptor::detect(我仍然无法猜测如何使用它)而错过了HOGDescriptor::detect.我想用HOGDescriptor::detect.
任何人都可以提供一些c ++代码片段来演示使用HOGDescriptor::detect?
谢谢.