The Vision API provides computer vision features for image analysis,
including the following capabilities:

| All feature types ||
|---|---|
| ### [Text detection](https://docs.cloud.google.com/vision/docs/ocr.md.txt) ![Road sign with detected text.](https://docs.cloud.google.com/static/vision/docs/images/sign_text.png) | - Optical character recognition (OCR) for an image, including text recognition and conversion to machine-coded text. Identifies and extracts UTF-8 text in an image. - **Images** : Optimized for ***sparse*** areas of text within a larger image. - **Response** : Returns both a list of words identified with text, bounding boxes, and `textAnnotations`, as well as the structural hierarchy for the OCR detected text (`fullTextAnnotation`). - Hierarchy of extracted text structure: - TextAnnotation -\> Page -\> Block -\> Paragraph -\> Word -\> Symbol. - Each structural component from Page on may further have their own properties such as detected languages, breaks, etc. - **Languages supported** : Works with currently [supported, mapped, and experimental](https://docs.cloud.google.com/vision/docs/languages.md.txt) languages. - Feature enum value: `TEXT_DETECTION`. |
| ### [Document text detection (dense text and handwriting)](https://docs.cloud.google.com/vision/docs/pdf.md.txt) ![Dense text document with bounding box annotations.](https://docs.cloud.google.com/static/vision/docs/images/document_text_highlighted.png) ![Handwritten text with optical character recognition annotations.](https://docs.cloud.google.com/static/vision/docs/images/detect_handwriting_OCR-detect-handwriting_SMALL.png) | - Optical character recognition (OCR) for a file (PDF or TIFF) or dense text image, including dense text recognition and conversion to machine-coded text. - **Files**: Optimized for document files (PDF or TIFF). - **Images** : Optimized for ***dense*** areas of text in an image (images that are documents), and images that contain handwriting. - **Response** : Returns the structural hierarchy for the OCR detected text (`fullTextAnnotation`). - Hierarchy of extracted text structure: - TextAnnotation -\> Page -\> Block -\> Paragraph -\> Word -\> Symbol. - Each structural component from Page on may further have their own properties such as detected languages, breaks, etc. - **Languages supported** : Works with currently [supported, mapped, and experimental](https://docs.cloud.google.com/vision/docs/languages.md.txt) languages. - Feature enum value: `DOCUMENT_TEXT_DETECTION`. - Takes precedence when both `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are requested. > [!NOTE] > If you are detecting text in scanned documents, try [Document AI](https://docs.cloud.google.com/document-ai/docs/overview.md.txt) for optical character recognition, structured form parsing, and entity extraction. You can use the [Document AI Toolbox](https://docs.cloud.google.com/document-ai/docs/handle-response.md.txt#toolbox) to convert output from the Document AI format to the Cloud Vision format. |
| ### [Landmark detection](https://docs.cloud.google.com/vision/docs/detecting-landmarks.md.txt) ![A labeled bounding box around Saint Basil's Cathedral, alongside results showing a 78% confidence score, a map of Moscow with a pin, and coordinates.](https://docs.cloud.google.com/static/vision/docs/images/moscow.png) *Image credit*: [Nikolay Vorobyev](https://unsplash.com/photos/jaH3QF46gAY) on [Unsplash](https://unsplash.com/) (*annotations added*). | - Provides the name of the landmark, a confidence score and a bounding box in the image for the landmark. - Gives coordinates for the detected entity. |
| ### [Logo detection](https://docs.cloud.google.com/vision/docs/detecting-logos.md.txt) ![Google logo with logo detection bounding polygon annotations.](https://docs.cloud.google.com/static/vision/docs/images/logo_annotated.png) *Image credit*: [Robert Scoble](https://www.flickr.com/photos/scobleizer/4249731778/) ([CC BY 2.0](https://creativecommons.org/licenses/by/2.0/), *annotation added*). | - Provides a textual description of the entity identified, a confidence score, and a bounding polygon for the logo in the file. |
| ### [Label detection](https://docs.cloud.google.com/vision/docs/labels.md.txt) ![Shanghai street with label detection annotations.](https://docs.cloud.google.com/static/vision/docs/images/shanghai_labels.png) *Image credit*: [Alex Knight](https://unsplash.com/photos/wfwUpfVqrKU) on [Unsplash](https://unsplash.com/). | - Provides generalized labels for an image. - For each label returns a textual description, confidence score, and topicality rating. |
| ### [Image properties](https://docs.cloud.google.com/vision/docs/detecting-properties.md.txt) ![Landscape view of Bali with dominant color palette swatches.](https://docs.cloud.google.com/static/vision/docs/images/bali_small_w_properties.jpeg) *Image credit*: [Jeremy Bishop](https://unsplash.com/photos/QUwLZNchflk) on [Unsplash](https://unsplash.com/). | - Returns dominant colors in an image. - Each color is represented in the RGBA color space, has a confidence score, and displays the fraction of pixels occupied by the color \[0, 1\]. |
| ### [Object localization](https://docs.cloud.google.com/vision/docs/object-localizer.md.txt) ![Bicycles with object localization bounding box annotations.](https://docs.cloud.google.com/static/vision/docs/images/bicycle.jpg) *Image credit:* [Bogdan Dada](https://unsplash.com/photos/J9cBJjlpYKU) on [Unsplash](https://unsplash.com/) (*annotations added*). | - Provides general label and bounding box annotations for multiple objects recognized in a single image. - For each object detected the following elements are returned: a textual description, a confidence score, and normalized vertices \[0,1\] for the bounding polygon around the object. > [!NOTE] > Need customized object detection? > With > [AutoML Vision > Object Detection](https://docs.cloud.google.com/vision/automl/object-detection/docs) > you can create a custom machine learning model for your specific image > object detection use case. |
| ### [Crop hint detection](https://docs.cloud.google.com/vision/docs/detecting-crop-hints.md.txt) ![Photograph alongside its recommended crop hint region.](https://docs.cloud.google.com/static/vision/docs/images/crop_both.jpeg) *Image credit*: [Yasmin Dangor](https://images.unsplash.com/photo-1526398018-f9ee0723f228?ixlib=rb-1.2.1&auto=format&fit=crop&w=1400&q=80) on [Unsplash](https://unsplash.com/) (*original and cropped image shown*). | - Provides a bounding polygon for the cropped image, a confidence score, and an importance fraction of this salient region with respect to the original image for each request. - You can provide up to 16 image ratio values (width:height) for a single image. |
| ### [Web entities and pages](https://docs.cloud.google.com/vision/docs/detecting-web.md.txt) ![Web detection results with matching entities and web pages.](https://docs.cloud.google.com/static/vision/docs/images/web_entities.png) *Image credit*: [Quinten de Graaf](https://unsplash.com/photos/KB0Ipylp7dc) on [Unsplash](https://unsplash.com/). | - Provides a series of related Web content to an image. - Returns the following information: - **Web entities**: Inferred entities (labels/descriptions) from similar images on the Web. - **Full matching images**: A list of URLs for fully matching images of any size on the Internet. - **Partial matching images**: A list of URLs for images that share key-point features, such as a cropped version of the original image. - **Pages with matching images**: A list of Webpages (identified by page URL, page title, matching image URL) with an image that satisfies the conditions described above. - **Visually similar images**: A list of URLs for images that share some features with the original image. - **Best guess label**: A best guess as to the topic of the requested image inferred from similar images on the Internet. |
| ### [Explicit content detection (SafeSearch)](https://docs.cloud.google.com/vision/docs/detecting-safe-search.md.txt) | - Provides likelihood ratings for the following explicit content categories: `adult`, `spoof`, `medical`, `violence`, and `racy`. - Likelihoods ratings are expressed as 6 different values: `UNKNOWN`, `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, or `VERY_LIKELY`. |
| ### [Face detection](https://docs.cloud.google.com/vision/docs/detecting-faces.md.txt) ![Detected faces with bounding polygons and facial landmark points.](https://docs.cloud.google.com/static/vision/docs/images/nano-banana-2_face-annotated.png) *Image credit*: Original image generated by the Nano Banana 2 model using Gemini. Annotations added from Vision API output using Gemini. ![](https://docs.cloud.google.com/static/vision/docs/images/nano-banana-2_face-annotated.png) | - Locates faces with bounding polygons, and identifies specific facial "landmarks" such as eyes, ears, nose, or mouth, along with their corresponding confidence values. - Returns likelihood ratings for general image properties (underexposed, blurred, headwear present). - Likelihoods ratings are expressed as 6 different values: `UNKNOWN`, `VERY_UNLIKELY`, `UNLIKELY`, `POSSIBLE`, `LIKELY`, or `VERY_LIKELY`. - **Specific individual [facial recognition](https://en.wikipedia.org/wiki/Facial_recognition_system) is not supported.** |