Dividing the timestamp by 1000 when returning a "none" result object from GestureRecognizer and HandLandmarker APIs.
PiperOrigin-RevId: 488409077
This commit is contained in:
parent
c7d531ebb2
commit
4b5c3521af
|
@ -164,7 +164,9 @@ public final class GestureRecognizer extends BaseVisionTaskApi {
|
||||||
new ArrayList<>(),
|
new ArrayList<>(),
|
||||||
new ArrayList<>(),
|
new ArrayList<>(),
|
||||||
new ArrayList<>(),
|
new ArrayList<>(),
|
||||||
packets.get(HAND_GESTURES_OUT_STREAM_INDEX).getTimestamp());
|
BaseVisionTaskApi.generateResultTimestampMs(
|
||||||
|
recognizerOptions.runningMode(),
|
||||||
|
packets.get(HAND_GESTURES_OUT_STREAM_INDEX)));
|
||||||
}
|
}
|
||||||
return GestureRecognizerResult.create(
|
return GestureRecognizerResult.create(
|
||||||
PacketGetter.getProtoVector(
|
PacketGetter.getProtoVector(
|
||||||
|
|
|
@ -156,7 +156,8 @@ public final class HandLandmarker extends BaseVisionTaskApi {
|
||||||
new ArrayList<>(),
|
new ArrayList<>(),
|
||||||
new ArrayList<>(),
|
new ArrayList<>(),
|
||||||
new ArrayList<>(),
|
new ArrayList<>(),
|
||||||
packets.get(LANDMARKS_OUT_STREAM_INDEX).getTimestamp());
|
BaseVisionTaskApi.generateResultTimestampMs(
|
||||||
|
landmarkerOptions.runningMode(), packets.get(LANDMARKS_OUT_STREAM_INDEX)));
|
||||||
}
|
}
|
||||||
return HandLandmarkerResult.create(
|
return HandLandmarkerResult.create(
|
||||||
PacketGetter.getProtoVector(
|
PacketGetter.getProtoVector(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user