You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding handling of the onMissing event allows the graphic trackers to
hide a temporarily missing item from view, which can happen occasionally
during tracking. This can reduce the perception of "lag", since it
won't show a stale detection on screen when the detection hasn't really
occurred.
Copy file name to clipboardExpand all lines: face/FaceTracker/app/src/main/java/com/google/android/gms/samples/vision/face/facetracker/FaceTrackerActivity.java
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -162,17 +162,27 @@ private class GraphicFaceTracker extends Tracker<Face> {
162
162
@Override
163
163
publicvoidonNewItem(intfaceId, Faceitem) {
164
164
mFaceGraphic.setId(faceId);
165
-
mOverlay.add(mFaceGraphic);
166
165
}
167
166
168
167
/**
169
168
* Update the position/characteristics of the face within the overlay.
Copy file name to clipboardExpand all lines: face/multi-tracker/app/src/main/java/com/google/android/gms/samples/vision/face/multitracker/GraphicTracker.java
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,17 +40,27 @@ class GraphicTracker<T> extends Tracker<T> {
40
40
@Override
41
41
publicvoidonNewItem(intid, Titem) {
42
42
mGraphic.setId(id);
43
-
mOverlay.add(mGraphic);
44
43
}
45
44
46
45
/**
47
46
* Update the position/characteristics of the item within the overlay.
0 commit comments