also, for a single image it should be blobFromImageWithParams() (not Images), i guess, no ?
as of now, there might be an additional (vector) dimension missing in your input
You are right i made a mistake
I use dnn::blobFromImagesWithParams instead of dnn::blobFromImageWithParams
may be some check type must be done in blobFromImagesWithParams
I try a PR with
if (images_.kind() != _InputArray::STD_VECTOR_MAT && images_.kind() != _InputArray::STD_ARRAY_MAT &&
images_.kind() != _InputArray::STD_VECTOR_VECTOR) {
String error_message = "The data is expected as InputArray::STD_VECTOR_MAT (a std::vector<Mat>) or _InputArray::STD_VECTOR_VECTOR (a std::vector< std::vector<...> >).";
CV_Error(Error::StsBadArg, error_message);
}
I think this is a good idea. Missing just a single “s” in function name leads to silently changed behaviour. Cannot think up a usecase when using blobFromImages may accept a single Mat as a container for multiple images.