An open API service indexing awesome lists of open source software.

https://github.com/GoogleCloudPlatform/cloud-vision

Sample code for Google Cloud Vision
https://github.com/GoogleCloudPlatform/cloud-vision

Last synced: 11 months ago
JSON representation

Sample code for Google Cloud Vision

Awesome Lists containing this project

README

          

![status: inactive](https://img.shields.io/badge/status-inactive-red.svg)

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

[C# / .NET][c#] | [Go lang][golang] | [Java][java] | [Node.js][nodejs] |
[PHP][php] | [Python][python] | [Ruby][ruby]

Note: The [Android](android/) and [IOS](ios/) samples haven't been moved to the
main [Android][android] and [IOS][ios] sample repos yet.

[c#]: //github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/master/vision/api
[golang]: //github.com/GoogleCloudPlatform/golang-samples/tree/master/vision
[java]: //github.com/GoogleCloudPlatform/java-docs-samples/tree/master/vision
[nodejs]: //github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/vision
[php]: //github.com/GoogleCloudPlatform/php-docs-samples/tree/master/vision
[python]: //github.com/GoogleCloudPlatform/python-docs-samples/tree/master/vision
[ruby]: //github.com/GoogleCloudPlatform/ruby-docs-samples/tree/master/vision
[android]: //github.com/GoogleCloudPlatform/android-docs-samples/
[ios]: //github.com/GoogleCloudPlatform/ios-docs-samples/

-----

# Google Cloud Vision API examples

This repo contains some [Google Cloud Vision
API](https://cloud.google.com/vision/) 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.

- [Documentation and Java Code](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/vision/landmark-detection)
- [Documentation and Python Code](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/python/landmark_detection/)

### Face Detection

See the [face detection](https://cloud.google.com/vision/docs/face-tutorial) tutorial in the docs.

- [Python Code](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/vision/api/face_detection)
- [Java Code](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/vision/face-detection)

### Label Detection

See the [label detection](https://cloud.google.com/vision/docs/label-tutorial) tutorial in the docs.

- [Python Code](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/vision/api/label)
- [Java Code](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/vision/label)

### Label Tagging Using Kubernetes

*Awwvision* is a [Kubernetes](https://github.com/kubernetes/kubernetes/) and
[Cloud Vision API](https://cloud.google.com/vision/) sample that uses the
Vision API to classify (label) images from Reddit's
[/r/aww](https://reddit.com/r/aww) subreddit, and display the labelled results
in a web application.

- [Documentation and Python Code](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/python/awwvision)

### 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](redis.io) 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](http://www.nltk.org/index.html) (Natural Language Toolkit) library.
The Java example uses the [OpenNLP](https://opennlp.apache.org/) library.

- [Documentation and Python Code](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/python/text)
- [Documentation and Java Code](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/vision/text)

## 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.

- [Documentation and Android Code](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/android)

### 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.

- [Documentation (Objective-C)](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/ios/Objective-C/README.md)

- [Documentation (Swift)](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/ios/Swift/README.md)

- [iOS Sample Code](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/ios)