Ask Your Question

Revision history [back]

You should test (for pedestrian) only foreground part of your image: get the bounding box of each connected component and apply detect on each of them. This should considerably speed up your detection, as long as the connected component extraction is not slower than the detection.

Also keep in mind that if you are not using the multi-scale approach, you have to keep connected components of (almost) the same size as the size of pedestrian you are expected.