@@ -569,6 +569,7 @@ public static void detectLogosGcs(String gcsPath, PrintStream out) throws Except
569
569
* @throws Exception on errors while closing the client.
570
570
* @throws IOException on Input/Output errors.
571
571
*/
572
+ // [START vision_text_detection]
572
573
public static void detectText (String filePath , PrintStream out ) throws Exception , IOException {
573
574
List <AnnotateImageRequest > requests = new ArrayList <>();
574
575
@@ -598,6 +599,7 @@ public static void detectText(String filePath, PrintStream out) throws Exception
598
599
}
599
600
}
600
601
}
602
+ // [END vision_text_detection]
601
603
602
604
/**
603
605
* 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
607
609
* @throws Exception on errors while closing the client.
608
610
* @throws IOException on Input/Output errors.
609
611
*/
612
+ // [START vision_text_detection_gcs]
610
613
public static void detectTextGcs (String gcsPath , PrintStream out ) throws Exception , IOException {
611
614
List <AnnotateImageRequest > requests = new ArrayList <>();
612
615
@@ -635,6 +638,7 @@ public static void detectTextGcs(String gcsPath, PrintStream out) throws Excepti
635
638
}
636
639
}
637
640
}
641
+ // [END vision_text_detection_gcs]
638
642
639
643
/**
640
644
* Detects image properties such as color frequency from the specified local image.
0 commit comments