ocl:detectmultiscale error with traincascade

asked 2014-04-03 14:47:09 -0500

muser gravatar image

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

edit retag flag offensive close merge delete

Comments

@muser: I also meet this problem , haven't you sloved it?

周宝宝 gravatar image周宝宝 ( 2016-03-15 21:12:39 -0500 )edit