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

Commit

Permalink
feat: add ObjectTrackingConfig and support apiEndpoint (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 5, 2019
1 parent bc12106 commit bac9326
Show file tree
Hide file tree
Showing 18 changed files with 968 additions and 20 deletions.
32 changes: 32 additions & 0 deletions protos/google/cloud/videointelligence/v1/video_intelligence.proto
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ message VideoContext {

// Config for TEXT_DETECTION.
TextDetectionConfig text_detection_config = 8;

// Config for OBJECT_TRACKING.
ObjectTrackingConfig object_tracking_config = 13;
}

// Config for LABEL_DETECTION.
Expand All @@ -126,6 +129,22 @@ message LabelDetectionConfig {
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
string model = 3;

// The confidence threshold we perform filtering on the labels from
// frame-level detection. If not set, it is set to 0.4 by default. The valid
// range for this threshold is [0.1, 0.9]. Any value set outside of this
// range will be clipped.
// Note: for best results please follow the default threshold. We will update
// the default threshold everytime when we release a new model.
float frame_confidence_threshold = 4;

// The confidence threshold we perform filtering on the labels from
// video-level and shot-level detections. If not set, it is set to 0.3 by
// default. The valid range for this threshold is [0.1, 0.9]. Any value set
// outside of this range will be clipped.
// Note: for best results please follow the default threshold. We will update
// the default threshold everytime when we release a new model.
float video_confidence_threshold = 5;
}

// Config for SHOT_CHANGE_DETECTION.
Expand Down Expand Up @@ -155,6 +174,14 @@ message FaceDetectionConfig {
bool include_bounding_boxes = 2;
}

// Config for OBJECT_TRACKING.
message ObjectTrackingConfig {
// Model to use for object tracking.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
string model = 1;
}

// Config for TEXT_DETECTION.
message TextDetectionConfig {
// Language hint can be specified if the language to be detected is known a
Expand All @@ -163,6 +190,11 @@ message TextDetectionConfig {
//
// Automatic language detection is performed if no hint is provided.
repeated string language_hints = 1;

// Model to use for text detection.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
string model = 2;
}

// Video segment.
Expand Down
Loading

0 comments on commit bac9326

Please sign in to comment.