【发布时间】:2013-10-01 05:31:44
【问题描述】:
我正在使用 Camera API 及其 FaceDetectionListener。
当我用
检查我的两个设备(S3 和 Galaxy nexus)时Camera.Parameters params = mCamera.getParameters();
int faceCount = params.getMaxNumDetectedFaces();
S3 返回 5,Nexus 返回 35。然后当我尝试使用
启动侦听器时mCamera.startFaceDetection();
S3 工作正常(并且能够同时检测至少 12 个人脸),但 nexus 获得了IllegalArgumentException -> invalid face detection type=0
我现在有点困惑,为什么 Nexus 返回 35 并且同时拒绝启动 faceDetectionListener。我看过其他一些帖子,但它们并没有解释我的问题。在那里,人们说当我的设备不支持硬件人脸检测时,我会得到一个 0。所以我假设我的 Nexus 能够做到!
有人知道出了什么问题以及如何让 Nexus 通过侦听器检测人脸?
【问题讨论】:
标签: android face-detection galaxy-nexus