opencv-mtcnn icon indicating copy to clipboard operation
opencv-mtcnn copied to clipboard

Why does rgbImg need a .t()?

Open YisenYu opened this issue 5 years ago • 1 comments

Hello, I have one question about the input data processing in MTCNNDetector::detect(). rgbImg.convertTo(rgbImg, CV_32FC3); rgbImg = rgbImg.t(); Why does rgbImg need a .t()?

YisenYu avatar May 03 '19 18:05 YisenYu

I have the same question.

I think rgbImg = rgbImg.t(); converts (or rather simulates) the dimension to NCHW, which is required by the CNN module. blobFromImage actually gives the output in NCHW format.

santo4ul avatar Apr 12 '20 17:04 santo4ul