Samples using Azure storages, Azure cognitive services, Azure Functions with blob triggers and Cosmos DB output binding for Azure Functions
- .NET Core 3.1
- Azure Cognitive Services
- Azure Storage Account
- Azure Function
- CosmosDB
- Load TextRecognition solution in Visual Studio.
- Create
local.settings.json
file at root of directory. - Add following JSON at
local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"CosmosDBConnection": "",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"COMPUTER_VISION_SUBSCRIPTION_KEY": "",
"COMPUTER_VISION_ENDPOINT": ""
}
}
- Create a Container
image-text
at Azure Storage - Hit
F5
- Upload a File at Azure Storage
- https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-output?tabs=csharp
- https://github.com/lbugnion/sample-azure-cognitive1/blob/master/Doc/text-recognition.md
- https://docs.microsoft.com/en-us/samples/azure-samples/cognitive-services-dotnet-sdk-samples/cognitive-services-dotnet-sdk-samples/