Search in sources :

Example 61 with VideoAnnotationResults

use of com.google.cloud.videointelligence.v1p3beta1.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);
    }
}
Also used : VideoAnnotationResults(com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults) AnnotateVideoResponse(com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse) Test(org.junit.Test)

Aggregations

VideoAnnotationResults (com.google.cloud.videointelligence.v1.VideoAnnotationResults)44 AnnotateVideoResponse (com.google.cloud.videointelligence.v1.AnnotateVideoResponse)34 AnnotateVideoProgress (com.google.cloud.videointelligence.v1.AnnotateVideoProgress)33 AnnotateVideoRequest (com.google.cloud.videointelligence.v1.AnnotateVideoRequest)33 VideoIntelligenceServiceClient (com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient)33 VideoSegment (com.google.cloud.videointelligence.v1.VideoSegment)19 Duration (com.google.protobuf.Duration)18 Entity (com.google.cloud.videointelligence.v1.Entity)17 Path (java.nio.file.Path)14 Test (org.junit.Test)14 VideoContext (com.google.cloud.videointelligence.v1.VideoContext)10 LabelAnnotation (com.google.cloud.videointelligence.v1.LabelAnnotation)9 LabelSegment (com.google.cloud.videointelligence.v1.LabelSegment)9 DetectedAttribute (com.google.cloud.videointelligence.v1.DetectedAttribute)8 NormalizedBoundingBox (com.google.cloud.videointelligence.v1.NormalizedBoundingBox)8 TextAnnotation (com.google.cloud.videointelligence.v1.TextAnnotation)8 TimestampedObject (com.google.cloud.videointelligence.v1.TimestampedObject)8 Track (com.google.cloud.videointelligence.v1.Track)8 VideoAnnotationResults (com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults)8 AnnotateVideoResponse (com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse)5