OpenCV Cascade Classifier load error iOS
问题 Currently I am trying to using an OpenCV Cascade Classifier to detect faces in my iOS app. The problem is that when I go to load the classifier, it fails because the pathname to the "haarcascade_frontalface_alt.xml" isn't correct. Here is my code: cv::String face_cascade_name = "haarcascade_frontalface_alt.xml"; void detectFaces(cv::Mat frame){ cv::CascadeClassifier face_cascade; if (face_cascade.load(face_cascade_name)){ printf("Load complete"); }else{ printf("Load error"); } std::vector<cv: