1 | initial version |
Yes you can use BoW, just apply the same pipeline for image tiles, i.e. divide your image in (typically overlapping) windows (aka blocks) of varying size and analyzse each block individually. However note, that this is typical slow, thus, for the detection of objects often other techniques come in play:
a) Speed-up the sliding windows approach, e.g. by an efficient subwindow search technique. (The original work was proposed by Lampert et al.: "Efficient subwindow search: a branch and bound framework for object localization.")
b) By a fast reject of non-object windows using a cascade classifier. Since this is already part of OpenCV you should try that first. See http://docs.opencv.org/doc/user_guide/ug_traincascade.html how to train it.