@Generated("by gapic-generator-java")
Package com.google.cloud.videointelligence.v1p3beta1
A client to Cloud Video Intelligence API
The interfaces provided are listed below, along with usage samples.
======================= VideoIntelligenceServiceClient =======================
Service Description: Service that implements the Video Intelligence API.
Sample for VideoIntelligenceServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
VideoIntelligenceServiceClient.create()) {
String inputUri = "inputUri470706498";
List<Feature> features = new ArrayList<>();
AnnotateVideoResponse response =
videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
}
======================= StreamingVideoIntelligenceServiceClient =======================
Service Description: Service that implements streaming Video Intelligence API.
Sample for StreamingVideoIntelligenceServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (StreamingVideoIntelligenceServiceClient streamingVideoIntelligenceServiceClient =
StreamingVideoIntelligenceServiceClient.create()) {
BidiStream<StreamingAnnotateVideoRequest, StreamingAnnotateVideoResponse> bidiStream =
streamingVideoIntelligenceServiceClient.streamingAnnotateVideoCallable().call();
StreamingAnnotateVideoRequest request = StreamingAnnotateVideoRequest.newBuilder().build();
bidiStream.send(request);
for (StreamingAnnotateVideoResponse response : bidiStream) {
// Do something when a response is received.
}
}
-
Class Summary Class Description AnnotateVideoProgress Video annotation progress.AnnotateVideoProgress.Builder Video annotation progress.AnnotateVideoRequest Video annotation request.AnnotateVideoRequest.Builder Video annotation request.AnnotateVideoResponse Video annotation response.AnnotateVideoResponse.Builder Video annotation response.Celebrity Celebrity definition.Celebrity.Builder Celebrity definition.CelebrityRecognitionAnnotation Celebrity recognition annotation per video.CelebrityRecognitionAnnotation.Builder Celebrity recognition annotation per video.CelebrityTrack The annotation result of a celebrity face track.CelebrityTrack.Builder The annotation result of a celebrity face track.CelebrityTrack.RecognizedCelebrity The recognized celebrity with confidence score.CelebrityTrack.RecognizedCelebrity.Builder The recognized celebrity with confidence score.DetectedAttribute A generic detected attribute represented by name in string format.DetectedAttribute.Builder A generic detected attribute represented by name in string format.DetectedLandmark A generic detected landmark represented by name in string format and a 2D location.DetectedLandmark.Builder A generic detected landmark represented by name in string format and a 2D location.Entity Detected entity from video analysis.Entity.Builder Detected entity from video analysis.ExplicitContentAnnotation Explicit content annotation (based on per-frame visual signals only).ExplicitContentAnnotation.Builder Explicit content annotation (based on per-frame visual signals only).ExplicitContentDetectionConfig Config for EXPLICIT_CONTENT_DETECTION.ExplicitContentDetectionConfig.Builder Config for EXPLICIT_CONTENT_DETECTION.ExplicitContentFrame Video frame level annotation results for explicit content.ExplicitContentFrame.Builder Video frame level annotation results for explicit content.FaceDetectionAnnotation Face detection annotation.FaceDetectionAnnotation.Builder Face detection annotation.FaceDetectionConfig Config for FACE_DETECTION.FaceDetectionConfig.Builder Config for FACE_DETECTION.LabelAnnotation Label annotation.LabelAnnotation.Builder Label annotation.LabelDetectionConfig Config for LABEL_DETECTION.LabelDetectionConfig.Builder Config for LABEL_DETECTION.LabelFrame Video frame level annotation results for label detection.LabelFrame.Builder Video frame level annotation results for label detection.LabelSegment Video segment level annotation results for label detection.LabelSegment.Builder Video segment level annotation results for label detection.LogoRecognitionAnnotation Annotation corresponding to one detected, tracked and recognized logo class.LogoRecognitionAnnotation.Builder Annotation corresponding to one detected, tracked and recognized logo class.NormalizedBoundingBox Normalized bounding box.NormalizedBoundingBox.Builder Normalized bounding box.NormalizedBoundingPoly Normalized bounding polygon for text (that might not be aligned with axis).NormalizedBoundingPoly.Builder Normalized bounding polygon for text (that might not be aligned with axis).NormalizedVertex A vertex represents a 2D point in the image.NormalizedVertex.Builder A vertex represents a 2D point in the image.ObjectTrackingAnnotation Annotations corresponding to one tracked object.ObjectTrackingAnnotation.Builder Annotations corresponding to one tracked object.ObjectTrackingConfig Config for OBJECT_TRACKING.ObjectTrackingConfig.Builder Config for OBJECT_TRACKING.ObjectTrackingFrame Video frame level annotations for object detection and tracking.ObjectTrackingFrame.Builder Video frame level annotations for object detection and tracking.PersonDetectionAnnotation Person detection annotation per video.PersonDetectionAnnotation.Builder Person detection annotation per video.PersonDetectionConfig Config for PERSON_DETECTION.PersonDetectionConfig.Builder Config for PERSON_DETECTION.ShotChangeDetectionConfig Config for SHOT_CHANGE_DETECTION.ShotChangeDetectionConfig.Builder Config for SHOT_CHANGE_DETECTION.SpeechContext Provides "hints" to the speech recognizer to favor specific words and phrases in the results.SpeechContext.Builder Provides "hints" to the speech recognizer to favor specific words and phrases in the results.SpeechRecognitionAlternative Alternative hypotheses (a.k.a.SpeechRecognitionAlternative.Builder Alternative hypotheses (a.k.a.SpeechTranscription A speech recognition result corresponding to a portion of the audio.SpeechTranscription.Builder A speech recognition result corresponding to a portion of the audio.SpeechTranscriptionConfig Config for SPEECH_TRANSCRIPTION.SpeechTranscriptionConfig.Builder Config for SPEECH_TRANSCRIPTION.StreamingAnnotateVideoRequest The top-level message sent by the client for the `StreamingAnnotateVideo` method.StreamingAnnotateVideoRequest.Builder The top-level message sent by the client for the `StreamingAnnotateVideo` method.StreamingAnnotateVideoResponse `StreamingAnnotateVideoResponse` is the only message returned to the client by `StreamingAnnotateVideo`.StreamingAnnotateVideoResponse.Builder `StreamingAnnotateVideoResponse` is the only message returned to the client by `StreamingAnnotateVideo`.StreamingAutomlActionRecognitionConfig Config for STREAMING_AUTOML_ACTION_RECOGNITION.StreamingAutomlActionRecognitionConfig.Builder Config for STREAMING_AUTOML_ACTION_RECOGNITION.StreamingAutomlClassificationConfig Config for STREAMING_AUTOML_CLASSIFICATION.StreamingAutomlClassificationConfig.Builder Config for STREAMING_AUTOML_CLASSIFICATION.StreamingAutomlObjectTrackingConfig Config for STREAMING_AUTOML_OBJECT_TRACKING.StreamingAutomlObjectTrackingConfig.Builder Config for STREAMING_AUTOML_OBJECT_TRACKING.StreamingExplicitContentDetectionConfig Config for STREAMING_EXPLICIT_CONTENT_DETECTION.StreamingExplicitContentDetectionConfig.Builder Config for STREAMING_EXPLICIT_CONTENT_DETECTION.StreamingLabelDetectionConfig Config for STREAMING_LABEL_DETECTION.StreamingLabelDetectionConfig.Builder Config for STREAMING_LABEL_DETECTION.StreamingObjectTrackingConfig Config for STREAMING_OBJECT_TRACKING.StreamingObjectTrackingConfig.Builder Config for STREAMING_OBJECT_TRACKING.StreamingShotChangeDetectionConfig Config for STREAMING_SHOT_CHANGE_DETECTION.StreamingShotChangeDetectionConfig.Builder Config for STREAMING_SHOT_CHANGE_DETECTION.StreamingStorageConfig Config for streaming storage option.StreamingStorageConfig.Builder Config for streaming storage option.StreamingVideoAnnotationResults Streaming annotation results corresponding to a portion of the video that is currently being processed.StreamingVideoAnnotationResults.Builder Streaming annotation results corresponding to a portion of the video that is currently being processed.StreamingVideoConfig Provides information to the annotator that specifies how to process the request.StreamingVideoConfig.Builder Provides information to the annotator that specifies how to process the request.StreamingVideoIntelligenceServiceClient Service Description: Service that implements streaming Video Intelligence API.StreamingVideoIntelligenceServiceGrpc Service that implements streaming Video Intelligence API.StreamingVideoIntelligenceServiceGrpc.StreamingVideoIntelligenceServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service StreamingVideoIntelligenceService.StreamingVideoIntelligenceServiceGrpc.StreamingVideoIntelligenceServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service StreamingVideoIntelligenceService.StreamingVideoIntelligenceServiceGrpc.StreamingVideoIntelligenceServiceImplBase Base class for the server implementation of the service StreamingVideoIntelligenceService.StreamingVideoIntelligenceServiceGrpc.StreamingVideoIntelligenceServiceStub A stub to allow clients to do asynchronous rpc calls to service StreamingVideoIntelligenceService.StreamingVideoIntelligenceServiceSettings Settings class to configure an instance ofStreamingVideoIntelligenceServiceClient
.StreamingVideoIntelligenceServiceSettings.Builder Builder for StreamingVideoIntelligenceServiceSettings.TextAnnotation Annotations related to one detected OCR text snippet.TextAnnotation.Builder Annotations related to one detected OCR text snippet.TextDetectionConfig Config for TEXT_DETECTION.TextDetectionConfig.Builder Config for TEXT_DETECTION.TextFrame Video frame level annotation results for text annotation (OCR).TextFrame.Builder Video frame level annotation results for text annotation (OCR).TextSegment Video segment level annotation results for text detection.TextSegment.Builder Video segment level annotation results for text detection.TimestampedObject For tracking related features.TimestampedObject.Builder For tracking related features.Track A track of an object instance.Track.Builder A track of an object instance.VideoAnnotationProgress Annotation progress for a single video.VideoAnnotationProgress.Builder Annotation progress for a single video.VideoAnnotationResults Annotation results for a single video.VideoAnnotationResults.Builder Annotation results for a single video.VideoContext Video context and/or feature-specific parameters.VideoContext.Builder Video context and/or feature-specific parameters.VideoIntelligenceServiceClient Service Description: Service that implements the Video Intelligence API.VideoIntelligenceServiceGrpc Service that implements the Video Intelligence API.VideoIntelligenceServiceGrpc.VideoIntelligenceServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service VideoIntelligenceService.VideoIntelligenceServiceGrpc.VideoIntelligenceServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service VideoIntelligenceService.VideoIntelligenceServiceGrpc.VideoIntelligenceServiceImplBase Base class for the server implementation of the service VideoIntelligenceService.VideoIntelligenceServiceGrpc.VideoIntelligenceServiceStub A stub to allow clients to do asynchronous rpc calls to service VideoIntelligenceService.VideoIntelligenceServiceProto VideoIntelligenceServiceSettings Settings class to configure an instance ofVideoIntelligenceServiceClient
.VideoIntelligenceServiceSettings.Builder Builder for VideoIntelligenceServiceSettings.VideoSegment Video segment.VideoSegment.Builder Video segment.WordInfo Word-specific information for recognized words.WordInfo.Builder Word-specific information for recognized words. -
Enum Summary Enum Description Feature Video annotation feature.LabelDetectionMode Label detection mode.Likelihood Bucketized representation of likelihood.ObjectTrackingAnnotation.TrackInfoCase StreamingAnnotateVideoRequest.StreamingRequestCase StreamingFeature Streaming video annotation feature.StreamingVideoConfig.StreamingConfigCase