(-215:Assertion failed) inputs.size() == requiredOutputs in function 'getMemoryShapes'
List<Mat> outs = new ArrayList<>(2);
List<String> outNames = new ArrayList<String>();
outNames.add("feature_fusion/Conv_7/Sigmoid");
outNames.add("feature_fusion/concat_3");
net.forward(outs, outNames);
i used this code in eclipse and its run well, but after i convert it into android plateform i get error at this method:
public void forward(List<Mat> outputBlobs, List<String> outBlobNames)
{
Mat outputBlobs_mat = new Mat();
//forward_4 give the error
forward_4(nativeObj, outputBlobs_mat.nativeObj, outBlobNames);
Converters.Mat_to_vector_Mat(outputBlobs_mat, outputBlobs);
outputBlobs_mat.release();
return;
}
here the full error
CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.0.1) /build/master_pack-android/opencv/modules/dnn/src/dnn.cpp:686: error: (-215:Assertion failed) inputs.size() == requiredOutputs in function 'getMemoryShapes'
i use same image run in eclipse. in android i convert from Bitmap format into Mat using Utils class. anyone please..
opencv version ? (esp. the android one) ?
4.0.1. is it any change in this version? and i just checked my eclipse using 3.4.5 version.
ah, ok, was only asking because of a
List<String>
related bug in opencv 3.4.3 (does not seem to affect you)lol, haha.. you just give me a fake hope..