C# Class Microsoft.ProjectOxford.Emotion.EmotionServiceClient

Inheritance: ServiceClient, IEmotionServiceClient
Exibir arquivo Open project: Microsoft/ProjectOxford-ClientSDK Class Usage Examples

Public Methods

Method Description
EmotionServiceClient ( string subscriptionKey ) : System

Initializes a new instance of the EmotionServiceClient class.

GetOperationResultAsync ( VideoEmotionRecognitionOperation operation ) : Task

Get emotion video operation result.

RecognizeAsync ( Stream imageStream ) : Task

Recognize emotions on faces in an image.

RecognizeAsync ( Stream imageStream, Rectangle faceRectangles ) : Task

Recognize emotions on faces in an image.

RecognizeAsync ( String imageUrl ) : Task

Recognize emotions on faces in an image.

RecognizeAsync ( String imageUrl, Rectangle faceRectangles ) : Task

Recognize emotions on faces in an image.

RecognizeInVideoAsync ( Stream videoStream ) : Task

Recognize emotions on faces in a video.

RecognizeInVideoAsync ( byte videoBytes ) : Task

Recognize emotions on faces in a video.

RecognizeInVideoAsync ( string videoUrl ) : Task

Recognize emotions on faces in a video.

Private Methods

Method Description
GetRecognizeUrl ( Rectangle faceRectangles ) : string

Method Details

EmotionServiceClient() public method

Initializes a new instance of the EmotionServiceClient class.
public EmotionServiceClient ( string subscriptionKey ) : System
subscriptionKey string The subscription key.
return System

GetOperationResultAsync() public method

Get emotion video operation result.
public GetOperationResultAsync ( VideoEmotionRecognitionOperation operation ) : Task
operation VideoEmotionRecognitionOperation Opaque operation object, from RecognizeInVideoAsync response.
return Task

RecognizeAsync() public method

Recognize emotions on faces in an image.
public RecognizeAsync ( Stream imageStream ) : Task
imageStream Stream Stream of the image
return Task

RecognizeAsync() public method

Recognize emotions on faces in an image.
public RecognizeAsync ( Stream imageStream, Rectangle faceRectangles ) : Task
imageStream Stream Stream of the image
faceRectangles Microsoft.ProjectOxford.Common.Rectangle
return Task

RecognizeAsync() public method

Recognize emotions on faces in an image.
public RecognizeAsync ( String imageUrl ) : Task
imageUrl String URL of the image.
return Task

RecognizeAsync() public method

Recognize emotions on faces in an image.
public RecognizeAsync ( String imageUrl, Rectangle faceRectangles ) : Task
imageUrl String URL of the image.
faceRectangles Microsoft.ProjectOxford.Common.Rectangle Array of face rectangles.
return Task

RecognizeInVideoAsync() public method

Recognize emotions on faces in a video.
public RecognizeInVideoAsync ( Stream videoStream ) : Task
videoStream Stream Video stream
return Task

RecognizeInVideoAsync() public method

Recognize emotions on faces in a video.
public RecognizeInVideoAsync ( byte videoBytes ) : Task
videoBytes byte Video stream byte array
return Task

RecognizeInVideoAsync() public method

Recognize emotions on faces in a video.
public RecognizeInVideoAsync ( string videoUrl ) : Task
videoUrl string Video URL
return Task