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

feat!: field ObjectTrackingAnnotation.segment moved into oneof, added track_id #704

Merged
merged 2 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,22 @@ message ObjectTrackingFrame {

// Annotations corresponding to one tracked object.
message ObjectTrackingAnnotation {
// Different representation of tracking info in non-streaming batch
// and streaming modes.
oneof track_info {
// Non-streaming batch mode ONLY.
// Each object track corresponds to one video segment where it appears.
VideoSegment segment = 3;

// Streaming mode ONLY.
// In streaming mode, we do not know the end time of a tracked object
// before it is completed. Hence, there is no VideoSegment info returned.
// Instead, we provide a unique identifiable integer track_id so that
// the customers can correlate the results of the ongoing
// ObjectTrackAnnotation of the same track_id over time.
int64 track_id = 5;
}

// Entity to specify the object category that this track is labeled as.
Entity entity = 1;

Expand All @@ -413,9 +429,6 @@ message ObjectTrackingAnnotation {

// Information corresponding to all frames where this object track appears.
repeated ObjectTrackingFrame frames = 2;

// Each object track corresponds to one video segment where it appears.
VideoSegment segment = 3;
}

// Video annotation feature.
Expand Down
19 changes: 14 additions & 5 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 77 additions & 19 deletions protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.