As of now I've successfully included the DNN module from opencv-contrib
into my current OpenCV 3.3.0 build for Android ARM, and am intending to use the Gil-Levi Caffe model for gender and age detection. The problem is that when I use it on a face submat, the whole app slows down to around 0.37 FPS.
I've heard from other questions that cv::gemm()
is the prime bottleneck of the current DNN implementation, and that replacing said function with the one from MKL or OpenBLAS can solve it. The problem is that I'm building for Android devices, so should I include it in my CMake toolchain somehow, or should I just modify the source?