File tree Expand file tree Collapse file tree
google/cloud/videointelligence/v1p2beta1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -405,6 +405,22 @@ message ObjectTrackingFrame {
405405
406406// Annotations corresponding to one tracked object.
407407message 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.
You can’t perform that action at this time.
0 commit comments