1
// Base64では、あるべきImageContext
に言語ヒントを追加する方法のJPEG
設定する方法setLanguageHints
base64EncodedImage.encodeContent(imageBytes);
annotateImageRequest.setImage(base64EncodedImage);
// add the features we want
annotateImageRequest.setFeatures(new ArrayList<Feature>() {{
Feature textDetection = new Feature();
textDetection.setType("TEXT_DETECTION");
add(textDetection);
}});
ImageContext ImageCon = new ImageContext();
ImageCon.cou("th,us");
annotateImageRequest.setImageContext(ImageCon);
// Add the list of one thing} to the request
add(annotateImageRequest);
}});