我可以使用 open cv 检测人脸,但我不知道如何处理人脸识别。
我在谷歌上搜索了很多,但没有找到任何可以指导我的文章或博客。
谁能帮我开发安卓人脸识别App?
最佳答案
您始终可以使用 JavaCV,它是原生 OpenCV 函数的一种包装器:
参见: Face Recognition on Android
为了使一切正常工作,您必须将一些 .so
文件提取到项目中的 libs
文件夹中:
按照 this page 上的说明进行操作
Go to File > New > Folder, select your project as parent folder, type "libs/armeabi" as Folder name, and click Finish.
Copy javacpp.jar and javacv.jar into the newly created "libs" folder.
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.
Navigate to Project > Properties > Java Build Path > Libraries and click "Add JARs...".
select both javacpp.jar and javacv.jar from the newly created "libs" folder.
来源:https://code.google.com/p/javacv/
在您的libs
文件夹中包含javacpp
和javacv
: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/