Skip to content

Commit

Permalink
Fixed issue with certain operating systems not processing HTML files …
Browse files Browse the repository at this point in the history
…correctly
  • Loading branch information
Mazawrath committed Jan 11, 2019
1 parent 7179a82 commit 80caa6d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

public class GoogleCloudVision {

public GoogleCloudVision() {
System.setProperty("http.agent", "Chrome");
}

public List<EntityAnnotation> getLabelDetection(URL image) {
try (ImageAnnotatorClient vision = ImageAnnotatorClient.create()) {

Expand Down

0 comments on commit 80caa6d

Please sign in to comment.