We now have a video from the web camera available for our use. To be able to analyze emotions from it, we first need to add the Emotion API NuGet client package. Find and install the Microsoft.ProjectOxford.Emotion NuGet client package to the application.
Next we want to add a new private member, which will be used to access the API features:
private EmotionServiceClient _emotionServiceClient;
This should be assigned in the constructor. As with the FaceServiceClient, we create a new object of this type in the MainViewModel.cs and pass it in through the constructor.
In the FrameGrabber class, ...