Coder Social home page Coder Social logo

anilmenon14 / awsrekognition_whatsapp_integration Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.59 MB

Serverless project to send and receive media files for image recognition by AWS Rekognition

License: GNU General Public License v3.0

Python 100.00%

awsrekognition_whatsapp_integration's Introduction

Objective

Set up a Serverless project that can be connected to a Twilio Whatsapp account/sandbox to send and receive media files for image recognition by AWS Rekognition via AWS Lambda

Pre-requisites

To have serverless setup , refer to 'Pre-requisites after cloning project' listed in this link

Note: You can choose to skip steps which ask to set up Twilio Account SID , Auth Token, 'from' and 'to' numbers since these are only needed to send outbound messages from Twilio to recipients. In our project, we are initiating a message from our WhatsApp account to Twilio whatsapp sandbox/business account and expecting a response back on the same number.

How to link your phone to the Twilio

However, you still need to have a way for Twilio to be able to accept messages from your phone. To do this, follow instructions from official Twilio website to create an account and link your phone to the Twilio sandbox number they assign to your account using the join <secret-phrase> first message to the sandbox.

Once done, to have Twilio interact with your AWS serverless stack, you need to have a webhook linked to your Twilio account . Refer to 'Configure your Webhook URL' part of this link The webhook link to use is the one that shows under 'endpoints' once you have deployed your serverless stack using command serverless deploy from your project root folder after you have completed pre-requisites.

Workflow overview:

  1. User sends an image in form of screenshot or jpeg/png file to the Twilio sandbox number.
  2. The Twilio account receives the media file and makes a call to the webhook.
  3. The webhook is an HTTP end point for AWS lambda , which sends the image to AWS Rekognition.
  4. Rekognition responds back with the celebrities identified.

How things should look like:

Clearly, Alfred got it right with the Bat suit....

Christian Bale

Batman

Apparently Ryan Toolson can be cast as Captain America if Chris Evans declines to extend his contract....

Avengers assemble!

awsrekognition_whatsapp_integration's People

Contributors

anilmenon14 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.