diff --git a/modules/dnn/src/dnn_utils.cpp b/modules/dnn/src/dnn_utils.cpp
index 5cc1359b0d..758380b419 100644
--- a/modules/dnn/src/dnn_utils.cpp
+++ b/modules/dnn/src/dnn_utils.cpp
@@ -60,7 +60,7 @@ void getChannelFromBlob(UMat& m, InputArray blob, int i, int j, int rows, int co
 
     const int newShape[1] { length };
     UMat reshaped = ublob.reshape(1, 1, newShape);
-    UMat roi = reshaped(Rect(0, offset, 1, rows * cols));
+    UMat roi = reshaped(Rect(offset, 0, rows * cols, 1));
     m = roi.reshape(CV_MAT_CN(type), rows);
 }
 
