Skip to content

Commit

Permalink
chore: increase timeouts for tracking objects samples (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhuushmgl committed May 20, 2021
1 parent 156c071 commit 83112bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion video/src/main/java/beta/video/TrackObjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static VideoAnnotationResults trackObjectsGcs(String gcsUri) throws Excep

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

// Get only the first annotation for demo purposes.
Expand Down
2 changes: 1 addition & 1 deletion video/src/main/java/com/example/video/TrackObjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static VideoAnnotationResults trackObjects(String filePath) throws Except

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

// Get only the first annotation for demo purposes.
Expand Down
4 changes: 2 additions & 2 deletions video/src/main/java/video/TrackObjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static VideoAnnotationResults trackObjects(String filePath) throws Except

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

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

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

// Get only the first annotation for demo purposes.
Expand Down

0 comments on commit 83112bd

Please sign in to comment.