Ask Your Question

Zuecafajm's profile - activity

2014-10-15 06:23:27 -0600 received badge  Student (source)
2014-04-14 21:18:41 -0600 received badge  Editor (source)
2014-04-14 21:17:15 -0600 asked a question cvLoad fails to load cascade.xml (Android)

Hello,

I am attempting to load a cascade xml file and am receiving the following error on calling cvLoad:

OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in void* cvRead(CvFileStorage, CvFileNode, CvAttrList*), file /home/saudet/projects/javacv-cppjars/opencv-2.4.8/modules/core/src/persistence.cpp, line 4991

I have checked that the xml file exists and is readable. There seem to be a lot of different solutions other people have found for this but none of them have worked for me.

Here is the line that it fails on:

Pointer xmlFile = cvLoad(xmlLocation + xmlName);

You can view my xml file here: http://pastebin.com/6x2QFhrQ

Let me know if there is any other information that can help you identify the problem.

Thanks for your help!