Skip to content

Commit 83112bd

Browse files
authored
chore: increase timeouts for tracking objects samples (#531)
1 parent 156c071 commit 83112bd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

video/src/main/java/beta/video/TrackObjects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static VideoAnnotationResults trackObjectsGcs(String gcsUri) throws Excep
131131

132132
System.out.println("Waiting for operation to complete...");
133133
// The first result is retrieved because a single video was processed.
134-
AnnotateVideoResponse response = future.get(300, TimeUnit.SECONDS);
134+
AnnotateVideoResponse response = future.get(450, TimeUnit.SECONDS);
135135
VideoAnnotationResults results = response.getAnnotationResults(0);
136136

137137
// Get only the first annotation for demo purposes.

video/src/main/java/com/example/video/TrackObjects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static VideoAnnotationResults trackObjects(String filePath) throws Except
6262

6363
System.out.println("Waiting for operation to complete...");
6464
// The first result is retrieved because a single video was processed.
65-
AnnotateVideoResponse response = future.get(300, TimeUnit.SECONDS);
65+
AnnotateVideoResponse response = future.get(450, TimeUnit.SECONDS);
6666
VideoAnnotationResults results = response.getAnnotationResults(0);
6767

6868
// Get only the first annotation for demo purposes.

video/src/main/java/video/TrackObjects.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static VideoAnnotationResults trackObjects(String filePath) throws Except
6363

6464
System.out.println("Waiting for operation to complete...");
6565
// The first result is retrieved because a single video was processed.
66-
AnnotateVideoResponse response = future.get(300, TimeUnit.SECONDS);
66+
AnnotateVideoResponse response = future.get(450, TimeUnit.SECONDS);
6767
VideoAnnotationResults results = response.getAnnotationResults(0);
6868

6969
// Get only the first annotation for demo purposes.
@@ -131,7 +131,7 @@ public static VideoAnnotationResults trackObjectsGcs(String gcsUri) throws Excep
131131

132132
System.out.println("Waiting for operation to complete...");
133133
// The first result is retrieved because a single video was processed.
134-
AnnotateVideoResponse response = future.get(300, TimeUnit.SECONDS);
134+
AnnotateVideoResponse response = future.get(450, TimeUnit.SECONDS);
135135
VideoAnnotationResults results = response.getAnnotationResults(0);
136136

137137
// Get only the first annotation for demo purposes.

0 commit comments

Comments
 (0)