- 3.53.0 (latest)
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
Package com.google.cloud.vision.v1p2beta1 (3.29.0)
GitHub Repository | RPC Documentation | REST Documentation |
This package is not the latest GA version!
For this library, we recommend using the package associated with API version v1 for new applications.
Prerelease Implications
This package is a prerelease version! Use with caution.
Prerelease versions are considered unstable as they may be shut down. You can read more about Cloud API versioning strategy here.
Each Cloud Java client library may contain multiple packages. Each package containing a version number in its name corresponds to a published version of the service.
We recommend using the latest stable version for new production applications, which can be identified by the largest numeric version that does not contain a suffix.
For example, if a client library has two packages: v1
and v2alpha
, then the latest stable version is v1
.
If you use an unstable release, breaking changes may be introduced when upgrading.
Client Classes
Client classes are the main entry point to using a package. They contain several variations of Java methods for each of the API's methods.
Client | Description |
---|---|
com.google.cloud.vision.v1p2beta1.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. |
Settings Classes
Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.
Settings | Description |
---|---|
com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings |
Settings class to configure an instance of ImageAnnotatorClient.
The default instance has everything set to sensible defaults: |
Classes
Class | Description |
---|---|
com.google.cloud.vision.v1p2beta1.AnnotateFileResponse | Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. |
com.google.cloud.vision.v1p2beta1.AnnotateFileResponse.Builder | Response to a single file annotation request. A file may contain one or more images, which individually have their own responses. |
com.google.cloud.vision.v1p2beta1.AnnotateImageRequest | Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features. |
com.google.cloud.vision.v1p2beta1.AnnotateImageRequest.Builder | Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features. |
com.google.cloud.vision.v1p2beta1.AnnotateImageResponse | Response to an image annotation request. |
com.google.cloud.vision.v1p2beta1.AnnotateImageResponse.Builder | Response to an image annotation request. |
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest | An offline file annotation request. |
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest.Builder | An offline file annotation request. |
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse | The response for a single offline file annotation request. |
com.google.cloud.vision.v1p2beta1.AsyncAnnotateFileResponse.Builder | The response for a single offline file annotation request. |
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest | Multiple async file annotation requests are batched into a single service call. |
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesRequest.Builder | Multiple async file annotation requests are batched into a single service call. |
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse | Response to an async batch file annotation request. |
com.google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse.Builder | Response to an async batch file annotation request. |
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest | Multiple image annotation requests are batched into a single service call. |
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesRequest.Builder | Multiple image annotation requests are batched into a single service call. |
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse | Response to a batch image annotation request. |
com.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse.Builder | Response to a batch image annotation request. |
com.google.cloud.vision.v1p2beta1.Block | Logical element on the page. |
com.google.cloud.vision.v1p2beta1.Block.Builder | Logical element on the page. |
com.google.cloud.vision.v1p2beta1.BoundingPoly | A bounding polygon for the detected image annotation. |
com.google.cloud.vision.v1p2beta1.BoundingPoly.Builder | A bounding polygon for the detected image annotation. |
com.google.cloud.vision.v1p2beta1.ColorInfo | Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. |
com.google.cloud.vision.v1p2beta1.ColorInfo.Builder | Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. |
com.google.cloud.vision.v1p2beta1.CropHint | Single crop hint that is used to generate a new crop when serving an image. |
com.google.cloud.vision.v1p2beta1.CropHint.Builder | Single crop hint that is used to generate a new crop when serving an image. |
com.google.cloud.vision.v1p2beta1.CropHintsAnnotation | Set of crop hints that are used to generate new crops when serving images. |
com.google.cloud.vision.v1p2beta1.CropHintsAnnotation.Builder | Set of crop hints that are used to generate new crops when serving images. |
com.google.cloud.vision.v1p2beta1.CropHintsParams | Parameters for crop hints annotation request. |
com.google.cloud.vision.v1p2beta1.CropHintsParams.Builder | Parameters for crop hints annotation request. |
com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation | Set of dominant colors and their corresponding scores. |
com.google.cloud.vision.v1p2beta1.DominantColorsAnnotation.Builder | Set of dominant colors and their corresponding scores. |
com.google.cloud.vision.v1p2beta1.EntityAnnotation | Set of detected entity features. |
com.google.cloud.vision.v1p2beta1.EntityAnnotation.Builder | Set of detected entity features. |
com.google.cloud.vision.v1p2beta1.FaceAnnotation | A face annotation object contains the results of face detection. |
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Builder | A face annotation object contains the results of face detection. |
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark | A face-specific landmark (for example, a face feature). |
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Builder | A face-specific landmark (for example, a face feature). |
com.google.cloud.vision.v1p2beta1.Feature |
The type of Google Cloud Vision API detection to perform, and the maximum
number of results to return for that type. Multiple Feature objects can
be specified in the features list. |
com.google.cloud.vision.v1p2beta1.Feature.Builder |
The type of Google Cloud Vision API detection to perform, and the maximum
number of results to return for that type. Multiple Feature objects can
be specified in the features list. |
com.google.cloud.vision.v1p2beta1.GcsDestination | The Google Cloud Storage location where the output will be written to. |
com.google.cloud.vision.v1p2beta1.GcsDestination.Builder | The Google Cloud Storage location where the output will be written to. |
com.google.cloud.vision.v1p2beta1.GcsSource | The Google Cloud Storage location where the input will be read from. |
com.google.cloud.vision.v1p2beta1.GcsSource.Builder | The Google Cloud Storage location where the input will be read from. |
com.google.cloud.vision.v1p2beta1.GeometryProto | |
com.google.cloud.vision.v1p2beta1.Image | Client image to perform Google Cloud Vision API tasks over. |
com.google.cloud.vision.v1p2beta1.Image.Builder | Client image to perform Google Cloud Vision API tasks over. |
com.google.cloud.vision.v1p2beta1.ImageAnnotationContext | If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. |
com.google.cloud.vision.v1p2beta1.ImageAnnotationContext.Builder | If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. |
com.google.cloud.vision.v1p2beta1.ImageAnnotatorGrpc | 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. |
com.google.cloud.vision.v1p2beta1.ImageAnnotatorGrpc.ImageAnnotatorImplBase | Base class for the server implementation of the service ImageAnnotator. Service that performs Google Cloud Vision API detection tasks over client |
com.google.cloud.vision.v1p2beta1.ImageAnnotatorProto | |
com.google.cloud.vision.v1p2beta1.ImageAnnotatorSettings.Builder | Builder for ImageAnnotatorSettings. |
com.google.cloud.vision.v1p2beta1.ImageContext | Image context and/or feature-specific parameters. |
com.google.cloud.vision.v1p2beta1.ImageContext.Builder | Image context and/or feature-specific parameters. |
com.google.cloud.vision.v1p2beta1.ImageProperties | Stores image properties, such as dominant colors. |
com.google.cloud.vision.v1p2beta1.ImageProperties.Builder | Stores image properties, such as dominant colors. |
com.google.cloud.vision.v1p2beta1.ImageSource | External image source (Google Cloud Storage or web URL image location). |
com.google.cloud.vision.v1p2beta1.ImageSource.Builder | External image source (Google Cloud Storage or web URL image location). |
com.google.cloud.vision.v1p2beta1.InputConfig | The desired input location and metadata. |
com.google.cloud.vision.v1p2beta1.InputConfig.Builder | The desired input location and metadata. |
com.google.cloud.vision.v1p2beta1.LatLongRect |
Rectangle determined by min and max LatLng pairs.
|
com.google.cloud.vision.v1p2beta1.LatLongRect.Builder |
Rectangle determined by min and max LatLng pairs.
|
com.google.cloud.vision.v1p2beta1.LocationInfo | Detected entity location information. |
com.google.cloud.vision.v1p2beta1.LocationInfo.Builder | Detected entity location information. |
com.google.cloud.vision.v1p2beta1.NormalizedVertex | A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
com.google.cloud.vision.v1p2beta1.NormalizedVertex.Builder | A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
com.google.cloud.vision.v1p2beta1.OperationMetadata | Contains metadata for the BatchAnnotateImages operation. |
com.google.cloud.vision.v1p2beta1.OperationMetadata.Builder | Contains metadata for the BatchAnnotateImages operation. |
com.google.cloud.vision.v1p2beta1.OutputConfig | The desired output location and metadata. |
com.google.cloud.vision.v1p2beta1.OutputConfig.Builder | The desired output location and metadata. |
com.google.cloud.vision.v1p2beta1.Page | Detected page from OCR. |
com.google.cloud.vision.v1p2beta1.Page.Builder | Detected page from OCR. |
com.google.cloud.vision.v1p2beta1.Paragraph | Structural unit of text representing a number of words in certain order. |
com.google.cloud.vision.v1p2beta1.Paragraph.Builder | Structural unit of text representing a number of words in certain order. |
com.google.cloud.vision.v1p2beta1.Position | A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. |
com.google.cloud.vision.v1p2beta1.Position.Builder | A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image. |
com.google.cloud.vision.v1p2beta1.Property |
A Property consists of a user-supplied name/value pair.
|
com.google.cloud.vision.v1p2beta1.Property.Builder |
A Property consists of a user-supplied name/value pair.
|
com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation | Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). |
com.google.cloud.vision.v1p2beta1.SafeSearchAnnotation.Builder | Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). |
com.google.cloud.vision.v1p2beta1.Symbol | A single symbol representation. |
com.google.cloud.vision.v1p2beta1.Symbol.Builder | A single symbol representation. |
com.google.cloud.vision.v1p2beta1.TextAnnotation | TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol |
com.google.cloud.vision.v1p2beta1.TextAnnotation.Builder | TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol |
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak | Detected start or end of a structural component. |
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.Builder | Detected start or end of a structural component. |
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage | Detected language for a structural component. |
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage.Builder | Detected language for a structural component. |
com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty | Additional information detected on the structural component. |
com.google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty.Builder | Additional information detected on the structural component. |
com.google.cloud.vision.v1p2beta1.TextAnnotationProto | |
com.google.cloud.vision.v1p2beta1.TextDetectionParams | Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features. |
com.google.cloud.vision.v1p2beta1.TextDetectionParams.Builder | Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features. |
com.google.cloud.vision.v1p2beta1.Vertex | A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
com.google.cloud.vision.v1p2beta1.Vertex.Builder | A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
com.google.cloud.vision.v1p2beta1.WebDetection | Relevant information for the image from the Internet. |
com.google.cloud.vision.v1p2beta1.WebDetection.Builder | Relevant information for the image from the Internet. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity | Entity deduced from similar images on the Internet. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebEntity.Builder | Entity deduced from similar images on the Internet. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebImage | Metadata for online images. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebImage.Builder | Metadata for online images. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel | Label to provide extra metadata for the web detection. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebLabel.Builder | Label to provide extra metadata for the web detection. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebPage | Metadata for web pages. |
com.google.cloud.vision.v1p2beta1.WebDetection.WebPage.Builder | Metadata for web pages. |
com.google.cloud.vision.v1p2beta1.WebDetectionParams | Parameters for web detection request. |
com.google.cloud.vision.v1p2beta1.WebDetectionParams.Builder | Parameters for web detection request. |
com.google.cloud.vision.v1p2beta1.WebDetectionProto | |
com.google.cloud.vision.v1p2beta1.Word | A word representation. |
com.google.cloud.vision.v1p2beta1.Word.Builder | A word representation. |
Interfaces
Enums
Enum | Description |
---|---|
com.google.cloud.vision.v1p2beta1.Block.BlockType | Type of a block (text, image etc) as identified by OCR. |
com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark.Type |
Face landmark (feature) type.
Left and right are defined from the vantage of the viewer of the image
without considering mirror projections typical of photos. So, LEFT_EYE , |
com.google.cloud.vision.v1p2beta1.Feature.Type | Type of Google Cloud Vision API feature to be extracted. |
com.google.cloud.vision.v1p2beta1.Likelihood | A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades. |
com.google.cloud.vision.v1p2beta1.OperationMetadata.State | Batch operation states. |
com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak.BreakType | Enum to denote the type of break found. New line, space etc. |