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(CascadeClassifier.java:115) at MainApp.draw(MainApp.java:147) at processing.core.PApplet.handleDraw(PApplet.java:2386) at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240) at processing.core.PApplet.run(PApplet.java:2256) at java.lang.Thread.run(Unknown 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.