Issue: Error Opening Face Recognition Program Using C#
I have written a face recognition program using C#, but when I try to open the program, I get an error.
The code that the program failed on is:
CascadeClassifier cascadeClassifier = new CascadeClassifier("haarcascade_frontalface_alt_tree.xml");
The error message is:
Emgu.CV.Util.CvException: 'OpenCV: cv::XMLParser::parse'
I have searched the error online, but have not found a solution. I have also tried the following code, but it did not work:
private static readonly CascadeClassifier Classifier = new CascadeClassifier("haarcascade_frontalface_alt_tree.xml");
// or
private readonly CascadeClassifier Classifier = new CascadeClassifier("haarcascade_frontalface_alt_tree.xml");
How can I solve this issue?