コード例 #1
0
 /**
  * Called when the face is assumed to be gone for good. Remove the googly eyes graphic from the
  * overlay.
  */
 @Override
 public void onDone() {
   mOverlay.remove(mEyesGraphic);
 }
コード例 #2
0
 /**
  * Hide the graphic when the corresponding face was not detected. This can happen for intermediate
  * frames temporarily (e.g., if the face was momentarily blocked from view).
  */
 @Override
 public void onMissing(FaceDetector.Detections<Face> detectionResults) {
   mOverlay.remove(mEyesGraphic);
 }