Cannot load lbpcascade_profile.xml

I am trying to download lbpcascade_profileface.xml.

CascadeClassifier cad; cad.load("C:/opencv/data/lbpcascades/lbpcascade_profileface.xml"); 

The following error will appear:

 OpenCV Error: Parsing error (C:/opencv/data/lbpcascades/lbpcascade_profileface.x ml(1): Comments are not allowed here) in unknown function, file ..\..\..\src\ope ncv\modules\core\src\persistence.cpp, line 1818 

What to do?

+4
source share
2 answers

Well found a solution for his work. I had to delete comments at the top of the xml file. Now it works. But I don’t know why they added comments that could not be analyzed.

+5
source

I ran into the same problem and it seems like the comment was simply inappropriate. If you want to save a comment, simply move this line above the comment:

 <?xml version="1.0"?> 
+4
source

All Articles