1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090 |
- syntax = "proto3";
- package google.cloud.videointelligence.v1p3beta1;
- 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.V1P3Beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p3beta1;videointelligence";
- option java_multiple_files = true;
- option java_outer_classname = "VideoIntelligenceServiceProto";
- option java_package = "com.google.cloud.videointelligence.v1p3beta1";
- option php_namespace = "Google\\Cloud\\VideoIntelligence\\V1p3beta1";
- option ruby_package = "Google::Cloud::VideoIntelligence::V1p3beta1";
- 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: "/v1p3beta1/videos:annotate"
- body: "*"
- };
- option (google.api.method_signature) = "input_uri,features";
- option (google.longrunning.operation_info) = {
- response_type: "AnnotateVideoResponse"
- metadata_type: "AnnotateVideoProgress"
- };
- }
- }
- service StreamingVideoIntelligenceService {
- option (google.api.default_host) = "videointelligence.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform";
-
-
-
- rpc StreamingAnnotateVideo(stream StreamingAnnotateVideoRequest)
- returns (stream StreamingAnnotateVideoResponse) {}
- }
- // Video annotation request.
- message AnnotateVideoRequest {
- // Input video location. Currently, only
- // [Cloud Storage](https://cloud.google.com/storage/) URIs are
- // supported. URIs must be specified in the following format:
- // `gs://bucket-id/object-id` (other URI formats return
- // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
- // more information, see [Request
- // URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
- // multiple videos, a video URI may include wildcards in the `object-id`.
- // Supported wildcards: '*' to match 0 or more characters;
-
-
- 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;
-
- FaceDetectionConfig face_detection_config = 5;
-
- SpeechTranscriptionConfig speech_transcription_config = 6;
-
- TextDetectionConfig text_detection_config = 8;
-
- PersonDetectionConfig person_detection_config = 11;
-
- ObjectTrackingConfig object_tracking_config = 13;
- }
- 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;
- }
- message LabelDetectionConfig {
-
-
-
- LabelDetectionMode label_detection_mode = 1;
-
-
-
- bool stationary_camera = 2;
-
-
-
- string model = 3;
-
-
-
-
-
-
- float frame_confidence_threshold = 4;
-
-
-
-
-
-
- float video_confidence_threshold = 5;
- }
- enum StreamingFeature {
-
- STREAMING_FEATURE_UNSPECIFIED = 0;
-
- STREAMING_LABEL_DETECTION = 1;
-
- STREAMING_SHOT_CHANGE_DETECTION = 2;
-
- STREAMING_EXPLICIT_CONTENT_DETECTION = 3;
-
- STREAMING_OBJECT_TRACKING = 4;
-
- STREAMING_AUTOML_ACTION_RECOGNITION = 23;
-
- STREAMING_AUTOML_CLASSIFICATION = 21;
-
- STREAMING_AUTOML_OBJECT_TRACKING = 22;
- }
- enum Feature {
-
- FEATURE_UNSPECIFIED = 0;
-
- LABEL_DETECTION = 1;
-
- SHOT_CHANGE_DETECTION = 2;
-
- EXPLICIT_CONTENT_DETECTION = 3;
-
- FACE_DETECTION = 4;
-
- SPEECH_TRANSCRIPTION = 6;
-
- TEXT_DETECTION = 7;
-
- OBJECT_TRACKING = 9;
-
- LOGO_RECOGNITION = 12;
-
- CELEBRITY_RECOGNITION = 13;
-
- PERSON_DETECTION = 14;
- }
- message ShotChangeDetectionConfig {
-
-
-
- string model = 1;
- }
- message ObjectTrackingConfig {
-
-
-
- string model = 1;
- }
- message ExplicitContentDetectionConfig {
-
-
-
- string model = 1;
- }
- message FaceDetectionConfig {
-
-
-
- string model = 1;
-
- bool include_bounding_boxes = 2;
-
-
- bool include_attributes = 5;
- }
- message PersonDetectionConfig {
-
-
- bool include_bounding_boxes = 1;
-
-
- bool include_pose_landmarks = 2;
-
-
-
-
- bool include_attributes = 3;
- }
- message TextDetectionConfig {
-
-
-
-
-
- repeated string language_hints = 1;
-
-
-
- string model = 2;
- }
- 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 TimestampedObject {
-
- NormalizedBoundingBox normalized_bounding_box = 1;
-
-
- google.protobuf.Duration time_offset = 2;
-
- repeated DetectedAttribute attributes = 3
- [(google.api.field_behavior) = OPTIONAL];
-
- repeated DetectedLandmark landmarks = 4
- [(google.api.field_behavior) = OPTIONAL];
- }
- message Track {
-
- VideoSegment segment = 1;
-
- repeated TimestampedObject timestamped_objects = 2;
-
- repeated DetectedAttribute attributes = 3
- [(google.api.field_behavior) = OPTIONAL];
-
- float confidence = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message DetectedAttribute {
-
-
- string name = 1;
-
- float confidence = 2;
-
-
- string value = 3;
- }
- message Celebrity {
-
-
-
-
- string name = 1;
-
- string display_name = 2;
-
-
- string description = 3;
- }
- message CelebrityTrack {
-
- message RecognizedCelebrity {
-
- Celebrity celebrity = 1;
-
- float confidence = 2;
- }
-
- repeated RecognizedCelebrity celebrities = 1;
-
- Track face_track = 3;
- }
- message CelebrityRecognitionAnnotation {
-
-
- repeated CelebrityTrack celebrity_tracks = 1;
- }
- message DetectedLandmark {
-
- string name = 1;
-
-
- NormalizedVertex point = 2;
-
- float confidence = 3;
- }
- message FaceDetectionAnnotation {
-
- repeated Track tracks = 3;
-
- bytes thumbnail = 4;
- }
- message PersonDetectionAnnotation {
-
- repeated Track tracks = 1;
- }
- message VideoAnnotationResults {
-
-
- string input_uri = 1;
-
- VideoSegment segment = 10;
-
-
- repeated LabelAnnotation segment_label_annotations = 2;
-
-
-
-
-
-
- repeated LabelAnnotation segment_presence_label_annotations = 23;
-
-
- repeated LabelAnnotation shot_label_annotations = 3;
-
-
-
-
-
- repeated LabelAnnotation shot_presence_label_annotations = 24;
-
-
- repeated LabelAnnotation frame_label_annotations = 4;
-
- repeated FaceDetectionAnnotation face_detection_annotations = 13;
-
- repeated VideoSegment shot_annotations = 6;
-
- ExplicitContentAnnotation explicit_annotation = 7;
-
- repeated SpeechTranscription speech_transcriptions = 11;
-
-
-
- repeated TextAnnotation text_annotations = 12;
-
- repeated ObjectTrackingAnnotation object_annotations = 14;
-
- repeated LogoRecognitionAnnotation logo_recognition_annotations = 19;
-
- repeated PersonDetectionAnnotation person_detection_annotations = 20;
-
- CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21;
-
-
- 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;
-
-
- Feature feature = 5;
-
-
- VideoSegment segment = 6;
- }
- message AnnotateVideoProgress {
-
- repeated VideoAnnotationProgress annotation_progress = 1;
- }
- message SpeechTranscriptionConfig {
-
-
-
-
-
- string language_code = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- int32 max_alternatives = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- bool filter_profanity = 3 [(google.api.field_behavior) = OPTIONAL];
-
- repeated SpeechContext speech_contexts = 4
- [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- bool enable_automatic_punctuation = 5
- [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated int32 audio_tracks = 6 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
- bool enable_speaker_diarization = 7 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- int32 diarization_speaker_count = 8 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- bool enable_word_confidence = 9 [(google.api.field_behavior) = OPTIONAL];
- }
- message SpeechContext {
-
-
-
-
-
-
- repeated string phrases = 1 [(google.api.field_behavior) = OPTIONAL];
- }
- message SpeechTranscription {
-
-
-
-
- repeated SpeechRecognitionAlternative alternatives = 1;
-
-
-
- string language_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message SpeechRecognitionAlternative {
-
- string transcript = 1;
-
-
-
-
-
-
- float confidence = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- repeated WordInfo words = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message WordInfo {
-
-
-
-
- google.protobuf.Duration start_time = 1;
-
-
-
-
- google.protobuf.Duration end_time = 2;
-
- string word = 3;
-
-
-
-
-
-
- float confidence = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- int32 speaker_tag = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- 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;
- }
- message LogoRecognitionAnnotation {
-
-
- Entity entity = 1;
-
-
- repeated Track tracks = 2;
-
-
- repeated VideoSegment segments = 3;
- }
- message StreamingAnnotateVideoRequest {
-
-
- oneof streaming_request {
-
-
-
- StreamingVideoConfig video_config = 1;
-
-
-
-
-
-
-
- bytes input_content = 2;
- }
- }
- message StreamingVideoConfig {
-
- oneof streaming_config {
-
- StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
-
- StreamingLabelDetectionConfig label_detection_config = 3;
-
- StreamingExplicitContentDetectionConfig explicit_content_detection_config =
- 4;
-
- StreamingObjectTrackingConfig object_tracking_config = 5;
-
- StreamingAutomlActionRecognitionConfig automl_action_recognition_config =
- 23;
-
- StreamingAutomlClassificationConfig automl_classification_config = 21;
-
- StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22;
- }
-
- StreamingFeature feature = 1;
-
- StreamingStorageConfig storage_config = 30;
- }
- message StreamingAnnotateVideoResponse {
-
-
- google.rpc.Status error = 1;
-
- StreamingVideoAnnotationResults annotation_results = 2;
-
-
-
-
- string annotation_results_uri = 3;
- }
- message StreamingVideoAnnotationResults {
-
- repeated VideoSegment shot_annotations = 1;
-
- repeated LabelAnnotation label_annotations = 2;
-
- ExplicitContentAnnotation explicit_annotation = 3;
-
- repeated ObjectTrackingAnnotation object_annotations = 4;
- }
- message StreamingShotChangeDetectionConfig {}
- message StreamingLabelDetectionConfig {
-
-
-
- bool stationary_camera = 1;
- }
- message StreamingExplicitContentDetectionConfig {}
- message StreamingObjectTrackingConfig {}
- message StreamingAutomlActionRecognitionConfig {
-
-
- string model_name = 1;
- }
- message StreamingAutomlClassificationConfig {
-
-
-
- string model_name = 1;
- }
- message StreamingAutomlObjectTrackingConfig {
-
-
- string model_name = 1;
- }
- message StreamingStorageConfig {
-
- bool enable_storage_annotation_result = 1;
-
-
-
-
-
-
-
-
-
-
- string annotation_result_storage_directory = 3;
- }
|