Remove issue with converting milliseconds to microseconds twice

This PR Fixes an issue for video and live stream mode where the millisecond timestamp is converted to microseconds twice
This commit is contained in:
philiprkk 2023-09-18 16:13:24 +02:00 committed by GitHub
parent d5fa4a157e
commit 8388b92c5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
/**