2018-09-17 05:05:15 -0600 | received badge | ● Enthusiast |
2018-08-15 05:17:50 -0600 | marked best answer | [HELP] CvException @ Dnn.forward() in Android I'm trying to implement Gil Levi and Tal Hassner.Age and Gender Classification Using Convolutional Neural Networks to Android app but I'm getting an error on Dnn.forward(). I followed this link:tutorial and I get following error: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2) /build/3_4_pack-android/opencv/modules/dnn/src/layers/convolution_layer.cpp:987: error: (-215:Assertion failed) inputs[0]->size[1] % blobs[0].size[1] == 0 in function 'virtual void cv::dnn::ConvolutionLayerImpl::forward(std::vector<cv::mat*>&, std::vector<cv::mat>&, std::vector<cv::mat>&)' ] If could somebody help me, I'll be grateful :) Code snippet: @Override public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) { |
2018-08-15 05:17:50 -0600 | received badge | ● Scholar (source) |
2018-08-15 05:17:22 -0600 | commented answer | [HELP] CvException @ Dnn.forward() in Android I converted to BGR and added mean value too. Now it works! I'm getting result. Thank you very much. |
2018-08-13 04:39:18 -0600 | commented answer | [HELP] CvException @ Dnn.forward() in Android Yes. I added Imgproc.resize(capturedFace, capturedFace, new Size(227, 227)); Same error :/ Maybe I'm calling something a |
2018-08-13 04:35:00 -0600 | edited question | [HELP] CvException @ Dnn.forward() in Android [HELP] CvException @ Dnn.forward() in Android I'm trying to implement Gil Levi and Tal Hassner.Age and Gender Classifica |
2018-08-12 11:45:07 -0600 | commented answer | [HELP] CvException @ Dnn.forward() in Android Thank you for your answer. I updated my question with following error copied from Logcat after I tried your solution. |
2018-08-12 11:42:27 -0600 | received badge | ● Editor (source) |
2018-08-12 11:42:27 -0600 | edited question | [HELP] CvException @ Dnn.forward() in Android [HELP] CvException @ Dnn.forward() in Android I'm trying to implement Gil Levi and Tal Hassner.Age and Gender Classifica |
2018-08-12 11:39:14 -0600 | commented answer | [HELP] CvException @ Dnn.forward() in Android Thank you for your answer. I updated my question with following error copied from Logcat after I tried your solution. |
2018-08-11 23:19:19 -0600 | asked a question | [HELP] CvException @ Dnn.forward() in Android [HELP] CvException @ Dnn.forward() in Android I'm trying to implement Gil Levi and Tal Hassner.Age and Gender Classifica |