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
- Enable Cloud Vision API.
- Set up authentication.
- 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
# 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
- See CONTRIBUTING.md
- See LICENSE