I was able to track moving objects in the video. 
However, I want to decide whether the object is human or not. I tried HOGDescriptor in OpenCV. HOGDescriptor has two methods for detecting people: HOGDescriptor::detect and HOGDescriptor::detectMultiScale . OpenCV "sources \ samples \ cpp \ peopledetect.cpp" demonstrates how to use HOGDescriptor::detectMultiScale , which search the image at different scales and very slowly.
In my case, I was tracking objects in a rectangle. I think using HOGDescriptor::detect to detect inside a rectangle will be much faster. But the OpenCV document only has gpu::HOGDescriptor::detect (I still canβt figure out how to use it) and skipped HOGDescriptor::detect . I want to use HOGDescriptor::detect .
Can someone provide me some C ++ code snippet demonstrating the use of HOGDescriptor::detect ?
thanks.
c ++ image-processing opencv
gouchaoer
source share