Hello everyone,
I've run Jupyter notebook provided from 'Machine Learning for OpenCV' book.
I've stuck in '06.02-Detecting-Pedestrians-in-the-Wild'. It seems that the notebook doesn't work. Below is the main part of the notebook that I tested. it is the same with the code on the book.
Does the svm trained by sample of the book not work well ? Or Did I make some mistake? I'd like to know some hint for that.
Thanks in advance.
hog = cv2.HOGDescriptor(win_size, block_size, block_stride, cell_size, num_bins)
rho, _, _ = svm.getDecisionFunction(0)
sv = svm.getSupportVectors()
hog.setSVMDetector(np.append(sv[0, :].ravel(), rho))
found, _ = hog.detectMultiScale(img_test)
