1 | initial version |
so, please check your resources, carefully:
Mat image = Highgui.imread(inputimg);
if (image.empty()) {
// path problem, image not read. throw some error.
}
CascadeClassifier faceDetector = new CascadeClassifier(dataxml);
if (faceDetector.empty()) {
// path to xml is broken, throw error !
}
2 | No.2 Revision |
so, please check your resources, carefully:
Mat image = Highgui.imread(inputimg);
if (image.empty()) {
// path problem, image not read. throw some error.
}
CascadeClassifier faceDetector = new CascadeClassifier(dataxml);
if (faceDetector.empty()) {
// path to xml is broken, throw error !
}