I have a .yml file that was created using this (https://docs.opencv.org/3.3.1/d5/d77/train_HOG_8cpp-example.html) c++ program with positive and negative images.
How do I use the .yml file with my Python code? I noticed that the default person detector is in the opencv-3.3.0/data/hogcascades saved as hogcascade_pedestrian.xml
This is the Python code I'm trying to implement the trained SVM: hog = cv2.HOGDescriptor() hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector()) cap = cv2.VideoCapture(0)