Fifilia 萧慧
Fifilia 萧慧

Reputation: 1

CascadeClassifier.load() error in release only

I want to ask about cascadeclassfier load doesn't work in release. I using Microsoft Visual Studio 2010 and OpenCV 2.4.7.

my code:

CascadeClassifier cascade;

if(!cascade.load("D:/data/training.xml"))
{
    printf("Error load XML!\n");
    return -1;
}

Things i've tried so far:

Additional Information:

i really confused right now, so i decided to ask.. Thanks before.

Upvotes: 0

Views: 1180

Answers (1)

cracktichi
cracktichi

Reputation: 13

I've had similar problems when switch from Debug to Release Mode. I had copy config from Debug to Release and mistake at Linker > Input > Additional Dependencies. And I had fix this problem by using opencv_world320d.lib for Debug mode and opencv_world320.lib for Release mode.

Upvotes: 1

Related Questions