Compartilhar via


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