build opencv with java wrapper for android [closed]

asked 2020-09-18 07:05:01 -0500

ARYL518 gravatar image

Hi, I added some functionality in the chessboard.cpp and I can compile it on windows using VS2017. My final end is to use this added functionality on Android, so I need to compile OpenCV with java wrapper. Can anybody guide me how to do it?

Thanks a lot!


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-21 03:22:58.709145


sturkmen gravatar imagesturkmen ( 2020-09-18 14:16:26 -0500 )edit

My question is how to build OpenCV with java wrapper for android rather than how to use a prebuild OpenCV-android.

ARYL518 gravatar imageARYL518 ( 2020-09-19 02:56:52 -0500 )edit


i built on Windows 10 using

python D:/github/opencv/platforms/android/ . D:/github/opencv

environment vars:

ANDROID_NDK C:\Users\sturk\AppData\Local\Android\Sdk\ndk\21.3.6528147
ANDROID_SDK C:\Users\sturk\AppData\Local\Android\Sdk
JAVA_HOME C:\Program Files\Java\jdk1.8.0_261
sturkmen gravatar imagesturkmen ( 2020-09-19 06:33:01 -0500 )edit

It works. Thanks!

ARYL518 gravatar imageARYL518 ( 2020-09-21 02:58:11 -0500 )edit