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:
java -jar build/libs/vision.jar ./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 build -info
# Call the Vision API with the default image file in "resources/doggo.jpg"
java -jar build/libs/vision.jar
# Call the Vision API with your own image file
java -jar build/libs/vision.jar path/to/your-image.jpg
- See CONTRIBUTING.md
- See LICENSE