Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. you can safely ignore the "Cannot find or open the PDB file" warnings. the PDB's are not shipped with the prebuilt binaries.(you would need them only if you want to step into the opencv-dlls while debugging)

  2. "when i do comment these lines program run but not work " : there's your problem. it can't find the cascade files.

  3. "xml file is near project file too" : but when you start your program from the ide, the exe is in the debug or release folder, so the path to the cascades does not match. to fix this, either:

    • adjust your "Working dir" in the debug settings to point to the projectdir
    • move the cascades to the debug folder
    • change your code , and give an absolute path, like "C:/Program Files/SweetIM/Messenger/haarcascade_frontalface_alt.xml"