 <p>You should implement a sliding window approach. In each window, you should apply the SVM to get candidates. Then, once you've done it for the whole image, you should merge the candidates (if you detected an object, then it is very likely that you'll detect it again in shift of a few pixels - that's the meaning of candidates).</p> <p>Take a look at the V&amp;J code at openCV or the latentSVM code (detection by parts) to see how it's done there.</p> <p>By the way, I would use the LatentSVM code (detection by parts) to detect vehicles. It has trained models for cars and for buses.</p> <p>Good luck.</p>