I am trying to use MLKit in my app for face detection. I am using Camera 2 API to get the image from image reader and pass it to the face detector for processing. This works