使用Processing和Opencv进行android开发? [英] Use Processing and Opencv For android development?
问题描述
有人知道您是否可以在处理 Android模板中使用 OpenCV 库?我想在Processing中对这些设备进行一些图像识别/比较。
有什么方法可以做到这一点?有没有人有一个源代码示例?
谢谢!
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!
推荐答案
您通常会使用的OpenCV库( http://ubaa.net/shared/processing/opencv/ )不适用于Android。
The OpenCV library that you would normally use (http://ubaa.net/shared/processing/opencv/) will not work for Android.
然而,Android拥有自己的OpenCV端口,可在此处获取: http://opencv.org/platforms/android.html
However, Android has it's own port of OpenCV, which is available here: http://opencv.org/platforms/android.html
话虽如此,设置本身有点棘手相对于处理,特别是在使用PDE时。 如果您正在使用Eclipse&一起处理,然后这个答案可能对您有用:使用Eclipse的Android上的OpenCV
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
我建议使用Ketai库的一个选项( https://code.google.com/p/ketai/ )为您做繁重的工作。它有一个摄像头类和一个人脸检测类......
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...
这篇关于使用Processing和Opencv进行android开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!