Object Recognition With Google Cloud Vision API, Twilio, and Java
This project integrates object and text recognition technology provided by Google Cloud Vision into a Java Spring Boot application. The Google Cloud Vision API is used to analyse images and extract labels, find and read printed text from images sent over a private WhatsApp Sandbox created using the Twilio WhatsApp API.
To run the application:
- Create a free Twilio account.
- Create a free Google Cloud Vision Developer account. Don't forget to add your Billing Information.
- Create a ngrok account, download and install the ngrok client on your computer.
- Start your ngrok agent by running
ngrok http 8080
in your terminal. - Clone the project on your favourite Integrated Development Environment (IDE).
- Install dependencies by running the following command:
mvn install
. - Run the project on your IDE or run the following command on your terminal:
java -jar ./target/customer-service.jar
You must have either the Java Runtime Environment (JRE) or the Java Development Kit (JDK) installed on your machine.
Click here to find a JRE or JDK version that suits your machine.