Ask Your Question

adamaulia's profile - activity

2017-04-26 09:51:33 -0600 commented question Always get single return in middle of image with custom SVM using hog.detectMultiScale

I save opencv svm model in .xml ( following this tutorial , http://answers.opencv.org/question/56655/how-to-use-a-custom-svm-with-hogdescriptor-in-python/ (http://answers.opencv.org/question/56...)), and parse .xml model then save to pickle. The pickle file contains float number, and when I tried load .pickle file to hog.setSVMDetector(), error occured, hog.setSVMDetector(np.array(svm)) cv2.error: C:\build\master_winpack-bindings-win32-vc14-static\opencv\modules\objdetect\src\hog.cpp:117: error: (-215) checkDetectorSize() in function cv::HOGDescriptor::setSVMDetector. What are the possible causes ?

2017-04-26 06:13:44 -0600 commented question How to use a custom SVM with HOGDescriptor, in Python

Hi, I'm following your tutorial and it works(only training), when it came to testing, I got error at hog.setSVMDetector( np.array(svm) , " hog.setSVMDetector(np.array(svm)) cv2.error: C:\build\master_winpack-bindings-win32-vc14-static\opencv\modules\objdetect\src\hog.cpp:117: error: (-215) checkDetectorSize() in function cv::HOGDescriptor::setSVMDetector) " My system opencv : 3.2.0 os : windows 7 64 bit python : 2.7