I am trying to load lbpcascade_profileface.xml.
CascadeClassifier cad;
cad.load("C:/opencv/data/lbpcascades/lbpcascade_profileface.xml");
Following error shows up:
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 ?
Okay found the solution for working it. I had to delete the comments at top of the xml file. Now it works. But don't know why they had added comments that could not be parsed.
I ran into the same issue and it appears the comment was just misplaced. If you want to preserve the comment, just move this line above the comment:
<?xml version="1.0"?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With