use of com.google.cloud.videointelligence.v1.VideoContext in project beam by apache.
the class AnnotateVideoFromURIFn method processElement.
/**
* ProcessElement implementation.
*/
@Override
public void processElement(ProcessContext context) throws ExecutionException, InterruptedException {
String elementURI = context.element();
VideoContext videoContext = null;
if (contextSideInput != null) {
videoContext = context.sideInput(contextSideInput).get(elementURI);
}
List<VideoAnnotationResults> annotationResultsList = getVideoAnnotationResults(elementURI, null, videoContext);
context.output(annotationResultsList);
}
Aggregations