Skip to content

Commit 2418f4b

Browse files
committed
update region tags for detecting-safe-search page
1 parent 9ba84f6 commit 2418f4b

File tree

1 file changed

+4
-4
lines changed
  • vision/cloud-client/src/main/java/com/example/vision

1 file changed

+4
-4
lines changed

vision/cloud-client/src/main/java/com/example/vision/Detect.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,6 @@ public static void detectPropertiesGcs(String gcsPath, PrintStream out) throws E
728728
}
729729
// [END vision_image_property_detection_gcs]
730730

731-
// [START vision_detect_safe_search]
732731
/**
733732
* Detects whether the specified image has features you would want to moderate.
734733
*
@@ -737,6 +736,7 @@ public static void detectPropertiesGcs(String gcsPath, PrintStream out) throws E
737736
* @throws Exception on errors while closing the client.
738737
* @throws IOException on Input/Output errors.
739738
*/
739+
// [START vision_safe_search_detection]
740740
public static void detectSafeSearch(String filePath, PrintStream out) throws Exception,
741741
IOException {
742742
List<AnnotateImageRequest> requests = new ArrayList<>();
@@ -771,9 +771,8 @@ public static void detectSafeSearch(String filePath, PrintStream out) throws Exc
771771
}
772772
}
773773
}
774-
// [END vision_detect_safe_search]
774+
// [END vision_safe_search_detection]
775775

776-
// [START vision_detect_safe_search_uri]
777776
/**
778777
* Detects whether the specified image on Google Cloud Storage has features you would want
779778
* to moderate.
@@ -783,6 +782,7 @@ public static void detectSafeSearch(String filePath, PrintStream out) throws Exc
783782
* @throws Exception on errors while closing the client.
784783
* @throws IOException on Input/Output errors.
785784
*/
785+
// [START vision_safe_search_detection_gcs]
786786
public static void detectSafeSearchGcs(String gcsPath, PrintStream out) throws Exception,
787787
IOException {
788788
List<AnnotateImageRequest> requests = new ArrayList<>();
@@ -816,7 +816,7 @@ public static void detectSafeSearchGcs(String gcsPath, PrintStream out) throws E
816816
}
817817
}
818818
}
819-
// [END vision_detect_safe_search_uri]
819+
// [END vision_safe_search_detection_gcs]
820820

821821
// [START vision_detect_web]
822822
/**

0 commit comments

Comments
 (0)