title: OpenCV facedetect example won't load cascade classifier xml
body: <p>I'm working on a application that requires OpenCV object detection using Haar cascade classifier.
  I'm using OpenCV 2.3.1 with VS2010 on a 64bit Windows Machine.
  I compiled and built OpenCV myself and didn't use any pre-compiled binaries.</p>
  
  <p>First, I wanted to start meddling with the example facedetect.cpp that's included in OpenCV.
  I built it with no errors, but when I'm trying to run it won't open the cascade classifier xml file (the CascadeClassifier.load() function returns false). I didn't change anything from the sample source code.</p>
  
  <p>I'm using the xml file that is distributed with OpenCV so the problem isn't with the xml file.
  I also made sure that the application can access and read the file using a simple fopen.</p>
  
  <p>I believe (but not sure) that the problem seems to be that the cascade classifier is of an "old" type. 
  But in the OpenCV documentation it is specifically implied that the new CascadeClassifier object can open both "old" and "new" cascade classifiers.</p>
  
  <p>Here's a link: <a href="http://opencv.itseez.com/modules/objdetect/doc/cascade_classification.html#cascadeclassifier-load" rel="nofollow">http://opencv.itseez.com/modules/objdetect/doc/cascade_classification.html#cascadeclassifier-load</a></p>
  
  <p>I even tried using the pre-compiled OpenCV2.2 binary and it works excellent with that xml. And then I tried to compile the 2.2 sample source code, and again it couldn't load the xml.</p>
  
  <p>I'm aware that I can try using the old object CvHaarClassifierCascade, but I prefer to use the latest version of OpenCV and its objects.</p>
  
  <p>Does anyone have a clue what am I doing wrong?</p>