Most visited

Recently visited

Added in API level 14
Deprecated since API level 21

Camera.FaceDetectionListener

public static interface Camera.FaceDetectionListener

android.hardware.Camera.FaceDetectionListener


该接口在API级别21中已被弃用。
我们建议为新应用程序使用新的android.hardware.camera2 API。

预览框中检测到的人脸回调接口。

Summary

Public methods

abstract void onFaceDetection(Face[] faces, Camera camera)

通知预览帧中侦测到的面孔的侦听器。

Public methods

onFaceDetection

Added in API level 14
void onFaceDetection (Face[] faces, 
                Camera camera)

通知预览帧中侦测到的面孔的侦听器。

Parameters
faces Face: The detected faces in a list
camera Camera: The Camera service object

Hooray!