Twilio Labels, aka What's That?!
What's That?! is a simple Python application that uses Twilio and the Google Cloud Vision API to let people text an image to a number and receive a response that tells them what the Vision API sees in the first image they send.
What's That?! uses a Flask server to receive text messages, query the API, and send a response to the user.
Create a project in the Google Cloud Platform Console.
Enable billing for your project.
Enable the Vision APIs.
Install the Google Cloud SDK
$ curl https://sdk.cloud.google.com | bash $ gcloud init
Create and set up a Twilio account and number capable of sending and receiving MMS (make sure to whitelist your number with Twilio).
Install the python requirements found in
$ pip install -r requirements.txt
Test What's That?!
Run the sample
$ python whats_that.py
Text an image to your Twilio number
See the response!
Stop the server (
Delete images from Twilio using the API; you can write a script to do this