Skip to content

Commit 912226c

Browse files
committed
update region tags for detecting-text page
1 parent 2418f4b commit 912226c

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ public static void detectLogosGcs(String gcsPath, PrintStream out) throws Except
569569
* @throws Exception on errors while closing the client.
570570
* @throws IOException on Input/Output errors.
571571
*/
572+
// [START vision_text_detection]
572573
public static void detectText(String filePath, PrintStream out) throws Exception, IOException {
573574
List<AnnotateImageRequest> requests = new ArrayList<>();
574575

@@ -598,6 +599,7 @@ public static void detectText(String filePath, PrintStream out) throws Exception
598599
}
599600
}
600601
}
602+
// [END vision_text_detection]
601603

602604
/**
603605
* Detects text in the specified remote image on Google Cloud Storage.
@@ -607,6 +609,7 @@ public static void detectText(String filePath, PrintStream out) throws Exception
607609
* @throws Exception on errors while closing the client.
608610
* @throws IOException on Input/Output errors.
609611
*/
612+
// [START vision_text_detection_gcs]
610613
public static void detectTextGcs(String gcsPath, PrintStream out) throws Exception, IOException {
611614
List<AnnotateImageRequest> requests = new ArrayList<>();
612615

@@ -635,6 +638,7 @@ public static void detectTextGcs(String gcsPath, PrintStream out) throws Excepti
635638
}
636639
}
637640
}
641+
// [END vision_text_detection_gcs]
638642

639643
/**
640644
* Detects image properties such as color frequency from the specified local image.

0 commit comments

Comments
 (0)