Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does rgbImg need a .t()? #3

Open
YisenYu opened this issue May 3, 2019 · 1 comment
Open

Why does rgbImg need a .t()? #3

YisenYu opened this issue May 3, 2019 · 1 comment

Comments

@YisenYu
Copy link

YisenYu commented May 3, 2019

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()?

@santo4ul
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants