Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vision region tag update #1182

Merged
merged 17 commits into from
Aug 15, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates region tags for detecting-faces page
alixhami committed Aug 15, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit cb42013893bd790a0a552ced138ee2c00b9cbe76
Original file line number Diff line number Diff line change
@@ -201,6 +201,7 @@ public static void argsHelper(String[] args, PrintStream out) throws Exception,
* @throws Exception on errors while closing the client.
* @throws IOException on Input/Output errors.
*/
// [START vision_face_detection]
public static void detectFaces(String filePath, PrintStream out) throws Exception, IOException {
List<AnnotateImageRequest> requests = new ArrayList<>();

@@ -234,6 +235,7 @@ public static void detectFaces(String filePath, PrintStream out) throws Exceptio
}
}
}
// [END vision_face_detection]

/**
* Detects faces in the specified remote image on Google Cloud Storage.
@@ -244,6 +246,7 @@ public static void detectFaces(String filePath, PrintStream out) throws Exceptio
* @throws Exception on errors while closing the client.
* @throws IOException on Input/Output errors.
*/
// [START vision_face_detection_gcs]
public static void detectFacesGcs(String gcsPath, PrintStream out) throws Exception,
IOException {
List<AnnotateImageRequest> requests = new ArrayList<>();
@@ -278,6 +281,7 @@ public static void detectFacesGcs(String gcsPath, PrintStream out) throws Except
}
}
}
// [END vision_face_detection_gcs]

/**
* Detects labels in the specified local image.