blobFromImage is giving wrong value.
Hi @dkurt i am creating 4-dimensional blob from image cv::dnn::blobFromImage() function but it is giving rows = -1, cols = -1 and data = " ". i am using simple code as shown below.
Mat inImage = imread("A_1.ppm", 1);
Mat rgbImage;
cvtColor(inImage, rgbImage, COLOR_BGRA2RGB );
Mat 4DImage = dnn::blobFromImage (rgbImage, 1.0, Size(rgbImage.rows, rgbImage.cols), Scalar(0, 0, 0), false, false);
return 0;
can you look at your broken code above again, and try to repair it ?
(so folks can try to repeat the problem ?)
Sorry @berak now i corrected.