@Experimental public class VideoIntelligence extends java.lang.Object
Adding a side input of Maps of elements to VideoContext objects is allowed, so is using KVs of element and VideoContext as input.
Service account with proper permissions is required to use these transforms.
Modifier and Type | Class and Description |
---|---|
static class |
VideoIntelligence.AnnotateVideoFromBytes
A PTransform taking a PCollection of
ByteString and an optional side input with a
context map and emitting lists of VideoAnnotationResults for each element. |
static class |
VideoIntelligence.AnnotateVideoFromBytesWithContext
A PTransform taking a PCollection of
KV of ByteString and VideoContext
and emitting lists of VideoAnnotationResults for each element. |
static class |
VideoIntelligence.AnnotateVideoFromUri
A PTransform taking a PCollection of
String and an optional side input with a context
map and emitting lists of VideoAnnotationResults for each element. |
static class |
VideoIntelligence.AnnotateVideoFromURIWithContext
A PTransform taking a PCollection of
KV of String and VideoContext and
emitting lists of VideoAnnotationResults for each element. |
Constructor and Description |
---|
VideoIntelligence() |
Modifier and Type | Method and Description |
---|---|
static VideoIntelligence.AnnotateVideoFromBytes |
annotateFromBytes(PCollectionView<java.util.Map<ByteString,com.google.cloud.videointelligence.v1.VideoContext>> contextSideInput,
java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
Annotates videos from ByteStrings of their contents.
|
static VideoIntelligence.AnnotateVideoFromBytesWithContext |
annotateFromBytesWithContext(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
Annotates videos from key-value pairs of ByteStrings and VideoContext.
|
static VideoIntelligence.AnnotateVideoFromUri |
annotateFromURI(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList,
PCollectionView<java.util.Map<java.lang.String,com.google.cloud.videointelligence.v1.VideoContext>> contextSideInput)
Annotates videos from GCS URIs.
|
static VideoIntelligence.AnnotateVideoFromURIWithContext |
annotateFromUriWithContext(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
Annotates videos from key-value pairs of GCS URI and VideoContext.
|
public static VideoIntelligence.AnnotateVideoFromUri annotateFromURI(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList, PCollectionView<java.util.Map<java.lang.String,com.google.cloud.videointelligence.v1.VideoContext>> contextSideInput)
featureList
- List of features to be annotatedcontextSideInput
- Optional side input with map of contexts to URIspublic static VideoIntelligence.AnnotateVideoFromBytes annotateFromBytes(PCollectionView<java.util.Map<ByteString,com.google.cloud.videointelligence.v1.VideoContext>> contextSideInput, java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
featureList
- List of features to be annotatedcontextSideInput
- Optional side input with map of contexts to ByteStringspublic static VideoIntelligence.AnnotateVideoFromURIWithContext annotateFromUriWithContext(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
featureList
- List of features to be annotatedpublic static VideoIntelligence.AnnotateVideoFromBytesWithContext annotateFromBytesWithContext(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
featureList
- List of features to be annotated