Skip to content

Instantly share code, notes, and snippets.

@rnrneverdies
Last active March 14, 2018 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnrneverdies/d443cef2d0e869b6128f3b036caa2f3d to your computer and use it in GitHub Desktop.
Save rnrneverdies/d443cef2d0e869b6128f3b036caa2f3d to your computer and use it in GitHub Desktop.
Results structure and gobal variable declarations for the Windows Machine Learning, EmotionRecognition sample.
public class EmotionRecognizer
{
public class Results
{
public float Neutral { get; set; }
public float Happiness { get; set; }
public float Surprise { get; set; }
public float Sadness { get; set; }
public float Anger { get; set; }
public float Disgust { get; set; }
public float Fear { get; set; }
public float Contempt { get; set; }
}
// model and in/out tensor descriptions
private LearningModelPreview model = null;
private ImageVariableDescriptorPreview inputImageDescriptor;
private TensorVariableDescriptorPreview outputTensorDescriptor;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment