private async Task<Emotion[]> UploadAndDetectEmotion(string subscriptionKey, Stream imageStream)
{
try
{
var emotionServiceClient = new EmotionServiceClient(subscriptionKey);
var emotionResult = await emotionServiceClient.RecognizeAsync(imageStream);
return emotionResult;
}
catch (Exception ex)
{
Debug.WriteLine($"Error {ex}");
return null;
}
}