C# Класс Microsoft.ProjectOxford.Emotion.EmotionServiceClient

Наследование: ServiceClient, IEmotionServiceClient
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetRecognizeUrl ( Rectangle faceRectangles ) : string

Описание методов

EmotionServiceClient() публичный Метод

Initializes a new instance of the EmotionServiceClient class.
public EmotionServiceClient ( string subscriptionKey ) : System
subscriptionKey string The subscription key.
Результат System

GetOperationResultAsync() публичный Метод

Get emotion video operation result.
public GetOperationResultAsync ( VideoEmotionRecognitionOperation operation ) : Task
operation VideoEmotionRecognitionOperation Opaque operation object, from RecognizeInVideoAsync response.
Результат Task

RecognizeAsync() публичный Метод

Recognize emotions on faces in an image.
public RecognizeAsync ( Stream imageStream ) : Task
imageStream Stream Stream of the image
Результат Task

RecognizeAsync() публичный Метод

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
Результат Task

RecognizeAsync() публичный Метод

Recognize emotions on faces in an image.
public RecognizeAsync ( String imageUrl ) : Task
imageUrl String URL of the image.
Результат Task

RecognizeAsync() публичный Метод

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.
Результат Task

RecognizeInVideoAsync() публичный Метод

Recognize emotions on faces in a video.
public RecognizeInVideoAsync ( Stream videoStream ) : Task
videoStream Stream Video stream
Результат Task

RecognizeInVideoAsync() публичный Метод

Recognize emotions on faces in a video.
public RecognizeInVideoAsync ( byte videoBytes ) : Task
videoBytes byte Video stream byte array
Результат Task

RecognizeInVideoAsync() публичный Метод

Recognize emotions on faces in a video.
public RecognizeInVideoAsync ( string videoUrl ) : Task
videoUrl string Video URL
Результат Task