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.
The error I get is:
Unhandled exception at 0x000007feefbf4938 in Testing.exe: 0xC0000005: Access violation writing location 0x0000000000000027.
My code is as follows:
CascadeClassifier c;
if (!c.load("C:/data/haarcascade_frontalface_alt.xml"))
{
exit(1);
}
The code crashes on the loading line. Why would this happen?
make sure you're linking to openCV's release dlls when running in release mode. I've had similar problems when I tried to load files with mixed release and debug dlls.
See this post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With