Faces.detectWithStream Method

Definition

Overloads

detectWithStream()

Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.

detectWithStream(byte[] image, DetectWithStreamOptionalParameter detectWithStreamOptionalParameter)

Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.

detectWithStream()

Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.

public FacesDetectWithStreamDefinitionStages.WithImage detectWithStream()

Returns

FacesDetectWithStreamDefinitionStages.WithImage

the first stage of the detectWithStream call

detectWithStream(byte[] image, DetectWithStreamOptionalParameter detectWithStreamOptionalParameter)

Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.

public List<DetectedFace> detectWithStream(byte[] image, DetectWithStreamOptionalParameter detectWithStreamOptionalParameter)

Parameters

image
byte []

An image stream.

detectWithStreamOptionalParameter
DetectWithStreamOptionalParameter

the object representing the optional parameters to be set before calling this API

Returns

List<DetectedFace>

the List<DetectedFace> object if successful.

Exceptions

IllegalArgumentException

thrown if parameters fail the validation

APIErrorException

thrown if the request is rejected by server

RuntimeException

all other wrapped checked exceptions if the request fails to be sent

Applies to