Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Have you set the window size of the HOG detector: hog.winSize = Size(48, 96);

The reason is that the Daimler classifier was trained using training images of that size. Only with that image size will the HOG feature vector has the correct dimensions of 1981, which can be fed into the Daimler SVM classifier.