Ask Your Question

muser's profile - activity

2016-03-15 21:12:50 -0600 received badge  Student (source)
2014-04-03 14:47:09 -0600 asked a question ocl:detectmultiscale error with traincascade

Hello, I have created training xml files from opencv_haartraining, opencv_traincascades and opencv_traincascade(using HOG). All three of them work when using the CascadeClassifier:detectmultiscale

However, when I use the OclCascadeClassifier:detectmultiscale, only the older haartraining xml works, the other two xml files give me the following error:

OpenCV Error: Null pointer (Invalid classifier cascade) in cv::ocl::OclCascadeClassifier::oclHaarDetectObjects, file C:\builds\2_4_PackSlave-win32-vc11-shared\opencv\modules\ocl\src\haar.cpp, line 686

Why is it not woorking for the newer training files, and why is the cpu version working but not this.

Any ideas are greatly appreciated as I am completely stuck with this