Do not convert milliseconds to microseconds twice
Fixes https://github.com/google/mediapipe/issues/4809 PiperOrigin-RevId: 566644379
This commit is contained in:
committed by
Copybara-Service
parent
0ed199186b
commit
12600e03e9
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user