I hereby claim:
- I am rnrneverdies on github.
- I am rnrneverdies (https://keybase.io/rnrneverdies) on keybase.
- I have a public key ASCgICVJRQezbFR_GvvOQLQfODGf_GFIOgR7Z4T4v7cQzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Load the model | |
| var recognizer = new EmotionRecognizer(); | |
| await recognizer.LoadModelAsync()); | |
| // Trigger file picker to select an image file | |
| var fileOpenPicker = new FileOpenPicker(); | |
| fileOpenPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary; | |
| fileOpenPicker.FileTypeFilter.Add(".jpg"); | |
| fileOpenPicker.FileTypeFilter.Add(".png"); | |
| fileOpenPicker.ViewMode = PickerViewMode.Thumbnail; |
| public class EmotionRecognizer | |
| { | |
| // .... | |
| public async Task<Results> EvaluateAsync(VideoFrame inputFrame) | |
| { | |
| if (model != null) { | |
| // Create bindings for the input and output buffer | |
| var binding = new LearningModelBindingPreview(model as LearningModelPreview); | |
| var outputVariableList = new List<float>(); |
| public class EmotionRecognizer | |
| { | |
| // .... | |
| public async Task LoadModelAsync() | |
| { | |
| try | |
| { | |
| // Load Model | |
| var modelFile = await StorageFile.GetFileFromApplicationUriAsync( |
| 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; } |
| private async void Page_Loaded(object sender, RoutedEventArgs e) | |
| { | |
| // Load onnx model | |
| await LoadModelAsync(); | |
| } |
| <Page | |
| x:Class="EmotionRecognition.MainPage" | |
| ... | |
| Loaded="Page_Loaded"> |
| #!/usr/bin/env bash | |
| ffmpeg -y -rtbufsize 102M -f dshow -video_size 640x480 -framerate 30 -pixel_format yuyv422 \ | |
| -video_device_number 0 -i video="Microsoft® LifeCam Studio(TM)" -t 60 -c:v copy -crf 0 \ | |
| camera0.mkv & | |
| ffmpeg -y -rtbufsize 102M -f dshow -video_size 640x480 -framerate 30 -pixel_format yuyv422 \ | |
| -video_device_number 1 -i video="Microsoft® LifeCam Studio(TM)" -t 60 -c:v copy -crf 0 \ | |
| camera1.mkv & | |
| ffmpeg -y -rtbufsize 102M -f dshow -video_size 640x480 -framerate 30 -pixel_format yuyv422 \ | |
| -video_device_number 2 -i video="Microsoft® LifeCam Studio(TM)" -t 60 -c:v copy -crf 0 \ |