Ask Your Question

Revision history [back]

persistence.cpp rejects haarcascade_frontalface_default.xml

Hi,

I am using Cross Compiled OpenCV 2.4.3 on an ARM platform. I have used ccmake. utility to produce statically linked libraries and then compiled them into my program as one very large executable ( around 10MB ).

I am having an issue where when trying to load the haarcascade_frontalface_default.xml, persistence.cpp rejects it.

OpenCV Error: Parsing error (/home/pi/testio/configxml/data/haarcascades/haarcascade_frontalface_default.xml(1): There should be space between attributes) in icvXMLParseTag, file /Users/jw/opencv243/modules/core/src/persistence.cpp, line 2233
terminate called after throwing an instance of 'cv::Exception'
what():
/Users/jw/opencv243/OpenCVrbp/opencv243/modules/core/src/persistence.cpp:2233: error: (-212) /home/pi/testio/configxml/data/haarcascades/haarcascade_frontalface_default.xml(1): There should be space between attributes in function icvXMLParseTag

I would truly appreciate some help in resolving this.

Thank you. John