@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.AnnotateVideoBytesWithContext
Implementation of AnnotateVideo accepting KVs as contents of input PCollection.
|
static class |
VideoIntelligence.AnnotateVideoFromBytes
Implementation of AnnotateVideo accepting ByteStrings as contents of input PCollection.
|
static class |
VideoIntelligence.AnnotateVideoFromURI
Implementation of AnnotateVideo accepting Strings as contents of input PCollection.
|
static class |
VideoIntelligence.AnnotateVideoURIWithContext
Implementation of AnnotateVideo accepting KVs as contents of input PCollection.
|
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.AnnotateVideoBytesWithContext |
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.AnnotateVideoURIWithContext |
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.AnnotateVideoURIWithContext annotateFromUriWithContext(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
featureList
- List of features to be annotatedpublic static VideoIntelligence.AnnotateVideoBytesWithContext annotateFromBytesWithContext(java.util.List<com.google.cloud.videointelligence.v1.Feature> featureList)
featureList
- List of features to be annotated