使用Android摄像头的Android脸检测 [英] Android face detector using android camera
问题描述
我读过它可以使用内置的Android的脸检测发现脸上的位图的位置。有谁知道使用相机作为输入,这样做的任何的例子?
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摄像头的Android脸检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!