Skip to content

Commit

Permalink
samples: Vision speech upgrade (#641)
Browse files Browse the repository at this point in the history
* Fixes dependencies and class package changes.

* Guava exclusions so Truth doesn't conflict with Cloud Client

* Upgrades vision to 0.17.1
  • Loading branch information
gguuss authored and chingor13 committed Aug 13, 2020
1 parent e898767 commit ed5aac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision/snippets/src/main/java/com/example/vision/Detect.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import com.google.cloud.vision.v1.WebDetection.WebPage;
import com.google.cloud.vision.v1.Word;
import com.google.protobuf.ByteString;
import org.joda.time.Duration;
import org.threeten.bp.Duration;

import java.io.FileInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -210,7 +210,7 @@ public static void detectFacesGcs(String gcsPath, PrintStream out) throws IOExce
imageAnnotatorSettingsBuilder
.batchAnnotateImagesSettings()
.getRetrySettingsBuilder()
.setTotalTimeout(Duration.standardSeconds(30));
.setTotalTimeout(Duration.ofSeconds(30));
ImageAnnotatorSettings settings = imageAnnotatorSettingsBuilder.build();

ImageSource imgSource = ImageSource.newBuilder().setGcsImageUri(gcsPath).build();
Expand Down

0 comments on commit ed5aac3

Please sign in to comment.