How to integrate OpenCV native libraries and include files to Android Studio? -


i have been using opencv android long time. works fine, far. want improve performance , want go native. however, native development little complicated me in android. got point of , can build simple applications myself.

the point stuck how add libraries , include files in "native" folder of opencv android package.

note:i not intent create native application, use opencv native. other parts still java

long story short, don't want call native opencv methods java wrapper, instead related opencv in native , result java part.

thanks efford in advance.

if not using opencv java @ all, best option include libraries linking statically them, , removing dead code, symbols, etc, keep native library size under control. having download additional package many users don't like.

just include

opencv_lib_type:=static opencv_camera_modules:=off include path/to/opencv/sdk/native/jni/opencv.mk 

in android.mk.

have @ opencv android documentation here.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -