Does anyone know if you can use the OpenCV library within the processing Android template? I want to do some image recognition/comparison for these devices within Processing. What are the means to do such? and does anyone have an example of source code for it? Thanks!
The OpenCV library that you would normally use (http://ubaa.net/shared/processing/opencv/) will not work for Android.
However, Android has it's own port of OpenCV, which is available here: http://opencv.org/platforms/android.html
That being said, it is a little tricky to setup itself vis-a-vis Processing, particularly if you are using the PDE. If you are using Eclipse & Processing together, then this answer may be useful to you: OpenCV on Android Using Eclipse
One option I would recommend using the Ketai library (https://code.google.com/p/ketai/) to do the heavy lifting for you. It has a camera class and a face detection class...
来源:https://stackoverflow.com/questions/16877306/use-processing-and-opencv-for-android-development