We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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.