I tried to run the affdex/cpp-sdk-samples downloaded from github. And I have encountered an exception. After running the fllowing sentences:
frameDetector->setClassifierPath(DATA_FOLDER);
an error occured:
Encountered an exception bad allocation
And VS2015 showes:
0x00007FF884FD9E08 处(位于 opencv-webcam-demo.exe 中)引发的异常: Microsoft C++ 异常: std::bad_alloc,位于内存位置 0x0000006ED96FF7E0 处。
0x00007FF884FD9E08 处(位于 opencv-webcam-demo.exe 中)引发的异常: Microsoft C++ 异常: std::bad_alloc,位于内存位置 0x0000006ED96FD280 处。
0x00007FF884FD9E08 处(位于 opencv-webcam-demo.exe 中)引发的异常: Microsoft C++ 异常: [rethrow],位于内存位置 0x0000000000000000 处。
0x00007FF884FD9E08 处(位于 opencv-webcam-demo.exe 中)引发的异常: Microsoft C++ 异常: std::bad_alloc,位于内存位置 0x0000006ED96FD280 处。
My enviroment is windows 10 and visual studio 2015. I think i have configured the env right. And I used
-d D:\\data
to specify the data folder.
Could anyone tell me how to fix this error?