Running python script with Numpy and OpenCV on Android

Another option is https://termux.com, but you'll have a bit of hard time getting cv2 to work on it.


I would give a try to Kivy Launcher you'll have to build it with opencv and numpy support

please see: How to run OpenCV in Kivy Launcher? for details on that.

after the first build you'll have an app that can run your script and you won't have to generate the APK again, just change the script :)


The best solution for me was using steveliles's OpenCv for Android and converting the Python scripts to Java. Turns out opencv had all the mat calculation functions I needed

Another solution would be using chroot: https://technohackerblog.blogspot.co.il/2016/07/running-arch-linux-in-chroot-on-android.html