Simple OpenCV command works in Debug mode but not Release mode

后端 未结 4 440
时光说笑
时光说笑 2021-01-11 13:20

I am trying to load in a training xml file with CascadeClassifier::load(), and it works just fine in Debug mode, but in Release mode I get a runtime error.

4条回答
  •  孤街浪徒
    2021-01-11 13:46

    This is quite strange. Check your options for debug and release version, be sure that you are using the correct version of the libraries.

    I tried running the code on a project of mine, and works fine both in debug and release version, with opencv 2.3.1

    Try adding these lines of code to another project, with release version working and where you already use opencv. If it works, then the problem is in the configuration settings.

提交回复
热议问题