GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/vision/spring-framework at main · fredatgithub/java-docs-samples

Expand file tree

/

spring-framework

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

spring-framework

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Cloud Vision on Spring Boot

This sample demonstrates leveraging Cloud Vision APIs within a Spring Boot application by using Spring Cloud GCP libraries.

The Spring Cloud GCP libraries for Cloud Vision offer Spring Auto-configuration classes and convenience libraries to allow you to more quickly start using Cloud Vision in Spring.

Overview

This sample starts a Spring Boot application containing a simple web interface that allows you submit image URLs and get the image's text or classification labels through the Google Cloud Vision APIs.

This application is built and run with Maven, a tool for building and managing dependencies in Java projects.

Build and Run

  1. Follow the set-up instructions in the documentation.

  2. Enable the Google Cloud Vision APIs for your Google Cloud Platform project. Click here to visit Cloud Platform Console and enable the Google Cloud Vision APIs.

  3. After following step 1, you should have the gcloud command line tool installed. Open up a terminal and run the command gcloud auth application-default login. This will provide the account authentication necessary to run the application.

  4. In this directory, run the following Maven command to start the Spring Boot application.

    mvn clean spring-boot:run
    
  5. After running the command, the application can be visited at http://localhost:8080/.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.