Opencv 3.0.0 OpenCVEngineInterface

I am trying to install opencv 3.0.0 in android studio IDE. But every time I face this problem with importing "org.opencv.engine.OpenCVEngineInterface" the IDE gives me 4 errors like:

Error: (7, 25) error: package org.opencv.engine does not exist Error: (47, 15) error: Cannot find symbol class OpenCVEngineInterface Error: (161, 51) error: package OpenCVEngineInterface does not exist Error: Execution completed for tasks ': libs: opencv: compileReleaseJava'.

I go to opencv / engine folder and there is a file named OpenCVEngineInterface.aidl

. These errors are all the same - org.opencv.engine. I searched but couldn't find anything.

+3


source to share


2 answers


This is because you did not add the org.opencv.engine package to the correct path.

In the OpenCV SDK, org.opencv.engine is helpl. You need to add org.opencv.engine.OpenCVEngineInterface.aidl to your helpl directory.

You can solve this problem as follows:

1, create a new directory in "main".



2, copy the org.opencv.engine package to that directory like this:

enter image description here

Then try again.

+2


source


I found a solution after adding OpenCV as a module to your project, you must add the "Android" facet ("Open Module Settings -> Facets") to the OpenCV module and specify the paths as in a normal project.



0


source







All Articles