Cascade Classifier / OpenCV / Processing in Eclipse.

edited October 2014 in Library Questions

I'm a begginer with Processing and OpenCV and I'm trying to use a Haar cascade classifier in Processing, Eclipse IDE, via OpenCV native libraries (ver. 2.4.5), and I have an error while debugging:

Exception in thread "Animation Thread" java.lang.NullPointerException at org.opencv.objdetect.CascadeClassifier.detectMultiScale( at MainApp.draw( at processing.core.PApplet.handleDraw( at processing.core.PGraphicsJava2D.requestDraw( at at Source)

The line that throws the error is:

cascade1.detectMultiScale(currFrameM, objects);

currFrameM is a video frame properly converted to OpenCV Mat type.

Thanks for your help.

Sign In or Register to comment.