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

How to debug OpenCV C++ code in an NDK project #45

Closed cesine closed 12 years ago

cesine commented 12 years ago

one option is to build the C++ in another project

another is to do image print to a path on the sdcard

and the default is to use __android_log_print(

cesine commented 12 years ago

use LOGI or LOGE which grassick defined

write the image to the sdcard

can also color the mask of what was found on the screen:

and can draw contours individually or all the contours in the vector

cesine commented 12 years ago

I put some more detailed debuging stuff in the sister project:

https://github.com/AndroidImageProcessing/AndroidOpenCVforHackathons/issues?milestone=2&state=closed