etekno
unread,Dec 28, 2010, 9:05:13 AM12/28/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacv
I get this error while running the test2 example of javacv:
[ 0.99636316, 0.042701807, -23.595554
-0.043815516, 0.99894774, -4.3367324
2.283744E-4, 5.2293086E-5, 0.9971857 ]
OpenCV Error: Bad argument (Invalid classifier cascade)
in function cvHaarDetectObjects, C:\Users\etekno\Desktop
\OpenCV-2.1.0\src\cv\cvhaar.cpp(1007)
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Unknown Source)
at
com.googlecode.javacv.JavaCvErrorCallback.callback(JavaCvErrorCallback.java:
67)
at com.googlecode.javacv.jna.cv.cvHaarDetectObjects(Native Method)
at com.googlecode.javacv.jna.cv.cvHaarDetectObjects(cv.java:2328)
at Test2.main(Test2.java:72)
I've compiled without sse,sse2,fastmath and o3 (otherwise whit this
same error i'd get a blue screen like it happened many times to me :-
D) but i get this errore and can't seem to understand why.
Looking in the javacv facvedetection page it seems that it is a know
problem of opencv but even if i do as it says t do ading this lines:
IplImage binBoard = IplImage.create(200,200,IPL_DEPTH_8U,1) ;
cvErode(binBoard,binBoard,null,3) ;
just before the:
CvSeq faces = cvHaarDetectObjects(grayImage, classifier, storage, 1.1,
3, 0/*CV_HAAR_DO_CANNY_PRUNING*/);
i still get the same error.
What can i do please? :-(