2016-10-27 15:14:52 -0600 | commented question | error: (-2) The node does not represent a user object (unknown type?) in function cvRead Hi Berak, Thanks for responding. I checked the xml file and this is the "cascade.xml" file not the stage one. I also think it seems too short, but I don't know what caused that. I have 2000 negative images and 2000 positive images ( it's simply pasting 1 positive image on top of the negative images). I applied opencv_createsamples.exe to created the positives. |
2016-10-25 11:24:29 -0600 | asked a question | error: (-2) The node does not represent a user object (unknown type?) in function cvRead Hi all, My inviroment is windows 10, opencv 3.1, python 3.4 I'm trying to train my own Cascade using opencv_createsamples.exe and opencv_traincascade.exe. I've created a .vec file (it is loadable by opencv_createsamples) and trained a 11-stage cascade.xml file. When I try to load it in the python code, it run into an error saying "error: (-2) The node does not represent a user object (unknown type?) in function cvRead". Here is my code: Here is the self-trained cascade xml file Here is the .vec file created by opencv_createsamples Much thanks for any response! |