Skip to content

gve-sw/spark-bot-google-vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spark Bot with Google Vision API integration

This Spark Bot uses Google Vision to analyze pictures sent to it. You can either send a URL of an image or you can post the image itself into the spark room.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

Create a google cloud account and enable the Google Vision API. See https://cloud.google.com/vision/docs/before-you-begin

Download and extract [ngrok](http://ngrok.com/download. Then launch it.

$ ./ngrok http 8080

Install Flask framework for Python using pip.

$ pip install Flask

Rename settings_template.py file to settings.py and update the variables with your Bot token, Bot id, webhook name, webhook id. If you choose to run ngrok on a different machine, you should update the ngrok_url variable.

Launch the Python application.

$ python app.py

On Spark, create a 1-1 room with the Spark Bot, and start posting images or URL of images in that room. You will notice the posted messages being printed by your application on the terminal. The Bot will post the result Google Vision analysis of the image to the Spark room.

Authors

About

Spark Bot with Google Vision API integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages