|
17 | 17 | package com.example.video;
|
18 | 18 |
|
19 | 19 | import com.google.api.gax.grpc.OperationFuture;
|
| 20 | +import com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress; |
20 | 21 | import com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest;
|
21 | 22 | import com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse;
|
22 | 23 | import com.google.cloud.videointelligence.v1beta1.FaceAnnotation;
|
@@ -111,7 +112,7 @@ public static void analyzeFaces(String gcsUri) throws ExecutionException,
|
111 | 112 | .addFeatures(Feature.FACE_DETECTION)
|
112 | 113 | .build();
|
113 | 114 |
|
114 |
| - OperationFuture<AnnotateVideoResponse> operation = |
| 115 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
115 | 116 | client.annotateVideoAsync(request);
|
116 | 117 |
|
117 | 118 | System.out.println("Waiting for operation to complete...");
|
@@ -151,7 +152,7 @@ public static void analyzeLabels(String gcsUri) throws
|
151 | 152 | .addFeatures(Feature.LABEL_DETECTION)
|
152 | 153 | .build();
|
153 | 154 |
|
154 |
| - OperationFuture<AnnotateVideoResponse> operation = |
| 155 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
155 | 156 | client.annotateVideoAsync(request);
|
156 | 157 |
|
157 | 158 | System.out.println("Waiting for operation to complete...");
|
@@ -199,7 +200,7 @@ public static void analyzeLabelsFile(String filePath) throws
|
199 | 200 | .addFeatures(Feature.LABEL_DETECTION)
|
200 | 201 | .build();
|
201 | 202 |
|
202 |
| - OperationFuture<AnnotateVideoResponse> operation = |
| 203 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
203 | 204 | client.annotateVideoAsync(request);
|
204 | 205 |
|
205 | 206 | System.out.println("Waiting for operation to complete...");
|
@@ -244,7 +245,7 @@ public static void analyzeShots(String gcsUri)
|
244 | 245 | .addFeatures(Feature.SHOT_CHANGE_DETECTION)
|
245 | 246 | .build();
|
246 | 247 |
|
247 |
| - OperationFuture<AnnotateVideoResponse> operation = |
| 248 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
248 | 249 | client.annotateVideoAsync(request);
|
249 | 250 |
|
250 | 251 | System.out.println("Waiting for operation to complete...");
|
@@ -284,7 +285,7 @@ public static void analyzeSafeSearch(String gcsUri)
|
284 | 285 | .addFeatures(Feature.SAFE_SEARCH_DETECTION)
|
285 | 286 | .build();
|
286 | 287 |
|
287 |
| - OperationFuture<AnnotateVideoResponse> operation = |
| 288 | + OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> operation = |
288 | 289 | client.annotateVideoAsync(request);
|
289 | 290 |
|
290 | 291 | System.out.println("Waiting for operation to complete...");
|
|
0 commit comments