Skip to content

Latest commit

 

History

History

vision

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Cloud Vision Kotlin Sample

Open in Cloud Shell

Description

This simple command-line application demonstrates how to invoke the Google Cloud Vision API from Kotlin. The sample calls the Vision API on an input image.

Example:

build/install/vision/bin/vision ./resources/doggo.jpg

Quickstart

Setup

Build

  • Clone the repository
git clone https://github.com/GoogleCloudPlatform/kotlin-samples
cd kotlin-samples/vision
  • Build the project with Gradle Wrapper:
# run with "-info" flag to print potential errors
./gradlew installDist -info

Running the sample!

# Call the Vision API with the default image file in "resources/doggo.jpg"
build/install/vision/bin/vision
# Call the Vision API with your own image file
build/install/vision/bin/vision path/to/your-image.jpg

Contributing changes

Licensing