This page will describe how to configure Cognitive Services together with Digizuite.
...
Pricing details can be found here: https://azure.microsoft.com/en-us/pricing/details/cognitive-services/computer-vision/
"For Recognize Text each POST call counts as a transaction. All GET calls to see the results of the async service are counted as transactions but are free of charge. For all other operations, each feature call counts as a transaction, whether called independently or grouped through the Analyze call. Analyze calls are used to make calling the API easier, but each feature used counts as a transaction. For instance, an Analyze call containing Tag, Face, and Adult would count as three transactions."
The features that are supported are shown below here. The number of transactions is dependent on the number of visual features wanted. So if the system is configured with all, then it will be 7 transactions per asset.
ImageType = 0,
Faces = 1,
Adult = 2,
Categories = 3,
Color = 4,
Tags = 5,
Description = 6
...
These must be correctly added to app.settings under damcenter/DigizuiteCore/appsettings.json:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
"ComputerVisionDetails": { |
...
"subscriptionKey": "..................................", |
...
"AzureEndpointUrl": "https://northeurope.api.cognitive.microsoft.com/", |
...
"FacesKey": "..................................",, |
...
"FacesEndpointUrl": "https://digi-faces-dev.cognitiveservices.azure.com/", |
...
"FacesPersonGroup": "digipersons", |
...
"VisualFeatures": "Tags", |
...
"VideoIndexerKey": "..................................",, |
...
"VideoIndexerWatcherInterval": 180 |
...
} |
...
and |
...
"TranslationApi": { |
...
"EndpointUrl": "https://api.cognitive.microsofttranslator.com", |
...
"SubscriptionKey": "..................................", |
...
"ApiVersion": "3.0" |
...
} |
Important is to notice that the Visual Features are based on the list from Azure. The default is these 5 which can be configured. Changing it will impact pricing.
...
The SubscriptionKey for Translation is not the same as the one for computer vision.