android - 在android中使用OpenCV进行人脸识别?

标签 android opencv face-recognition

我可以使用 open cv 检测人脸,但我不知道如何处理人脸识别。

我在谷歌上搜索了很多,但没有找到任何可以指导我的文章或博客。

谁能帮我开发安卓人脸识别App?

最佳答案

您始终可以使用 JavaCV,它是原生 OpenCV 函数的一种包装器:

参见: Face Recognition on Android

为了使一切正常工作,您必须将一些 .so 文件提取到项目中的 libs 文件夹中:

按照 this page 上的说明进行操作

  1. Go to File > New > Folder, select your project as parent folder, type "libs/armeabi" as Folder name, and click Finish.

  2. Copy javacpp.jar and javacv.jar into the newly created "libs" folder.

  3. Extract all the *.so files from javacv-android-arm.jar, opencv-2.4.6.1-android-arm.jar, and ffmpeg-2.0.1-android-arm.jar directly into the newly created "libs/armeabi" folder, without creating any of the subdirectories found in the JAR files.

  4. Navigate to Project > Properties > Java Build Path > Libraries and click "Add JARs...".

  5. select both javacpp.jar and javacv.jar from the newly created "libs" folder.

来源:https://code.google.com/p/javacv/

在您的libs 文件夹中包含javacppjavacv:https://code.google.com/p/javacv/

下载后在javacpp中找到需要的jar,解压出需要的SO文件(是的,你可以用WinRAR打开jar)

编译并构建实验代码:Face Recognition on Android

给你!它对我有用,所以我相信它对你也有用!

关于android - 在android中使用OpenCV进行人脸识别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18187084/

相关文章:

android - Android 中的谷歌地图 API

android - 不同屏幕尺寸的不同布局

android - 是否需要绑定(bind)到已启动的本地服务?

visual-c++ - openCV 中的物体检测

python - 为什么 cv2.imread() 不存储我的图像文件的名称?

opencv - 使用局部描述符实现人脸识别(无监督学习)

javascript - 如何使用 javascript 访问网络摄像头中的图像帧

c - 如何从相机中抓取多个帧?

java - 适用于 Android 的 catmull-rom 样条

c++ - 对 cv::Mat::Mat() 的 undefined reference