endpoint function

Endpoint objects for computer vision services

Endpoint objects for computer vision services

computervision_endpoint(url, key = NULL, aad_token = NULL, ...) customvision_training_endpoint(url, key = NULL, ...) customvision_prediction_endpoint(url, key = NULL, ...)

Arguments

  • url: The URL of the endpoint.
  • key: A subscription key. Can be single-service or multi-service.
  • aad_token: For the Computer Vision endpoint, an OAuth token object, of class AzureAuth::AzureToken. You can supply this as an alternative to a subscription key.
  • ...: Other arguments to pass to AzureCognitive::cognitive_endpoint.

Returns

An object inheriting from cognitive_endpoint. The subclass indicates the type of service/endpoint: Computer Vision, Custom Vision training, or Custom Vision prediction.

Details

These are functions to create service-specific endpoint objects. Computer Vision supports authentication via either a subscription key or Azure Active Directory (AAD) token; Custom Vision only supports subscription key. Note that there are two kinds of Custom Vision endpoint, one for training and the other for prediction.

Examples

computervision_endpoint("https://myaccount.cognitiveservices.azure.com", key="key") customvision_training_endpoint("https://westus.api.cognitive.microsoft.com", key="key") customvision_prediction_endpoint("https://westus.api.cognitive.microsoft.com", key="key")

See Also

cognitive_endpoint, call_cognitive_endpoint

  • Maintainer: Hong Ooi
  • License: MIT + file LICENSE
  • Last published: 2020-10-17