Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed assertion by saliency calculation

Hi everyone,

I would like to calculate the BING objectness of some images, but I can not get my code to run. I am using the example code, released here: https://gist.github.com/thorikawa/feab607cb4397a6d3901 but if I call computeSaliency() I get an assertion error:

OpenCV Error: Assertion failed (w1f.cols * w1f.rows == D && w1f.type() == CV_32F && w1f.isContinuous()) in cv::saliency::ObjectnessBING::FilterTIG::update, file \opencv_contrib-master\opencv_contrib-master\modules\saliency\src\BING\FilterTIG.cpp, line 74

I could imagine, that maybe the training fails, even though I set the training data path just like the example says. How could I check, that the training went well? Or does anyone have any idea, how I could get rid of this assertion error?

Thanks a lot for the help!