Sample tutorial_dnn_android not working without OpenCV Manager [closed]

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

Paulslp gravatar image

Decided to check an example 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


berak gravatar imageberak ( 2019-01-17 01:44:28 -0500 )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 -0500 )edit

Yes, I want to ask how to use this sample without a manager. According to the instructions, 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: Alternatively, you can use the experimental plugin:

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

Used OpenCV version 3.4.3

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