Coder Social home page Coder Social logo

simonaco / serverless-cognitive-services Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 4.0 20 KB

Serverless endpoints calling Cognitive Services APIs

JavaScript 100.00%
machine-learning cognitive-services azure computer-vision serverless azure-functions

serverless-cognitive-services's Introduction

Collection of Azure Functions wrappers for Azure Cognitive Services API

Computer Vision API

The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively.

To run functions in this project you need a Computer Vision instance.

You can create one either using the Azure Portal or using the Azure CLI.

az cognitiveservices account create -n serverless-cvs -g serverlesscognitiveservices --kind "ComputerVision" --sku F0 -l WestUS2 --yes

Rename local.settings.sample.json to local.settings.json and replace API_URL and API_KEY with your settings.

You can retrieve the API_KEY value either from the Azure Portal, on the Keys tab or using the Azure CLI:

az cognitiveservices account keys list -n serverless-cvs -g serverlesscognitiveservices

Same for the API_ENDPOINT, you can get it from the Overview page in the Azure Portal or using the Azure CLI:

az cognitiveservices account show -n serverless-cvs -g serverlesscognitiveservices

Install npm dependencies by running npm i. To run the project in VS Code click on the debug icon and then click start Debugging. This will start the Azure Functions runtime and generate URLs of this form http://localhost:7071/api/analyze-image

Test API

Deployed application at:

  1. Analyze Image

  2. Describe Image

  3. Face Detect

  4. OCR

  5. Tag Image

More resources

  1. API reference documentation Computer Vision API

  2. Azure CLI commands for Azure Cognitive Services

serverless-cognitive-services's People

Contributors

simonaco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

serverless-cognitive-services's Issues

Roadmap

Hey Simona,

do you think it is okay to describe which service will included in that wrapper API? I mean a kind of roadmap. So everyone can see what is the plan. :)

^jf

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.