8000 feat!: field ObjectTrackingAnnotation.segment moved into oneof, added… · googleapis/googleapis@0506e19 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0506e19

Browse files
Google APIscopybara-github
authored andcommitted
feat!: field ObjectTrackingAnnotation.segment moved into oneof, added track_id
PiperOrigin-RevId: 445061085
1 parent dea9ccb commit 0506e19

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

google/cloud/videointelligence/v1p2beta1/video_intelligence.proto

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,22 @@ message ObjectTrackingFrame {
405405

406406
// Annotations corresponding to one tracked object.
407407
message ObjectTrackingAnnotation {
408+
// Different representation of tracking info in non-streaming batch
409+
// and streaming modes.
410+
oneof track_info {
411+
// Non-streaming batch mode ONLY.
412+
// Each object track corresponds to one video segment where it appears.
413+
VideoSegment segment = 3;
414+
415+
// Streaming mode ONLY.
416+
// In streaming mode, we do not know the end time of a tracked object
417+
// before it is completed. Hence, there is no VideoSegment info returned.
418+
// Instead, we provide a unique identifiable integer track_id so that
419+
// the customers can correlate the results of the ongoing
420+
// ObjectTrackAnnotation of the same track_id over time.
421+
int64 track_id = 5;
422+
}
423+
408424
// Entity to specify the object category that this track is labeled as.
409425
Entity entity = 1;
410426

@@ -413,9 +429,6 @@ message ObjectTrackingAnnotation {
413429

414430
// Information corresponding to all frames where this object track appears.
415431
repeated ObjectTrackingFrame frames = 2;
416-
417-
// Each object track corresponds to one video segment where it appears.
418-
VideoSegment segment = 3;
419432
}
420433

421434
// Video annotation feature.

0 commit comments

Comments
 (0)
0