androidface-detectiongoogle-vision

New Android Face API limitations


I have been testing the new Face API realesed for android, and noticed even with "ACCURATE_MODE" enabled, it doesn't detect faces that old FaceDetector API used to detect, Also i would like to know the effect of Bitmap coding "RGB_565" vs "ARGB_888" in producing the results.


Solution

  • Update:

    The issue was that the face detector is set to only detect faces that are at least 10% by default (as a performance optimization).

    The new Google Play Services 8.4 release supports setting this minimum face size lower, enabling smaller faces to be detected. See the setMinFaceSize method here:

    https://developers.google.com/android/reference/com/google/android/gms/vision/face/FaceDetector.Builder.html#setMinFaceSize(float)