@Generated("by gapic-generator-java")
Package com.google.cloud.vision.v1p1beta1
A client to Cloud Vision API
The interfaces provided are listed below, along with usage samples.
======================= ImageAnnotatorClient =======================
Service Description: Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images.
Sample for ImageAnnotatorClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
List<AnnotateImageRequest> requests = new ArrayList<>();
BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
}
-
Class Summary Class Description AnnotateImageRequest Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features.AnnotateImageRequest.Builder Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features.AnnotateImageResponse Response to an image annotation request.AnnotateImageResponse.Builder Response to an image annotation request.BatchAnnotateImagesRequest Multiple image annotation requests are batched into a single service call.BatchAnnotateImagesRequest.Builder Multiple image annotation requests are batched into a single service call.BatchAnnotateImagesResponse Response to a batch image annotation request.BatchAnnotateImagesResponse.Builder Response to a batch image annotation request.Block Logical element on the page.Block.Builder Logical element on the page.BoundingPoly A bounding polygon for the detected image annotation.BoundingPoly.Builder A bounding polygon for the detected image annotation.ColorInfo Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.ColorInfo.Builder Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.CropHint Single crop hint that is used to generate a new crop when serving an image.CropHint.Builder Single crop hint that is used to generate a new crop when serving an image.CropHintsAnnotation Set of crop hints that are used to generate new crops when serving images.CropHintsAnnotation.Builder Set of crop hints that are used to generate new crops when serving images.CropHintsParams Parameters for crop hints annotation request.CropHintsParams.Builder Parameters for crop hints annotation request.DominantColorsAnnotation Set of dominant colors and their corresponding scores.DominantColorsAnnotation.Builder Set of dominant colors and their corresponding scores.EntityAnnotation Set of detected entity features.EntityAnnotation.Builder Set of detected entity features.FaceAnnotation A face annotation object contains the results of face detection.FaceAnnotation.Builder A face annotation object contains the results of face detection.FaceAnnotation.Landmark A face-specific landmark (for example, a face feature).FaceAnnotation.Landmark.Builder A face-specific landmark (for example, a face feature).Feature Users describe the type of Google Cloud Vision API tasks to perform over images by using *Feature*s.Feature.Builder Users describe the type of Google Cloud Vision API tasks to perform over images by using *Feature*s.GeometryProto Image Client image to perform Google Cloud Vision API tasks over.Image.Builder Client image to perform Google Cloud Vision API tasks over.ImageAnnotatorClient Service Description: Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection.ImageAnnotatorGrpc Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection.ImageAnnotatorGrpc.ImageAnnotatorBlockingStub A stub to allow clients to do synchronous rpc calls to service ImageAnnotator.ImageAnnotatorGrpc.ImageAnnotatorFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service ImageAnnotator.ImageAnnotatorGrpc.ImageAnnotatorImplBase Base class for the server implementation of the service ImageAnnotator.ImageAnnotatorGrpc.ImageAnnotatorStub A stub to allow clients to do asynchronous rpc calls to service ImageAnnotator.ImageAnnotatorProto ImageAnnotatorSettings Settings class to configure an instance ofImageAnnotatorClient
.ImageAnnotatorSettings.Builder Builder for ImageAnnotatorSettings.ImageContext Image context and/or feature-specific parameters.ImageContext.Builder Image context and/or feature-specific parameters.ImageProperties Stores image properties, such as dominant colors.ImageProperties.Builder Stores image properties, such as dominant colors.ImageSource External image source (Google Cloud Storage image location).ImageSource.Builder External image source (Google Cloud Storage image location).LatLongRect Rectangle determined by min and max `LatLng` pairs.LatLongRect.Builder Rectangle determined by min and max `LatLng` pairs.LocationInfo Detected entity location information.LocationInfo.Builder Detected entity location information.Page Detected page from OCR.Page.Builder Detected page from OCR.Paragraph Structural unit of text representing a number of words in certain order.Paragraph.Builder Structural unit of text representing a number of words in certain order.Position A 3D position in the image, used primarily for Face detection landmarks.Position.Builder A 3D position in the image, used primarily for Face detection landmarks.Property A `Property` consists of a user-supplied name/value pair.Property.Builder A `Property` consists of a user-supplied name/value pair.SafeSearchAnnotation Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).SafeSearchAnnotation.Builder Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).Symbol A single symbol representation.Symbol.Builder A single symbol representation.TextAnnotation TextAnnotation contains a structured representation of OCR extracted text.TextAnnotation.Builder TextAnnotation contains a structured representation of OCR extracted text.TextAnnotation.DetectedBreak Detected start or end of a structural component.TextAnnotation.DetectedBreak.Builder Detected start or end of a structural component.TextAnnotation.DetectedLanguage Detected language for a structural component.TextAnnotation.DetectedLanguage.Builder Detected language for a structural component.TextAnnotation.TextProperty Additional information detected on the structural component.TextAnnotation.TextProperty.Builder Additional information detected on the structural component.TextAnnotationProto TextDetectionParams Parameters for text detections.TextDetectionParams.Builder Parameters for text detections.Vertex A vertex represents a 2D point in the image.Vertex.Builder A vertex represents a 2D point in the image.WebDetection Relevant information for the image from the Internet.WebDetection.Builder Relevant information for the image from the Internet.WebDetection.WebEntity Entity deduced from similar images on the Internet.WebDetection.WebEntity.Builder Entity deduced from similar images on the Internet.WebDetection.WebImage Metadata for online images.WebDetection.WebImage.Builder Metadata for online images.WebDetection.WebLabel Label to provide extra metadata for the web detection.WebDetection.WebLabel.Builder Label to provide extra metadata for the web detection.WebDetection.WebPage Metadata for web pages.WebDetection.WebPage.Builder Metadata for web pages.WebDetectionParams Parameters for web detection request.WebDetectionParams.Builder Parameters for web detection request.WebDetectionProto Word A word representation.Word.Builder A word representation. -
Enum Summary Enum Description Block.BlockType Type of a block (text, image etc) as identified by OCR.FaceAnnotation.Landmark.Type Face landmark (feature) type.Feature.Type Type of image feature.Likelihood A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades.TextAnnotation.DetectedBreak.BreakType Enum to denote the type of break found.