2018-03-28 02:22:35 -0600 | received badge | ● Enthusiast |
2018-03-06 05:23:55 -0600 | marked best answer | Error when loading torch model in OpenCV 3.4.1 Android I'm trying to do face recognition on Android using OpenFace nn4.small2.v1 neural network. To see if the network could be loaded with OpenCV, I tried to run a code taken from GitHub that uses the model. Using the prebuilt Windows version of OpenCV, I can run the code and the network is loaded without a problem.
I am using Xamarin for my app, so I have a Xamarin.Android project, and a Android shared library project where I have my C++ code. Here's the C# code that calls the native code : And here's the C++ code : The filepath I have for netpath and cascadePath is something like "/data/user/0/com.my.app/files/name.of.file.xxx". Stepping through the C++ code also gives me error when calling e.what() for some reason, but I get the error string when debugging the C# side. |
2018-03-06 05:12:23 -0600 | commented question | Error when loading torch model in OpenCV 3.4.1 Android Turns out the problem was indeed with the file. It was downloaded correctly but my function to copy it from the apk to t |
2018-03-06 03:58:52 -0600 | asked a question | Error when loading torch model in OpenCV 3.4.1 Android Error when loading torch model in OpenCV 3.4.1 Android I'm trying to do face recognition on Android using OpenFace nn4.s |