Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First off, there exists an <a href="http://opencv.org/platforms/android/opencv4android-usage-models.html" rel="noreferrer">OpenCV4Android</a> version of Android, with tutorials on how to use it.</p> <p>Then, as you pointed out, you can code both in Java or C++ on Android. OpenCV4Android can be used in Java [<a href="http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html" rel="noreferrer">1</a>] or in C++ [<a href="http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html#native-c" rel="noreferrer">2</a>]. In your case, it would probably be more convenient to re-use your C++ code, using the <a href="http://developer.android.com/tools/sdk/ndk/index.html" rel="noreferrer">Native Development Kit</a> for Android. If you manage to use the NDK, <strong>you will be able to re-use your C++ code by calling it from your Android app.</strong></p> <p>Here are the few steps I would advise you to follow:</p> <ul> <li>Read about the <a href="http://developer.android.com/tools/sdk/ndk/index.html" rel="noreferrer">Native Development Kit</a></li> <li>Read about the <a href="http://en.wikipedia.org/wiki/JNI" rel="noreferrer">Java Native Interface</a></li> <li>Try to create a sample Android app using C++ (You might find <a href="https://coderwall.com/p/nakhrq?i=1&amp;p=1&amp;q=&amp;t%5B%5D=%21%21mine&amp;t%5B%5D=%21%21bookmarks" rel="noreferrer">this quickstart tutorial</a> useful)</li> <li>Try to integrate OpenCV to your sample [<a href="http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html#native-c" rel="noreferrer">2</a>]</li> <li>Include your existing C++ code in your sample</li> </ul> <p>I hope it will help.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload