1

As per the official documentation,

Minimum Face Size: float (default: 0.1f) - The minimum size, relative to the image, of faces to detect.

So, is it like it will detect the faces only if it's matches this size ?

I've tested and couldn't get any reasonable results.

I don't want the face to be detected if it's too small.

Ben Weiss
  • 17,182
  • 6
  • 67
  • 87
Rajesh
  • 399
  • 6
  • 15

1 Answers1

2

https://developers.google.com/android/reference/com/google/mlkit/vision/face/FaceDetectorOptions.Builder#setMinFaceSize(float)

Based on the documentation, the Face size is the minimum size to be detected. If you do not want to detect too small faces, please increase the number, i.e, setting it as 0.5 or 0.8 to only detect large faces.

Shiyu
  • 875
  • 4
  • 5