共用方式為


FaceAPIManager Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.faceapi.FaceAPIManager

public class FaceAPIManager

Entry point to Azure Cognitive Services Face API manager.

Method Summary

Modifier and Type Method and Description
FaceAPI authenticate(AzureRegions region, ServiceClientCredentials credentials)

Initializes an instance of Face API client.

FaceAPI authenticate(AzureRegions region, String subscriptionKey)

Initializes an instance of Face API client.

FaceAPI authenticate(RestClient restClient)

Initializes an instance of Face API client.

FaceAPI authenticate(String baseUrl, final String subscriptionKey)

Initializes an instance of Face API client.

FaceAPI authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Face API client.

Method Details

authenticate

public static FaceAPI authenticate(AzureRegions region, ServiceClientCredentials credentials)

Initializes an instance of Face API client.

Parameters:

region - Supported Azure regions for Cognitive Services endpoints.
credentials - the management credentials for Azure

Returns:

the Face API client

authenticate

public static FaceAPI authenticate(AzureRegions region, String subscriptionKey)

Initializes an instance of Face API client.

Parameters:

region - Supported Azure regions for Cognitive Services endpoints.
subscriptionKey - the Face API key

Returns:

the Face API client

authenticate

public static FaceAPI authenticate(RestClient restClient)

Initializes an instance of Face API client.

Parameters:

restClient - the REST client to connect to Azure.

Returns:

the Face API client

authenticate

public static FaceAPI authenticate(String baseUrl, final String subscriptionKey)

Initializes an instance of Face API client.

Parameters:

baseUrl - the base URL of the service
subscriptionKey - the Face API key

Returns:

the Face API client

authenticate

public static FaceAPI authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Face API client.

Parameters:

baseUrl - the base URL of the service
credentials - the management credentials for Azure

Returns:

the Face API client

Applies to