2019-02-27 09:13:18 -0600 | received badge | ● Notable Question (source) |
2018-04-29 07:47:59 -0600 | received badge | ● Popular Question (source) |
2016-10-14 07:17:33 -0600 | received badge | ● Editor (source) |
2016-10-11 04:40:48 -0600 | commented answer | OpenCV C++ in Android Studio |
2016-10-11 04:40:34 -0600 | received badge | ● Scholar (source) |
2016-10-11 04:40:29 -0600 | answered a question | how to build custom opencv for android (and test application using c++ client code as well as java ui) Here are instructions on how to achieve this taken from here: http://silverglint.com/opencv-on-andr... The detailed instructions here are apply to a development machine running Linux, but the procedure should be very similar on Windows/MacOS(X) You should now have the freshly built OpenCV libraries in {path_to_local_clone_of_opencv_repo}/opencv_github/platforms//build_android_arm/lib/armeabi-v7a/ Note: After the first build cmake caches options in the following location: {path_to_local_clone_of_opencv_repo}/opencv_github/platforms/build_android_arm/CMakeCache.txt You can peruse and edit these (and then repeat the previous 2 steps), if you want to perform any customizations of the build. |
2016-09-30 09:16:15 -0600 | commented answer | OpenCV C++ in Android Studio "get builded Libraries -" Can you please explain how to build these yourself for android (rather than use the precompiled ones from OpenCV4Android SDK )? If I do:
I get "OpenCV-2.4.9-android-sdk/sdk/native/jni" does not appear to contain CMakeLists.txt" |
2016-09-29 04:02:31 -0600 | asked a question | how to build custom opencv for android (and test application using c++ client code as well as java ui) Hello. How can I build opencv myself on android such that I can write other native c++ application code that interacts with it? Im using Android studio 2.2 with ndk installed. Most examples/documentation seems to be geared toward eclipse and the older .mk build system rather tham Android Studio and gradle. More details:I have a windows c++ application thst uses opencv. I want to port this application to android. So I need to port not only my application (c++) code but also opencv to android. My application code can be split into 2 parts: User interface part and the lower level part that interacts directly with opencv. The part of my application code that interacts with opencv I want to leave in c++, and just create a user interface in java. So I want an android (java) ui, that "talks" to my other c++ native code, which in turn "talks" to the opencv library code. (This way I can presumably port more easily later to iOS). Is there an exmaple anywhere of this (ideally using Android Studio, and gradle)? I have downloaded the opencv android sdk (linked from http://opencv.org/downloads.html) to create an application with Android Studio solely in java that talks to opencv. I followed the advice here: http://stackoverflow.com/questions/17... To do this I had to copy the precompiled libraries that came with the sdk (sdk/native/libs/libopencv_core.a etc) to my android project dir. One probblem I have with this is that the precompiled libraries are not available for my android test device (which requires "arm64-v8a") . So Id like to be able to compile them myself and specify that it should also build for arm64-v8a, and not just: "armeabi" "armeabi-v7a" "mips" "x86". (The opencv sdk 3.1.0 has "arm64-v8a" "armeabi" "armeabi-v7a" "mips" "mips64" "x86" "x86_64") but I need to use earlier versions of opencv too. the other problem is that it wasnt quite clear how to write other c++ code that interacts with opencv here (only java). Id be very grateful for any help. Thanks in Advance. |