/** * 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). */ public override void OnMissing(Android.Gms.Vision.Detector.Detections detections) { mOverlay.Remove(mFaceGraphic); }
/** * Update the position/characteristics of the face within the overlay. */ public override void OnUpdate(Android.Gms.Vision.Detector.Detections detections, Java.Lang.Object item) { mOverlay.Add(mFaceGraphic); mFaceGraphic.UpdateFace(item.JavaCast <Android.Gms.Vision.Faces.Face> ()); }