mWater / mWater-Android-App

An Android App that snaps a picture of a petrifilm, counts the bacteria and posts the counts on a server for the mWater project
https://github.com/AndroidImageProcessing
GNU General Public License v3.0
24 stars 16 forks source link

Android Client Iteration 2 - add infrastructure for NDK+OpenCV #28

Closed cesine closed 12 years ago

cesine commented 12 years ago

Take an existing working OpenCV in Android code (probably one of the tutorials) to set up the infrastructure needed for @pakdel's C++ port of the Image Processing script.

cesine commented 12 years ago

Very clear steps to create a builder for an NDK project:

http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html#android-binary-package-with-ndk

cesine commented 12 years ago

What I got done this morning: I brought over the resources from the Tutorial 2 Advanced - 1. Add Native OpenCV

But we need to decide on how we want to include the OpenCV source.. and how we want to set up the builder. At the moment it is complaining at this line:

include $(TOOLCHAIN_PREBUILT_ROOT)/user/share/OpenCV/OpenCV.mk

https://github.com/AndroidImageProcessing/AndroidBacteriaImageProcessing/commit/8f2927b0cffdec1d431c41869e06b8ec90530d2d

I might be able to work on it later tonight, or I might not. @drdub @peristeri if you want to work on the android code you can checkout tag https://github.com/AndroidImageProcessing/AndroidBacteriaImageProcessing/tree/v0.1 which is before the repo transitioned into NDK.

cesine commented 12 years ago

Decided to set up the environment as suggested in the OpenCV docs

http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html#android-binary-package-with-ndk

Tested calling Sample3Native from the app, at the moment getting

12-11 16:38:19.777: E/AndroidRuntime(7082): java.lang.RuntimeException: Fail to connect to camera service