Sample tutorial_dnn_android not working without OpenCV Manager [closed]

asked 2019-01-17 01:23:58 -0600

Paulslp gravatar image

Decided to check an example https://docs.opencv.org/3.4.2/d0/d6c/.... The application was building successfully, but because of the impossibility of initializing OpenSVManager it does not work. Can you help with fixing the example code?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Paulslp
close date 2019-01-17 22:41:27.066688

Comments

berak gravatar imageberak ( 2019-01-17 01:44:28 -0600 )edit

From the tutorial: Install once an appropriate OpenCV manager from unpacked_OpenCV_package/apk to target device.. If you want to ask how to use this sample without the manager - ask it.

dkurt gravatar imagedkurt ( 2019-01-17 01:46:42 -0600 )edit
1

Yes, I want to ask how to use this sample without a manager. According to the instructions https://docs.opencv.org/master/d5/df8..., I added an SO-file to the opencv_mobilenet\ app\src\main\libs\armeabi folder, but the gradle gives an error when building. How to configure the gradle so that it connects the libraries from the SO-file?

The graddle error is below

Execution failed for task ':app:compileDebugNdk'.

Error: Your project contains C++ files but it is not using a supported native build system. Consider using CMake or ndk-build integration. For more information, go to: https://d.android.com/r/studio-ui/add... Alternatively, you can use the experimental plugin: https://developer.android.com/r/tools...

Paulslp gravatar imagePaulslp ( 2019-01-17 03:58:47 -0600 )edit

Used OpenCV version 3.4.3

Paulslp gravatar imagePaulslp ( 2019-01-17 05:25:53 -0600 )edit