{"id":16227423,"url":"https://github.com/simonaco/serverless-cognitive-services","last_synced_at":"2025-03-19T13:31:05.440Z","repository":{"id":50065830,"uuid":"158835683","full_name":"simonaco/serverless-cognitive-services","owner":"simonaco","description":"Serverless endpoints calling Cognitive Services APIs","archived":false,"fork":false,"pushed_at":"2021-06-05T05:02:23.000Z","size":20,"stargazers_count":15,"open_issues_count":9,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T19:31:07.225Z","etag":null,"topics":["azure","azure-functions","cognitive-services","computer-vision","machine-learning","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonaco.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-23T13:20:56.000Z","updated_at":"2024-02-07T18:49:32.000Z","dependencies_parsed_at":"2022-09-22T23:22:04.847Z","dependency_job_id":null,"html_url":"https://github.com/simonaco/serverless-cognitive-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonaco%2Fserverless-cognitive-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonaco%2Fserverless-cognitive-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonaco%2Fserverless-cognitive-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonaco%2Fserverless-cognitive-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonaco","download_url":"https://codeload.github.com/simonaco/serverless-cognitive-services/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989730,"owners_count":20379648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-functions","cognitive-services","computer-vision","machine-learning","serverless"],"created_at":"2024-10-10T12:52:42.783Z","updated_at":"2025-03-19T13:31:05.187Z","avatar_url":"https://github.com/simonaco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collection of Azure Functions wrappers for Azure Cognitive Services API\n\n## Computer Vision API\n\nThe [Computer Vision API](https://docs.microsoft.com/azure/cognitive-services/computer-vision/?wt.mc_id=github-readme-sicotin) 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.\n\nTo run functions in this project you need a Computer Vision instance.\n\nYou can create one either using the [Azure Portal](https://aka.ms/portal-github) or using the [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/cognitiveservices?view=azure-cli-latest\u0026wt.mc_id=github-readme-sicotin).\n\n```\naz cognitiveservices account create -n serverless-cvs -g serverlesscognitiveservices --kind \"ComputerVision\" --sku F0 -l WestUS2 --yes\n```\n\nRename local.settings.sample.json to local.settings.json and replace API_URL and API_KEY with your settings.\n\nYou can retrieve the API_KEY value either from the [Azure Portal](https://aka.ms/portal-github), on the Keys tab or using the [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/cognitiveservices?view=azure-cli-latest\u0026wt.mc_id=github-readme-sicotin):\n\n```\naz cognitiveservices account keys list -n serverless-cvs -g serverlesscognitiveservices\n```\n\nSame for the API_ENDPOINT, you can get it from the Overview page in the [Azure Portal](https://aka.ms/portal-github) or using the [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/cognitiveservices?view=azure-cli-latest\u0026wt.mc_id=github-readme-sicotin):\n\n```\naz cognitiveservices account show -n serverless-cvs -g serverlesscognitiveservices\n```\n\nInstall 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](http://localhost:7071/api/analyze-image)\n\n## Test API\n\nDeployed application at:\n\n1. [Analyze Image](https://serverlesscv.azurewebsites.net/api/analyze-image)\n\n1. [Describe Image](https://serverlesscv.azurewebsites.net/api/describe-image)\n\n1. [Face Detect](https://serverlesscv.azurewebsites.net/api/face-detect)\n\n1. [OCR](https://serverlesscv.azurewebsites.net/api/ocr)\n\n1. [Tag Image](https://serverlesscv.azurewebsites.net/api/tag-image)\n\n## More resources\n\n1. API reference documentation [Computer Vision API](https://westus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fa/?wt.mc_id=github-readme-sicotin)\n\n1. Azure CLI commands for [Azure Cognitive Services](https://docs.microsoft.com/en-us/cli/azure/cognitiveservices?view=azure-cli-latest\u0026wt.mc_id=github-readme-sicotin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonaco%2Fserverless-cognitive-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonaco%2Fserverless-cognitive-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonaco%2Fserverless-cognitive-services/lists"}