Coder Social home page Coder Social logo

benc-uk / serverless-cosmos-lab Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 3.0 204 KB

Azure computer vision AI lab using LogicApps, Cognitive Services, CosmosDB and Web Apps

Home Page: http://code.benco.io/serverless-cosmos-lab/

HTML 14.98% JavaScript 78.76% CSS 6.25%
azure serverless cognitive-services logic-apps cosmosdb

serverless-cosmos-lab's Introduction

Cognitive Services Lab

This is a hands on lab guide for Azure. In this lab you will deploy a serverless application which uses Azure Cognitive Services to analyze photos gathered from twitter. An Azure Logic App drives the process and carries out most of the tasks.

The Logic App flow is:

  • Calls the Twitter API and searches for tweets containing a certain hashtag
  • Calls the Azure cognitive service API for each photo and gets the result which is a description of the contents of the photo
  • Stores the result in Azure Cosmos DB

The Azure cognitive service uses a pre-trained computer vision model to return results describing the image as a JSON object. Cosmos DB is a No-SQL database, which the Logic App uses to store the results as JSON documents, one for each photo result.

The final part of the application is a simple web app, written in Node.js. This web app is hosted in Azure as an Web App Service, it connects to Cosmos DB and displays the photo analysis results as a simple web page.

The guide steps through deploying and configuring the complete end to end solution in Azure

Solution Architecture

arch

High Level Steps

  1. Create a new resource group
  2. Create a Computer Vision API account
  3. Create a new Cosmos DB account
  4. Create a database and collection in Cosmos DB
  5. Create a Logic App
  6. Connect Logic App to Twitter
  7. Connect Logic App to Cosmos DB
  8. Test and verify
  9. Create a new Web App
  10. Connect Web App to Cosmos DB
  11. View results :)

Main Step by Step Guide

The guide consists of step by step instructional videos, taking you through setting up the whole application solution end to end. It will take approx an hour to run through the lab

Below is an embedded YouTube playlist with all 8 videos. This is a direct link to the playlist

<iframe width="100%" height="680" src="https://www.youtube.com/embed/videoseries?list=PLhnSSylQTB-nVzRyAYJm8oe1VaVL9C7yW" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

serverless-cosmos-lab's People

Contributors

benc-uk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.