OpenCV (CvHaarClassifierCascade*) cvLoad doesn't load, unable to load xml file

后端 未结 3 1584
清酒与你
清酒与你 2020-12-18 17:26

I\'m trying face detection using OpenCv 2.3. My trying to load "haarcascade_frontalface_alt_tree.xml" on my project, I\'m constantly unable to load the xml file.

3条回答
  •  无人及你
    2020-12-18 17:37

    It happens also to me but finally I think I found the problem.

    OpenCV has two different libraries *d.lib and *.lib the d means debug.

    The problem is you need to setup the proper libraries to your environment (vs in my case) in the proper mode.

    d.lib when you are in debug and .lib when you are in release.

    Also in my project I need to run it in Release mode to make it work :)

    This setup in my vs2009 could be found under Properties, Linker, Input, Additional dependencies.

    Best regards

提交回复
热议问题