Android的人脸检测使用的OpenCV / JavaCV [英] Android Face Detection using OpenCV/JavaCV

查看:591
本文介绍了Android的人脸检测使用的OpenCV / JavaCV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我是怎么实现Android的人脸检测使用的OpenCV / JavaCV。任何一个有想法是什么,否则有code,请在此发表评论或将code。我想从手机图库得到面孔和检测它们。

I want to know how I implement Android Face Detection using OpenCV/JavaCV. Any one have idea about that or have code please comment on this or put the code. I want get faces from the Phone Gallery and detect them..

推荐答案

有关的脸detectiion您可以使用内置的 FaceDetector 在Android SDK,它返回的骨形成蛋白脸的位置和角度。但它不是非常快。

For face detectiion you can use the built in FaceDetector in the Android SDK, It returns face positions and angles in BMPs. But it's not very fast.

您还可以使用javaCV人脸检测,但前开始,我建议你看这<一href="http://www.smallscreendesign.com/2011/01/25/about-face-detection-on-android-part-1/">article看到优势和constarint一些API,你可以使用,也比较性能

You can Also use the javaCV face detection but before to start i recommend you to see this article to see advantages and constarint of some API that you can use and also compare Performance

对于FaceDetector你可以看到这些链接

  1. 链接1
  2. 链接2
  1. Link 1
  2. Link 2

下面是一个使用FaceDetector和OpenGL(绘制矩形)一个实时人脸检测样本在Android 2.2的其中工程

Here's a realtime face detection sample using FaceDetector and OpenGL (draws rectangles) which works in Android 2.2

您也可以使用 OpenCV的Andr​​oid中

You can also use OpenCV in Android

您最好在Linux上试试这个(我试过在Windows上,但没有成功)。

You'd better try this on Linux (I've tried it on Windows, but failed).

最后 JavaCV (强烈推荐)

Finally JavaCV (strongly recommended)

有使用相机的实时人脸检测的样本code。请参阅javacv-SRC - *拉链的下载页面上

There is a sample code of realtime face detection using the camera. See "javacv-src-*.zip" on the download page.

这篇关于Android的人脸检测使用的OpenCV / JavaCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆