你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CustomVisionPredictionManager Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.customvision.prediction.CustomVisionPredictionManager

public class CustomVisionPredictionManager

Entry point to Azure Cognitive Services Custom Vision Prediction manager.

Method Summary

Modifier and Type Method and Description
CustomVisionPredictionClient authenticate(RestClient restClient, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

CustomVisionPredictionClient authenticate(ServiceClientCredentials credentials, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

CustomVisionPredictionClient authenticate(String apiKey)

Initializes an instance of Custom Vision Prediction API client.

CustomVisionPredictionClient authenticate(String baseUrl, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

CustomVisionPredictionClient authenticate(String baseUrl, ServiceClientCredentials credentials, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

Method Details

authenticate

public static CustomVisionPredictionClient authenticate(RestClient restClient, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

Parameters:

restClient - the REST client to connect to Azure.
apiKey - the Custom Vision Prediction API key

Returns:

the Custom Vision Prediction API client

authenticate

public static CustomVisionPredictionClient authenticate(ServiceClientCredentials credentials, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

Parameters:

credentials - the management credentials for Azure
apiKey - the Custom Vision Prediction API key

Returns:

the Computer Vision API client

authenticate

public static CustomVisionPredictionClient authenticate(String apiKey)

Initializes an instance of Custom Vision Prediction API client.

Parameters:

apiKey - the Custom Vision Prediction API key

Returns:

the Computer Vision API client

authenticate

public static CustomVisionPredictionClient authenticate(String baseUrl, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

Parameters:

baseUrl - the base URL of the service
apiKey - the Custom Vision Prediction API key

Returns:

the Custom Vision Prediction API client

authenticate

public static CustomVisionPredictionClient authenticate(String baseUrl, ServiceClientCredentials credentials, final String apiKey)

Initializes an instance of Custom Vision Prediction API client.

Parameters:

baseUrl - the base URL of the service
credentials - the management credentials for Azure
apiKey - the Custom Vision Prediction API key

Returns:

the Custom Vision Prediction API client

Applies to