使用Android摄像头的Andr​​oid脸检测 [英] Android face detector using android camera

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

问题描述

我读过它可以使用内置的Andr​​oid的脸检测发现脸上的位图的位置。有谁知道使用相机作为输入,这样做的任何的例子?

I've read its possible to use the built in android face detector to find the position of faces in a bitmap. Does anyone know of any examples of doing this using the camera as an input?

推荐答案

其可能与人脸检测的API在ICS。请参阅相机部分在此页: http://developer.android.com/sdk/android-4.0.html

Its possible with the Face Detection APIs in ICS. Refer the camera section on this page: http://developer.android.com/sdk/android-4.0.html

您必须注册 FaceDetectionListener ,然后调用 camera.startFaceDetection()。请仔细阅读上面的链接了解详情。

You must register a FaceDetectionListener and then call camera.startFaceDetection(). Please read the link above for more details.

我写了一些样品code。它不是完美的,因为它的工作正在进行中,但人脸检测位工作得很好:

I wrote some sample code. It isn't perfect since its Work In Progress but the face detection bit works just fine:

https://docs.google.com/open?id=0B2Nu5U2Cz81qZExGQ25sWVdRd21IOExUUTZsZzFoZw

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

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