Android中的面部检测? [英] Face Detection in Android?

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

问题描述

我目前正在使用实验性相机应用程式。我正在考虑实施面部检测,目前正在加重我的选择。



我考虑过OpenCV端口可用于Android和使用他们的脸部检测功能,但从我以前看到的演示,以前的实现,相机似乎滞后了很多。



考虑到HTC Desire上的相机有面部检测支持,我知道它必须可能获得至少一个半正确的面部检测系统到位。我只是想知道,如果有人有我的意见,如何我可以得到最好的结果...使用可用的图书馆? /developer.android.com/reference/android/media/FaceDetector.htmlrel =nofollow> FaceDetector 。它返回BMP中的面部位置和角度。



这是一个

  • Android中的OpenCV



    您最好在Linux上尝试


  • JavaCV (强烈建议)



    有一个使用相机的实时人脸检测的示例代码。请参阅下载页面上的javacv-src - *。zip。



  • I am currently working on an experimental camera app. I'm looking into implementing face detection at the moment and am currently weighing up my options.

    I have considered the OpenCV port available for Android and using their face detection functions, but from demos I have seen of previous implementations, the camera seems to lag a lot.

    Considering the camera on the HTC Desire has face detection support, I know it must be possible to get at least a semi-decent face detection system in place. I was just wondering if anyone had an opinion on how I could get the best results... Using an available library? Implementing a particular algorithm myself?

    解决方案

    1. Try FaceDetector in the Android SDK. It returns face positions and angles in BMPs. But it's not very fast.

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

    2. OpenCV in Android

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

    3. JavaCV (strongly recommended)

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

    这篇关于Android中的面部检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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