Before you begin
Perform all steps to enable and use the Vision API on the Google Cloud Console.
Detect text in images (OCR)
Run optical character recognition on an image to locate and extract UTF-8 text in an image.
Detect handwriting in images (OCR)
Run optical character recognition on an image to locate and extract handwritten text in an image.
Detect text in files (OCR - PDF/TIFF)
Run dense text document optical character recognition to locate and extract text in a file.
Detect crop hints
Learn how to run crop hints on an image.
Learn how to perform image face detection.
Detect image properties
Run image property detection to extract information such as dominant image colors.
Learn how to get general labels about image content.
Learn how to perform landmark detection on an image.
Learn how to perform logo detection on an image.
Detect multiple objects
Learn how to locate multiple objects in an image.
Detect explicit content (SafeSearch)
Learn how to perform explicit content (SafeSearch) detection on an image. Targeted categories include:
Detect Web entities and pages
Learn how to detect web entities and pages related to an image. Responses include information such as full matching images, partial matching images, similar images, and best guess label(s).
Batch image annotation offline
Get image annotations for all feature types on a batch of images. The results of this long-running (asynchronous) operation are stored in a Cloud Storage bucket when the operation completes.
Small batch file annotation online
Get file annotations online (synchronously) for a small batch (up to 5 pages) of PDF/TIFF/GIF files.
Batch file annotation offline
Get file annotations for all feature types on a multi-paged PDF/TIFF file. The results of this long-running (asynchronous) operation are stored in a Cloud Storage bucket when the operation completes.
Using Cloud Vision with Spring framework
Instructions on using the Spring framework and Spring Cloud GCP to interact with Vision API.
Instructions on base64-encoding for sending a local image.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.