Simple OpenCV command works in Debug mode but not Release mode

后端 未结 4 443
时光说笑
时光说笑 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:45

    No guesses on why your load line would cause an access violation only for release build. So, the next step is to instrument your OpenCV release binaries with logging, or printfs, or whatever works for you. This type of debugging works in this scenario since you have the source for OpenCV and the ability to recompile with VS2010.

提交回复
热议问题