Crop face from the CameraSource
I am implementing the example given in google-vision face tracker . MyFaceDetector class: public class MyFaceDetector extends Detector<Face> { private Detector<Face> mDelegate; MyFaceDetector(Detector<Face> delegate) { mDelegate = delegate; } public SparseArray<Face> detect(Frame frame) { return mDelegate.detect(frame); } public boolean isOperational() { return mDelegate.isOperational(); } public boolean setFocus(int id) { return mDelegate.setFocus(id); } } FaceTrackerActivity class: private void createCameraSource() { imageView = (ImageView) findViewById(R.id.face); FaceDetector faceDetector