Project import generated by Copybara.

GitOrigin-RevId: 50714fe28298d7b707eff7304547d89d6ec34a54
This commit is contained in:
MediaPipe Team
2019-11-21 13:20:47 -08:00
committed by mgyong
parent 9437483827
commit 48bcbb115f
60 changed files with 1662 additions and 111 deletions
+5 -4
View File
@@ -274,10 +274,11 @@ float TimestampsToRate(int64 first_timestamp, int64 second_timestamp) {
// overwriting with modified values.
if (!GetUnmodifiedBBoxTimestampSize(prefix, *sequence)) {
for (int i = 0; i < num_frames; ++i) {
if (bbox_index_if_annotated[i] >= 0 &&
GetBBoxIsAnnotatedAt(prefix, *sequence, i)) {
AddUnmodifiedBBoxTimestamp(
prefix, box_timestamps[bbox_index_if_annotated[i]], sequence);
const int bbox_index = bbox_index_if_annotated[i];
if (bbox_index >= 0 &&
GetBBoxIsAnnotatedAt(prefix, *sequence, bbox_index)) {
AddUnmodifiedBBoxTimestamp(prefix, box_timestamps[bbox_index],
sequence);
}
}
}