I'm trying to create some application to recognize faces, following this tutorial. However, whenever I run the code below, I get this error: Exception in thread "main" java.lang.NullPointerException
class DetectFaceDemo {
public void run () {
CascadeClassifier faceDetector =
new CascadeClassifier(getClass()
.getResource("/lbpcascade_frontalface.xml").getPath());
}
}
Am I supposed to copy the xml file to some directory?
Thanks!