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 more