Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit b55757b

Browse files
feat!: field ObjectTrackingAnnotation.segment moved into oneof, added track_id (#704)
* feat!: field ObjectTrackingAnnotation.segment moved into oneof, added track_id PiperOrigin-RevId: 445061085 Source-Link: googleapis/googleapis@0506e19 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5796d5155df9a378c0fd8d97c06f7d7170765670 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTc5NmQ1MTU1ZGY5YTM3OGMwZmQ4ZDk3YzA2ZjdkNzE3MDc2NTY3MCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent dadf089 commit b55757b

File tree

4 files changed

+123
-31
lines changed

4 files changed

+123
-31
lines changed

protos/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto

+16-3
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.

protos/protos.d.ts

+14-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

+77-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.json

+16-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)