To detect faces in an image, create an InputImage object from either a Bitmap , media. Image , ByteBuffer , byte array, or a file on the device. Then, pass the InputImage object to the FaceDetector ‘s process method . For face detection, you should use an image with dimensions of at least 480×360 pixels.
Read moreHow face is detected?
Face detection algorithms typically start by searching for human eyes — one of the easiest features to detect. The algorithm might then attempt to detect eyebrows, the mouth, nose, nostrils and the iris.
Read more