This page lists a set of Vision API samples. Samples are organized by
language and mobile platform.

## Product Search examples

### Search for matching products with Cloud Vision Product Search

Using Cloud Vision Product Search you can create a product set (catalog)
with corresponding reference images of select
[product categories](https://docs.cloud.google.com/vision/product-search/docs/product-categories.md.txt). You can
then use the service to
take a new image of a product and search for matching products in your
product set. See the [official documentation](https://docs.cloud.google.com/vision/product-search/docs.md.txt)
and [tutorial](https://docs.cloud.google.com/vision/product-search/docs/tutorial.md.txt) for more information.

## Language examples

### 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 labeled results
in a web application.

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

## Mobile platform examples

### Vision and more with ML Kit

These sample apps show how you can easily use the Cloud Vision label detection,
landmark detection, and text recognition APIs from your mobile apps with
[ML Kit](https://developers.google.com/ml-kit). ML Kit also
provides APIs to perform face detection, barcode scanning, inference using
custom ML models, and more, all on the device, without requiring a network call.

[Android code samples](https://github.com/googlesamples/mlkit/tree/master/android)

[iOS code samples](https://github.com/googlesamples/mlkit/tree/master/ios)

### Image detection using Android device photos

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

[Documentation](https://github.com/GoogleCloudPlatform/cloud-vision/blob/master/android/README.md)

[Android code](https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/android/CloudVision)

### 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/blob/master/ios/Objective-C/README.md)

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

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