Index
VideoIntelligenceService
(interface)AnnotateVideoProgress
(message)AnnotateVideoRequest
(message)AnnotateVideoResponse
(message)Feature
(enum)LabelAnnotation
(message)LabelDetectionMode
(enum)LabelLevel
(enum)LabelLocation
(message)Likelihood
(enum)SafeSearchAnnotation
(message)VideoAnnotationProgress
(message)VideoAnnotationResults
(message)VideoContext
(message)VideoSegment
(message)
VideoIntelligenceService
Service that implements Google Cloud Video Intelligence API.
AnnotateVideo | |
---|---|
Performs asynchronous video annotation. Progress and results can be retrieved through the
|
AnnotateVideoProgress
Video annotation progress. Included in the metadata
field of the Operation
returned by the GetOperation
call of the google::longrunning::Operations
service.
Fields | |
---|---|
annotation_progress[] |
Progress metadata for all videos specified in |
AnnotateVideoRequest
Video annotation request.
Fields | |
---|---|
input_uri |
Input video location. Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format: |
input_content |
The video data bytes. Encoding: base64. If unset, the input video(s) should be specified via |
features[] |
Requested video annotation features. |
video_context |
Additional video context and/or feature-specific parameters. |
output_uri |
Optional location where the output (in JSON format) should be stored. Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format: |
location_id |
Optional cloud region where annotation should take place. Supported cloud regions: |
AnnotateVideoResponse
Video annotation response. Included in the response
field of the Operation
returned by the GetOperation
call of the google::longrunning::Operations
service.
Fields | |
---|---|
annotation_results[] |
Annotation results for all videos specified in |
Feature
Video annotation feature.
Enums | |
---|---|
FEATURE_UNSPECIFIED |
Unspecified. |
LABEL_DETECTION |
Label detection. Detect objects, such as dog or flower. |
SHOT_CHANGE_DETECTION |
Shot change detection. |
SAFE_SEARCH_DETECTION |
Safe search detection. |
LabelAnnotation
Label annotation.
Fields | |
---|---|
description |
Textual description, e.g. |
language_code |
Language code for |
locations[] |
Where the label was detected and with what confidence. |
LabelDetectionMode
Label detection mode.
Enums | |
---|---|
LABEL_DETECTION_MODE_UNSPECIFIED |
Unspecified. |
SHOT_MODE |
Detect shot-level labels. |
FRAME_MODE |
Detect frame-level labels. |
SHOT_AND_FRAME_MODE |
Detect both shot-level and frame-level labels. |
LabelLevel
Label level (scope).
Enums | |
---|---|
LABEL_LEVEL_UNSPECIFIED |
Unspecified. |
VIDEO_LEVEL |
Video-level. Corresponds to the whole video. |
SEGMENT_LEVEL |
Segment-level. Corresponds to one of AnnotateSpec.segments . |
SHOT_LEVEL |
Shot-level. Corresponds to a single shot (i.e. a series of frames without a major camera position or background change). |
FRAME_LEVEL |
Frame-level. Corresponds to a single video frame. |
LabelLocation
Label location.
Fields | |
---|---|
segment |
Video segment. Set to [-1, -1] for video-level labels. Set to [timestamp, timestamp] for frame-level labels. Otherwise, corresponds to one of |
confidence |
Confidence that the label is accurate. Range: [0, 1]. |
level |
Label level. |
Likelihood
Bucketized representation of likelihood.
Enums | |
---|---|
UNKNOWN |
Unknown likelihood. |
VERY_UNLIKELY |
Very unlikely. |
UNLIKELY |
Unlikely. |
POSSIBLE |
Possible. |
LIKELY |
Likely. |
VERY_LIKELY |
Very likely. |
SafeSearchAnnotation
Safe search annotation (based on per-frame visual signals only). If no unsafe content has been detected in a frame, no annotations are present for that frame. If only some types of unsafe content have been detected in a frame, the likelihood is set to UNKNOWN
for all other types of unsafe content.
Fields | |
---|---|
adult |
Likelihood of adult content. |
spoof |
Likelihood that an obvious modification was made to the original version to make it appear funny or offensive. |
medical |
Likelihood of medical content. |
violent |
Likelihood of violent content. |
racy |
Likelihood of racy content. |
time_offset |
Video time offset in microseconds. |
VideoAnnotationProgress
Annotation progress for a single video.
Fields | |
---|---|
input_uri |
Video file location in Google Cloud Storage. |
progress_percent |
Approximate percentage processed thus far. Guaranteed to be 100 when fully processed. |
start_time |
Time when the request was received. |
update_time |
Time of the most recent update. |
VideoAnnotationResults
Annotation results for a single video.
Fields | |
---|---|
input_uri |
Video file location in Google Cloud Storage. |
label_annotations[] |
Label annotations. There is exactly one element for each unique label. |
shot_annotations[] |
Shot annotations. Each shot is represented as a video segment. |
safe_search_annotations[] |
Safe search annotations. |
error |
If set, indicates an error. Note that for a single |
VideoContext
Video context and/or feature-specific parameters.
Fields | |
---|---|
segments[] |
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment. |
label_detection_mode |
If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to |
stationary_camera |
Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects. |
label_detection_model |
Model to use for label detection. Supported values: "latest" and "stable" (the default). |
shot_change_detection_model |
Model to use for shot change detection. Supported values: "latest" and "stable" (the default). |
safe_search_detection_model |
Model to use for safe search detection. Supported values: "latest" and "stable" (the default). |
VideoSegment
Video segment.
Fields | |
---|---|
start_time_offset |
Start offset in microseconds (inclusive). Unset means 0. |
end_time_offset |
End offset in microseconds (inclusive). Unset means 0. |