123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489 |
- syntax = "proto3";
- package google.cloud.videointelligence.v1p2beta1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- import "google/rpc/status.proto";
- option csharp_namespace = "Google.Cloud.VideoIntelligence.V1P2Beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence";
- option java_multiple_files = true;
- option java_outer_classname = "VideoIntelligenceServiceProto";
- option java_package = "com.google.cloud.videointelligence.v1p2beta1";
- option php_namespace = "Google\\Cloud\\VideoIntelligence\\V1p2beta1";
- option ruby_package = "Google::Cloud::VideoIntelligence::V1p2beta1";
- service VideoIntelligenceService {
- option (google.api.default_host) = "videointelligence.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
-
-
-
- rpc AnnotateVideo(AnnotateVideoRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1p2beta1/videos:annotate"
- body: "*"
- };
- option (google.api.method_signature) = "input_uri,features";
- option (google.longrunning.operation_info) = {
- response_type: "AnnotateVideoResponse"
- metadata_type: "AnnotateVideoProgress"
- };
- }
- }
- message AnnotateVideoRequest {
-
-
-
-
-
-
-
-
-
-
- string input_uri = 1;
-
-
-
- bytes input_content = 6;
-
- repeated Feature features = 2 [(google.api.field_behavior) = REQUIRED];
-
- VideoContext video_context = 3;
-
-
-
-
-
-
- string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string location_id = 5 [(google.api.field_behavior) = OPTIONAL];
- }
- message VideoContext {
-
-
-
- repeated VideoSegment segments = 1;
-
- LabelDetectionConfig label_detection_config = 2;
-
- ShotChangeDetectionConfig shot_change_detection_config = 3;
-
- ExplicitContentDetectionConfig explicit_content_detection_config = 4;
-
- TextDetectionConfig text_detection_config = 8;
- }
- message LabelDetectionConfig {
-
-
-
- LabelDetectionMode label_detection_mode = 1;
-
-
-
- bool stationary_camera = 2;
-
-
-
- string model = 3;
- }
- message ShotChangeDetectionConfig {
-
-
-
- string model = 1;
- }
- message ExplicitContentDetectionConfig {
-
-
-
- string model = 1;
- }
- message TextDetectionConfig {
-
-
-
-
-
- repeated string language_hints = 1;
- }
- message VideoSegment {
-
-
- google.protobuf.Duration start_time_offset = 1;
-
-
- google.protobuf.Duration end_time_offset = 2;
- }
- message LabelSegment {
-
- VideoSegment segment = 1;
-
- float confidence = 2;
- }
- message LabelFrame {
-
-
- google.protobuf.Duration time_offset = 1;
-
- float confidence = 2;
- }
- message Entity {
-
-
-
- string entity_id = 1;
-
- string description = 2;
-
- string language_code = 3;
- }
- message LabelAnnotation {
-
- Entity entity = 1;
-
-
-
-
- repeated Entity category_entities = 2;
-
- repeated LabelSegment segments = 3;
-
- repeated LabelFrame frames = 4;
- }
- message ExplicitContentFrame {
-
-
- google.protobuf.Duration time_offset = 1;
-
- Likelihood pornography_likelihood = 2;
- }
- message ExplicitContentAnnotation {
-
- repeated ExplicitContentFrame frames = 1;
- }
- message NormalizedBoundingBox {
-
- float left = 1;
-
- float top = 2;
-
- float right = 3;
-
- float bottom = 4;
- }
- message VideoAnnotationResults {
-
-
- string input_uri = 1;
-
-
- repeated LabelAnnotation segment_label_annotations = 2;
-
-
- repeated LabelAnnotation shot_label_annotations = 3;
-
-
- repeated LabelAnnotation frame_label_annotations = 4;
-
- repeated VideoSegment shot_annotations = 6;
-
- ExplicitContentAnnotation explicit_annotation = 7;
-
-
-
- repeated TextAnnotation text_annotations = 12;
-
- repeated ObjectTrackingAnnotation object_annotations = 14;
-
-
- google.rpc.Status error = 9;
- }
- message AnnotateVideoResponse {
-
- repeated VideoAnnotationResults annotation_results = 1;
- }
- message VideoAnnotationProgress {
-
-
- string input_uri = 1;
-
-
- int32 progress_percent = 2;
-
- google.protobuf.Timestamp start_time = 3;
-
- google.protobuf.Timestamp update_time = 4;
- }
- message AnnotateVideoProgress {
-
- repeated VideoAnnotationProgress annotation_progress = 1;
- }
- message NormalizedVertex {
-
- float x = 1;
-
- float y = 2;
- }
- message NormalizedBoundingPoly {
-
- repeated NormalizedVertex vertices = 1;
- }
- message TextSegment {
-
- VideoSegment segment = 1;
-
-
- float confidence = 2;
-
- repeated TextFrame frames = 3;
- }
- message TextFrame {
-
- NormalizedBoundingPoly rotated_bounding_box = 1;
-
- google.protobuf.Duration time_offset = 2;
- }
- message TextAnnotation {
-
- string text = 1;
-
- repeated TextSegment segments = 2;
- }
- message ObjectTrackingFrame {
-
- NormalizedBoundingBox normalized_bounding_box = 1;
-
- google.protobuf.Duration time_offset = 2;
- }
- message ObjectTrackingAnnotation {
-
-
- oneof track_info {
-
-
- VideoSegment segment = 3;
-
-
-
-
-
-
- int64 track_id = 5;
- }
-
- Entity entity = 1;
-
- float confidence = 4;
-
- repeated ObjectTrackingFrame frames = 2;
- }
- enum Feature {
-
- FEATURE_UNSPECIFIED = 0;
-
- LABEL_DETECTION = 1;
-
- SHOT_CHANGE_DETECTION = 2;
-
- EXPLICIT_CONTENT_DETECTION = 3;
-
- TEXT_DETECTION = 7;
-
- OBJECT_TRACKING = 9;
- }
- enum LabelDetectionMode {
-
- LABEL_DETECTION_MODE_UNSPECIFIED = 0;
-
- SHOT_MODE = 1;
-
- FRAME_MODE = 2;
-
- SHOT_AND_FRAME_MODE = 3;
- }
- enum Likelihood {
-
- LIKELIHOOD_UNSPECIFIED = 0;
-
- VERY_UNLIKELY = 1;
-
- UNLIKELY = 2;
-
- POSSIBLE = 3;
-
- LIKELY = 4;
-
- VERY_LIKELY = 5;
- }
|