Haar Cascade, can't handle with official tutorial example

asked 2014-01-12 05:31:13 -0600

Trying to compile this with vc2008 http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html example, but error comes out: OpenCV Error: NUll pointer <null or="" empty="" buffer=""> in cvOpenFileStorage, file..persistence.cpp

then it tries to parse cascade xml file, i guess and: OpenCV Error: Parsing error Valid XML should start with and so on about every part of xml file

Probably haarcascade.xml file was unable to load, but code check for error doesn't react in a proper way. I tried to change destination of xml files, full path but nothing helped. Then I decided to compile it with vc2010 and got the same errors. Please help me figure out whats the deal

edit retag flag offensive close merge delete

Comments

i changed to debug and it started to work but still same problem when turn to release mode

Megaboy8 gravatar imageMegaboy8 ( 2014-01-13 04:27:33 -0600 )edit