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

CustomVisionTrainingManager Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.customvision.training.CustomVisionTrainingManager

public class CustomVisionTrainingManager

Entry point to Azure Cognitive Services Custom Vision Training manager.

Method Summary

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

Initializes an instance of Custom Vision Training API client.

CustomVisionTrainingClient authenticate(ServiceClientCredentials credentials, final String apiKey)

Initializes an instance of Custom Vision Training API client.

CustomVisionTrainingClient authenticate(String apiKey)

Initializes an instance of Custom Vision Training API client.

CustomVisionTrainingClient authenticate(String baseUrl, final String apiKey)

Initializes an instance of Custom Vision Training API client.

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

Initializes an instance of Custom Vision Training API client.

Method Details

authenticate

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

Initializes an instance of Custom Vision Training API client.

Parameters:

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

Returns:

the Custom Vision Training API client

authenticate

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

Initializes an instance of Custom Vision Training API client.

Parameters:

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

Returns:

the Computer Vision Training API client

authenticate

public static CustomVisionTrainingClient authenticate(String apiKey)

Initializes an instance of Custom Vision Training API client.

Parameters:

apiKey - the Custom Vision Training API key

Returns:

the Computer Vision Training API client

authenticate

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

Initializes an instance of Custom Vision Training API client.

Parameters:

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

Returns:

the Custom Vision Training API client

authenticate

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

Initializes an instance of Custom Vision Training API client.

Parameters:

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

Returns:

the Custom Vision Training API client

Applies to