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.
问题:
回答1:
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)
回答2:
I've seen this same issue on our ObscuraCam[0] project, and are left using both the old and the new API to try and maximize detection.
It seems like the new API is only better in the details it gives you about the face landmarks and the expression classification, and not in the ability to actual detect faces or partial faces.
[0] https://github.com/guardianproject/obscuracam