Android face detection MaxNumDetectedFaces

前端 未结 3 1041
滥情空心
滥情空心 2020-12-11 07:35

So I just upgraded my tablet (original asus transformer) to android version 4.0.3 to build a app using face detection. But every time i launch it and try to start face detec

3条回答
  •  抹茶落季
    2020-12-11 08:24

    You should first call getMaxNumDetectedFaces() to see if your device supports it. The return value should be > 0 if its supported. Like I mentioned in your previous question, the device camera module and drivers have to also support it.

    http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getMaxNumDetectedFaces()

提交回复
热议问题