raghavanks / cloud-vision

Sample code for Google Cloud Vision

Home Page:https://cloud.google.com/vision

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud Vision API examples

This repo contains some Google Cloud Vision API examples.

Build Status

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.


Sample code for Google Cloud Vision


License:Apache License 2.0


Language:Java 36.8%Language:Python 27.0%Language:Objective-C 7.2%Language:Swift 7.2%Language:JavaScript 6.2%Language:Shell 4.7%Language:HTML 4.1%Language:PHP 2.7%Language:Go 2.0%Language:Makefile 0.9%Language:CSS 0.8%Language:Ruby 0.4%