Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
February 13, 2018 14:04
February 17, 2016 11:44
August 3, 2016 12:58
October 10, 2017 10:47
December 10, 2019 23:59
February 8, 2016 11:27
January 8, 2018 10:23
April 18, 2022 09:37

status: inactive

This repo has been deprecated. All new work will be found at a given language's repo:

C# / .NET | Go lang | Java | Node.js | PHP | Python | Ruby

Note: The Android and IOS samples haven't been moved to the main Android and IOS sample repos yet.

Google Cloud Vision API examples

This repo contains some Google Cloud Vision API examples.

The samples are organized by language and mobile platform.

Language Examples

Landmark Detection Using Google Cloud Storage

This sample identifies a landmark within an image stored on Google Cloud Storage.

Face Detection

See the face detection tutorial in the docs.

Label Detection

See the label detection tutorial in the docs.

Label Tagging Using Kubernetes

Awwvision is a Kubernetes and Cloud Vision API sample that uses the Vision API to classify (label) images from Reddit's /r/aww subreddit, and display the labelled results in a web application.

Text Detection Using the Vision API

This sample uses TEXT_DETECTION Vision API requests to build an inverted index from the stemmed words found in the images, and stores that index in a Redis database. The resulting index can be queried to find images that match a given set of words, and to list text that was found in each matching image.

For finding stopwords and doing stemming, the Python example uses the nltk (Natural Language Toolkit) library. The Java example uses the OpenNLP library.

Mobile Platform Examples

Image Detection Using Android Device Photos

This simple single-activity sample that shows you how to make a call to the Cloud Vision API with an image picked from your device’s gallery.

Image Detection Using iOS Device Photos

The Swift and Objective-C versions of this app use the Vision API to run label and face detection on an image from the device's photo library. The resulting labels and face metadata from the API response are displayed in the UI.

Check out the Swift or Objective-C READMEs for specific getting started instructions.