use of com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults in project java-video-intelligence by googleapis.
the class ITSystemTest method annotateVideoTest.
@Test
public void annotateVideoTest() throws ExecutionException, InterruptedException {
AnnotateVideoResponse response = client.annotateVideoAsync(BUCKET_URI, FEATURE_LIST).get();
List<VideoAnnotationResults> videoAnnotationResults = response.getAnnotationResultsList();
for (VideoAnnotationResults result : videoAnnotationResults) {
assertEquals(BUCKET_URI.substring(4), result.getInputUri());
assertTrue(result.getSegmentLabelAnnotationsList().size() > 0);
}
}
Aggregations