Do not convert milliseconds to microseconds twice

Fixes https://github.com/google/mediapipe/issues/4809

PiperOrigin-RevId: 566644379
This commit is contained in:
Sebastian Schmidt 2023-09-19 08:44:28 -07:00 committed by Copybara-Service
parent 0ed199186b
commit 12600e03e9

View File

@ -118,7 +118,7 @@ public class BaseVisionTaskApi implements AutoCloseable {
.getPacketCreator()
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
}
return processVideoData(inputPackets, timestampMs * MICROSECONDS_PER_MILLISECOND);
return processVideoData(inputPackets, timestampMs);
}
/**
@ -160,7 +160,7 @@ public class BaseVisionTaskApi implements AutoCloseable {
.getPacketCreator()
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
}
sendLiveStreamData(inputPackets, timestampMs * MICROSECONDS_PER_MILLISECOND);
sendLiveStreamData(inputPackets, timestampMs);
}
/**