diff --git a/AffdexMe/AffdexMe.csproj b/AffdexMe/AffdexMe.csproj
deleted file mode 100644
index dd0b15f..0000000
--- a/AffdexMe/AffdexMe.csproj
+++ /dev/null
@@ -1,181 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {5B893EA1-EB11-425A-BF8A-05822F5E2C9A}
- WinExe
- Properties
- AffdexMe
- AffdexMe
- v4.5
- 512
- {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 4
-
-
- x86
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- $(ProjectDir)Resources\AffdexMe_Logo.ico
-
-
- x86
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- False
- c:\Program Files (x86)\Affectiva\Affdex SDK\bin\release\Affdex.dll
-
-
-
-
-
-
-
-
-
-
- 4.0
-
-
-
-
-
- $(ProjectDir)packages\WpfAnimatedGif.1.4.13\lib\net\WpfAnimatedGif.dll
-
-
-
-
-
-
-
- MSBuild:Compile
- Designer
-
-
- Code
-
-
- $(ProjectDir)MainWindow.xaml
- Code
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- Code
-
-
- True
- True
- Resources.resx
-
-
- True
- $(ProjectDir)Settings.settings
- True
-
-
- ResXFileCodeGenerator
- $(ProjectDir)Resources.Designer.cs
-
-
-
- SettingsSingleFileGenerator
- $(ProjectDir)Settings.Designer.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/AffdexMe/App.config b/AffdexMe/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/AffdexMe/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/AffdexMe/App.cs b/AffdexMe/App.cs
deleted file mode 100644
index 9168056..0000000
--- a/AffdexMe/App.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
-
-using Microsoft.VisualBasic.ApplicationServices;
-
-namespace AffdexMe
-{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App : Application
- {
- }
-
-
- ///
- /// From reference source: https://msdn.microsoft.com/en-us/library/vstudio/ms771662(v=vs.90).aspx
- ///
- public class EntryPoint
- {
- [STAThread]
- public static void Main(string[] args)
- {
- SingleInstanceManager manager = new SingleInstanceManager();
- manager.Run(args);
- }
- }
-
- // Using VB bits to detect single instances and process accordingly:
- // * OnStartup is fired when the first instance loads
- // * OnStartupNextInstance is fired when the application is re-run again
- // NOTE: it is redirected to this instance thanks to IsSingleInstance
- public class SingleInstanceManager : WindowsFormsApplicationBase
- {
- SingleInstanceApplication app;
-
- public SingleInstanceManager()
- {
- this.IsSingleInstance = true;
- }
-
-
- protected override bool OnStartup(Microsoft.VisualBasic.ApplicationServices.StartupEventArgs e)
- {
- // First time app is launched
- app = new SingleInstanceApplication();
- app.Run();
- return false;
- }
-
- protected override void OnStartupNextInstance(StartupNextInstanceEventArgs eventArgs)
- {
- // Subsequent launches
- base.OnStartupNextInstance(eventArgs);
- app.Activate();
- }
- }
-
- public class SingleInstanceApplication : Application
- {
-
- protected override void OnStartup(System.Windows.StartupEventArgs e)
- {
- base.OnStartup(e);
-
- // Create and show the application's main window
- MainWindow window = new MainWindow();
- window.Show();
- }
-
- public void Activate()
- {
- // Reactivate application's main window
- this.MainWindow.Activate();
- }
- }
-}
diff --git a/AffdexMe/App.xaml b/AffdexMe/App.xaml
deleted file mode 100644
index 868f299..0000000
--- a/AffdexMe/App.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/AffdexMe/App.xaml.cs b/AffdexMe/App.xaml.cs
deleted file mode 100644
index 8514a22..0000000
--- a/AffdexMe/App.xaml.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace AffdexMe
-{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App : Application
- {
- }
-}
diff --git a/AffdexMe/Fonts/Square.ttf b/AffdexMe/Fonts/Square.ttf
deleted file mode 100644
index 9f1867e..0000000
Binary files a/AffdexMe/Fonts/Square.ttf and /dev/null differ
diff --git a/AffdexMe/MainWindow.xaml b/AffdexMe/MainWindow.xaml
deleted file mode 100644
index 790e98b..0000000
--- a/AffdexMe/MainWindow.xaml
+++ /dev/null
@@ -1,253 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/AffdexMe/MainWindow.xaml.cs b/AffdexMe/MainWindow.xaml.cs
deleted file mode 100644
index 3e53a2d..0000000
--- a/AffdexMe/MainWindow.xaml.cs
+++ /dev/null
@@ -1,845 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Globalization;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-using System.Collections.Specialized;
-
-using Microsoft.Win32;
-using System.Reflection;
-
-namespace AffdexMe
-{
- ///
- /// Interaction logic for MainWindow.xaml
- ///
- public partial class MainWindow : Window, Affdex.ImageListener, Affdex.ProcessStatusListener
- {
-
- #region Member Variables and Enums
-
- ///
- /// The minimum length of the Classifier Value textbox
- ///
- const int ClassiferValueDisplayLength = 90;
-
- ///
- /// So the Classifiers can be cached
- ///
- int[] mAffdexClassifierValues = new int[6];
-
- ///
- /// Once a face has been recognized, the number of captures that occur before the classifiers get zero displayed
- /// This helps prevent classifier numbers from flashing on the screen.
- ///
- int mCachedSkipFaceResultsCount;
-
- ///
- /// Once a face's feature points get displayed, the number of successive captures that occur without
- /// the points getting redrawn in the OnResults callback.
- ///
- int mFeaturePointsSkipCount;
-
- ///
- /// Used to delay the display of the Classifier panel until the 1st face is recognized
- ///
- bool mFirstFaceRecognized;
-
- private Affdex.CameraDetector mCameraDetector;
-
- private StringCollection mEnabledClassifiers;
-
- private DateTime mStartTime;
- private float mCurrentTimeStamp;
-
- ///
- /// Scale factor based on ratio between current and original size
- ///
- private double mImageXScaleFactor;
- private double mImageYScaleFactor;
-
- private bool mShowFacePoints;
- private bool mShowMeasurements;
-
- #endregion
-
- #region Image and Results Arg Classes
- ///
- ///
- ///
- class ImageCaptureDataUpdateArgs
- {
- public float ImageCaptureTimeStamp {get; set;}
- public Affdex.Frame Image { get; set; }
- }
-
- ///
- ///
- ///
- class ImageResultsDataUpdateArgs
- {
- public float ImageResultsTimeStamp { get; set; }
- public Affdex.Frame Image { get; set; }
- public Affdex.Face Face { get; set; }
- }
-
- #endregion
-
- #region Listener Implementation
-
- public void onImageResults(Dictionary faces, Affdex.Frame image)
- {
- // For now only single face is supported
- if ((faces.Count() >= 1))
- {
- Affdex.Face face = faces[0];
-
- UpdateClassifierPanel(face);
- DisplayFeaturePoints(image, face);
- DisplayMeasurements(face);
- }
- }
-
- public void onImageCapture(Affdex.Frame image)
- {
- UpdateClassifierPanel();
- DisplayImageToOffscreenCanvas(image);
- }
-
- public void onProcessingException(Affdex.AffdexException ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
-
- public void onProcessingFinished()
- {
- }
-
- #endregion
-
- private void ShowExceptionAndShutDown(String exceptionMessage)
- {
- MessageBoxResult result = MessageBox.Show(exceptionMessage,
- "AffdexMe Error",
- MessageBoxButton.OK,
- MessageBoxImage.Error);
- this.Dispatcher.BeginInvoke((Action)(() =>
- {
- StopCameraProcessing();
- }));
- }
-
- private String GetClassifierDataFolder()
- {
- String affdexClassifierDir = Environment.GetEnvironmentVariable("AFFDEX_DATA_DIR");
- if (String.IsNullOrEmpty(affdexClassifierDir))
- {
- ShowExceptionAndShutDown("AFFDEX_DATA_DIR environment variable (Classifier Data Directory) is not set");
- }
-
- DirectoryInfo directoryInfo = new DirectoryInfo(affdexClassifierDir);
- if (!directoryInfo.Exists)
- {
- ShowExceptionAndShutDown("AFFDEX_DATA_DIR (Classifier Data Directory) is set to an invalid folder location");
- }
-
- return affdexClassifierDir;
- }
-
- private String GetAffdexLicense()
- {
- String licensePath = String.Empty;
- licensePath = Environment.GetEnvironmentVariable("AFFDEX_LICENSE_DIR");
- if (String.IsNullOrEmpty(licensePath))
- {
- ShowExceptionAndShutDown("AFFDEX_LICENSE_DIR environment variable (Affdex License Folder) is not set");
- }
-
- return licensePath;
- }
-
- public MainWindow()
- {
- InitializeComponent();
- CenterWindowOnScreen();
- }
-
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- InitializeCameraApp();
-
- mEnabledClassifiers = AffdexMe.Settings.Default.Classifiers;
- // Enable/Disable buttons on start
- btnStartCamera.IsEnabled =
- btnResetCamera.IsEnabled =
- btnShowPoints.IsEnabled =
- btnStopCamera.IsEnabled =
- btnExit.IsEnabled = true;
-
- if (AffdexMe.Settings.Default.ShowPoints)
- {
- btnShowPoints_Click(null, null);
- }
-
- if (AffdexMe.Settings.Default.ShowMeasurements)
- {
- btnShowMeasurements_Click(null, null);
- }
-
- this.ContentRendered += MainWindow_ContentRendered;
- }
-
- ///
- /// Once the window las been loaded and the content rendered, the camera
- /// can be initialized and started. This sequence allows for the underlying controls
- /// and watermark logo to be displayed.
- ///
- ///
- ///
- void MainWindow_ContentRendered(object sender, EventArgs e)
- {
- StartCameraProcessing();
- }
-
- ///
- ///
- ///
- private void CenterWindowOnScreen()
- {
- double screenWidth = System.Windows.SystemParameters.PrimaryScreenWidth;
- double screenHeight = System.Windows.SystemParameters.PrimaryScreenHeight;
- double windowWidth = this.Width;
- double windowHeight = this.Height;
- this.Left = (screenWidth / 2) - (windowWidth / 2);
- this.Top = (screenHeight / 2) - (windowHeight / 2);
- }
-
- private BitmapSource ConstructImage(byte[] imageData, int width, int height)
- {
- try
- {
- if (imageData != null && imageData.Length > 0)
- {
- var stride = (width * PixelFormats.Bgr24.BitsPerPixel + 7) / 8;
- var imageSrc = BitmapSource.Create(width, height, 96d, 96d, PixelFormats.Bgr24, null, imageData, stride);
- return imageSrc;
- }
- }
- catch(Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
-
- return null;
- }
-
- private void DisplayMeasurements(Affdex.Face affdexFace)
- {
- //Update measurements
- try
- {
- var result = this.Dispatcher.BeginInvoke((Action)(() =>
- {
- if (mShowMeasurements && (affdexFace != null))
- {
- interocularDistanceDisplay.Text = String.Format("Interocular Distance: {0}", affdexFace.Measurements.InterocularDistance);
- pitchDisplay.Text = String.Format("Pitch Angle: {0}", affdexFace.Measurements.Orientation.Pitch);
- yawDisplay.Text = String.Format("Yaw Angle: {0}", affdexFace.Measurements.Orientation.Yaw);
- rollDisplay.Text = String.Format("Roll Angle: {0}", affdexFace.Measurements.Orientation.Roll);
- }
- }));
- }
- catch(Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private void DisplayFeaturePoints(Affdex.Frame affdexImage, Affdex.Face affdexFace)
- {
- try
- {
- // Plot Face Points
- if ((mShowFacePoints) && (affdexFace != null))
- {
- var result = this.Dispatcher.BeginInvoke((Action)(() =>
- {
- if ((mCameraDetector != null) && (mCameraDetector.isRunning()))
- {
- // Clear the previous points
- canvasFacePoints.Children.Clear();
- canvasFacePoints.Width = imgAffdexFaceDisplay.ActualWidth;
- canvasFacePoints.Height = imgAffdexFaceDisplay.ActualHeight;
-
- mImageXScaleFactor = imgAffdexFaceDisplay.ActualWidth / affdexImage.getWidth();
- mImageYScaleFactor = imgAffdexFaceDisplay.ActualHeight / affdexImage.getHeight();
-
- SolidColorBrush pointBrush = new SolidColorBrush(Colors.Cornsilk);
- var featurePoints = affdexFace.FeaturePoints;
- foreach (var point in featurePoints)
- {
- Ellipse ellipse = new Ellipse()
- {
- Width = 4,
- Height = 4,
- Fill = pointBrush
- };
-
- canvasFacePoints.Children.Add(ellipse);
- Canvas.SetLeft(ellipse, point.X * mImageXScaleFactor);
- Canvas.SetTop(ellipse, point.Y * mImageYScaleFactor);
- }
-
- // Draw Face Bounding Rectangle
- var xMax = featurePoints.Max(r => r.X);
- var xMin = featurePoints.Min(r => r.X);
- var yMax = featurePoints.Max(r => r.Y);
- var yMin = featurePoints.Min(r => r.Y);
-
- // Adjust the x/y min to accomodate all points
- xMin -= 2;
- yMin -= 2;
-
- // Increase the width/height to accomodate the entire max pixel position
- // EllipseWidth + N to make sure max points in the box
- double width = (xMax - xMin + 6) * mImageXScaleFactor;
- double height = (yMax - yMin + 6) * mImageYScaleFactor;
-
- SolidColorBrush boundingBrush = new SolidColorBrush(Colors.Bisque);
- Rectangle boundingBox = new Rectangle()
- {
- Width = width,
- Height = height,
- Stroke = boundingBrush,
- StrokeThickness = 1,
- };
-
- canvasFacePoints.Children.Add(boundingBox);
- Canvas.SetLeft(boundingBox, xMin * mImageXScaleFactor);
- Canvas.SetTop(boundingBox, yMin * mImageYScaleFactor);
-
- mFeaturePointsSkipCount = 0;
- }
- }));
- }
- }
- catch(Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
-
- ///
- /// Since the panel is getting updated from a separate callback thread, access to controls must be
- /// made through BeginInvoke()
- ///
- ///
- private void UpdateClassifierPanel(Affdex.Face face = null)
- {
- try
- {
- bool displayClassifiers = (imgAffdexFaceDisplay.Visibility == Visibility.Hidden)? false : true;
-
- if (mCameraDetector.isRunning() == true)
- {
- // A Face was found - this comes from ImageResults CallBack
- if (face != null)
- {
- int index = 0;
- foreach (String metric in mEnabledClassifiers)
- {
- PropertyInfo info;
- float value = -1;
- if ((info = face.Expressions.GetType().GetProperty(NameMappings(metric))) != null) value = (float)info.GetValue(face.Expressions, null);
- else if ((info = face.Emotions.GetType().GetProperty(NameMappings(metric))) != null) value = (float)info.GetValue(face.Emotions, null);
-
- // Convert classifier value to Integer (percentage) for display purposes
- mAffdexClassifierValues[index] = Convert.ToInt32(Math.Round(value, MidpointRounding.AwayFromZero));
- index++;
-
- }
-
- // Reset the cache count
- mCachedSkipFaceResultsCount = 0;
- mFirstFaceRecognized =
- displayClassifiers = true;
- }
- else if (mFirstFaceRecognized == false)
- {
- displayClassifiers = false;
- }
- else if (++mCachedSkipFaceResultsCount > 10)
- {
- for (int r = 0; r < mAffdexClassifierValues.Count(); r++) mAffdexClassifierValues[r] = 0;
-
- // If we haven't seen a face in the past 30 frames (roughly 30/15fps seconds), don't display the classifiers
- if (mCachedSkipFaceResultsCount >= 30)
- {
- displayClassifiers = false;
- }
- }
-
- var result = this.Dispatcher.BeginInvoke((Action)(() =>
- {
- // Only display the classifiers and FacePoints if we've had a re
- if (displayClassifiers)
- {
- int r = 0;
- foreach (String classifier in mEnabledClassifiers)
- {
- String stackPanelName = String.Format("stackPanel{0}", r);
- TextBlock ClassifierName = (TextBlock) gridClassifierDisplay.FindName(String.Format("{0}Name", stackPanelName));
- TextBlock ClassifierValueBackgroud = (TextBlock)gridClassifierDisplay.FindName(String.Format("{0}ValueBackgroud", stackPanelName));
- TextBlock ClassifierValue = (TextBlock)gridClassifierDisplay.FindName(String.Format("{0}Value", stackPanelName));
- // Update the Classifier Display
- UpdateClassifier(ClassifierName, ClassifierValue, ClassifierValueBackgroud, classifier, r);
- r++;
-
- }
- }
-
- // Update the Image control from the UI thread
- if ((mCameraDetector != null) && (mCameraDetector.isRunning()))
- {
- if (imgAffdexFaceDisplay.Visibility == Visibility.Hidden)
- {
- imgAffdexFaceDisplay.Visibility =
- stackPanelClassifiersBackground.Visibility =
- stackPanelLogoBackground.Visibility = Visibility.Visible;
- }
- stackPanelClassifiers.Visibility = (displayClassifiers)?Visibility.Visible : Visibility.Hidden;
- interocularDistanceDisplay.Visibility = (displayClassifiers && mShowMeasurements) ? Visibility.Visible : Visibility.Hidden;
- pitchDisplay.Visibility = (displayClassifiers && mShowMeasurements) ? Visibility.Visible : Visibility.Hidden;
- yawDisplay.Visibility = (displayClassifiers && mShowMeasurements) ? Visibility.Visible : Visibility.Hidden;
- rollDisplay.Visibility = (displayClassifiers && mShowMeasurements) ? Visibility.Visible : Visibility.Hidden;
- }
- }));
- }
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private String NameMappings(String classifierName)
- {
- if (classifierName == "Frown")
- {
- return "LipCornerDepressor";
- }
- return classifierName;
- }
-
- private void UpdateClassifier(TextBlock txtClassifier, TextBlock txtClassifierValue,
- TextBlock txtClassifierValueBackground, String classifierName, int classifierIndex)
- {
- try
- {
- UpperCaseConverter conv = new UpperCaseConverter();
- txtClassifier.Text = (String)conv.Convert(classifierName, null, null, null);
- int classifierValue = mAffdexClassifierValues[(int)classifierIndex];
-
- // Calculate the width
- double width = ClassiferValueDisplayLength * Math.Abs(classifierValue) / 100;
-
- var backgroundColor = Colors.Transparent;
-
- if (classifierValue > 0)
- {
- backgroundColor = Colors.LimeGreen;
- }
- else if (classifierValue < 0)
- {
- backgroundColor = Colors.Red;
- }
-
- txtClassifierValueBackground.Background = new SolidColorBrush(backgroundColor);
- txtClassifierValueBackground.Width = width;
- txtClassifierValue.Text = String.Format("{0}%", classifierValue);
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private void DisplayImageToOffscreenCanvas(Affdex.Frame image)
- {
- // Update the Image control from the UI thread
- var result = this.Dispatcher.BeginInvoke((Action)(() =>
- {
- try
- {
- mCurrentTimeStamp = image.getTimestamp();
-
- // Update the Image control from the UI thread
- //imgAffdexFaceDisplay.Source = rtb;
- imgAffdexFaceDisplay.Source = ConstructImage(image.getBGRByteArray(), image.getWidth(), image.getHeight());
-
- // Allow N successive OnCapture callbacks before the FacePoint drawing canvas gets cleared.
- if (++mFeaturePointsSkipCount > 4)
- {
- canvasFacePoints.Children.Clear();
- mFeaturePointsSkipCount = 0;
- }
-
- if (image != null)
- {
- image.Dispose();
- }
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }));
- }
-
- ///
- ///
- ///
- private void InitializeCameraApp()
- {
- try
- {
- mCameraDetector = null;
-
- // Initialize Button Click Handlers
- btnStartCamera.Click += btnStartCamera_Click;
- btnStopCamera.Click += btnStopCamera_Click;
- btnShowPoints.Click += btnShowPoints_Click;
- btnShowMeasurements.Click += btnShowMeasurements_Click;
- btnResetCamera.Click += btnResetCamera_Click;
- btnExit.Click += btnExit_Click;
-
- // Disable Stop/Reset buttons
- btnResetCamera.IsEnabled =
- btnStopCamera.IsEnabled = false;
-
- mFeaturePointsSkipCount =
- mCachedSkipFaceResultsCount = 0;
-
- // Initially hide Classifier Panels
- stackPanelLogoBackground.Visibility =
- stackPanelClassifiersBackground.Visibility =
- stackPanelClassifiers.Visibility = Visibility.Hidden;
-
- // Face Points are off by default
- mShowFacePoints = false;
- mShowMeasurements = false;
-
- // Show the logo
- imgAffdexLogoDisplay.Visibility = Visibility.Visible;
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- ///
- ///
- ///
- ///
- ///
- void btnShowPoints_Click(object sender, RoutedEventArgs e)
- {
- try
- {
- Style style;
- String buttonText = String.Empty;
-
- mShowFacePoints = !mShowFacePoints;
- if (mShowFacePoints)
- {
- style = this.FindResource("PointsOnButtonStyle") as Style;
- buttonText = "Hide Points";
- }
- else
- {
- style = this.FindResource("CustomButtonStyle") as Style;
- buttonText = "Show Points";
- }
-
- btnShowPoints.Style = style;
- btnShowPoints.Content = buttonText;
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- void btnShowMeasurements_Click(object sender, RoutedEventArgs e)
- {
- try
- {
- Style style;
- String buttonText = String.Empty;
-
- mShowMeasurements = !mShowMeasurements;
- if (mShowMeasurements)
- {
- style = this.FindResource("PointsOnButtonStyle") as Style;
- buttonText = "Hide Measurements";
- interocularDistanceDisplay.Visibility = Visibility.Visible;
- pitchDisplay.Visibility = Visibility.Visible;
- yawDisplay.Visibility = Visibility.Visible;
- rollDisplay.Visibility = Visibility.Visible;
- }
- else
- {
- style = this.FindResource("CustomButtonStyle") as Style;
- buttonText = "Show Measurements";
- interocularDistanceDisplay.Visibility = Visibility.Hidden;
- pitchDisplay.Visibility = Visibility.Hidden;
- yawDisplay.Visibility = Visibility.Hidden;
- rollDisplay.Visibility = Visibility.Hidden;
- }
-
- btnShowMeasurements.Style = style;
- btnShowMeasurements.Content = buttonText;
-
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private void btnResetCamera_Click(object sender, RoutedEventArgs e)
- {
- ResetCameraProcessing();
- }
-
- void btnStartCamera_Click(object sender, RoutedEventArgs e)
- {
- try
- {
- StartCameraProcessing();
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- void btnStopCamera_Click(object sender, RoutedEventArgs e)
- {
- StopCameraProcessing();
- ResetDisplayArea();
- }
-
- void btnExit_Click(object sender, RoutedEventArgs e)
- {
- SaveSettings();
- Application.Current.Shutdown();
- }
-
- void SaveSettings()
- {
- AffdexMe.Settings.Default.ShowPoints = mShowFacePoints;
- AffdexMe.Settings.Default.ShowMeasurements = mShowMeasurements;
- AffdexMe.Settings.Default.Classifiers = mEnabledClassifiers;
- AffdexMe.Settings.Default.Save();
- }
-
- private void ClearClassifiersAndPointsDisplay()
- {
- // Hide AffdexFace Image
- imgAffdexFaceDisplay.Visibility =
- stackPanelLogoBackground.Visibility =
- stackPanelClassifiersBackground.Visibility = Visibility.Hidden;
-
- //Clean measurements
- interocularDistanceDisplay.Text = String.Format("Interocular Distance: {0}", 0);
- pitchDisplay.Text = String.Format("Pitch Angle: {0}", 0);
- yawDisplay.Text = String.Format("Yaw Angle: {0}", 0);
- rollDisplay.Text = String.Format("Roll Angle: {0}", 0);
-
- // Hide the Classifier Panel
- stackPanelClassifiers.Visibility = Visibility.Hidden;
-
- // Clear any Face Points
- canvasFacePoints.Children.Clear();
- }
-
- private void ResetDisplayArea()
- {
- try
- {
- ClearClassifiersAndPointsDisplay();
-
- // Show the logo
- imgAffdexLogoDisplay.Visibility = Visibility.Visible;
- }
- catch (Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private void TurnOnClassifiers()
- {
- mCameraDetector.setDetectAllEmotions(false);
- mCameraDetector.setDetectAllExpressions(false);
- foreach (String metric in mEnabledClassifiers)
- {
- MethodInfo setMethodInfo = mCameraDetector.GetType().GetMethod(String.Format("setDetect{0}", NameMappings(metric)));
- setMethodInfo.Invoke(mCameraDetector, new object[] { true });
- }
- }
-
- private void StartCameraProcessing()
- {
- try
- {
- btnStartCamera.IsEnabled = false;
- btnResetCamera.IsEnabled =
- btnShowPoints.IsEnabled =
- btnStopCamera.IsEnabled =
- btnExit.IsEnabled = true;
-
- // Instantiate CameraDetector using default camera ID
- mCameraDetector = new Affdex.CameraDetector();
- mCameraDetector.setClassifierPath(GetClassifierDataFolder());
-
- // Set the Classifiers that we are interested in tracking
- TurnOnClassifiers();
-
- // Initialize Classifier cache
- for (int index = 0; index < mAffdexClassifierValues.Count(); index++)
- {
- mAffdexClassifierValues[index] = 0;
- }
-
- mCachedSkipFaceResultsCount = 0;
- mCameraDetector.setImageListener(this);
- mCameraDetector.setProcessStatusListener(this);
-
-
-
- // Set the License Path
- mCameraDetector.setLicensePath(GetAffdexLicense());
-
- mStartTime = DateTime.Now;
- mCameraDetector.start();
-
- // Delay loading the Classifier panel until 1st face
- mFirstFaceRecognized = false;
-
- // Hide the logo
- imgAffdexLogoDisplay.Visibility = Visibility.Hidden;
- }
- catch(Affdex.AffdexException ex)
- {
- if (!String.IsNullOrEmpty(ex.Message))
- {
- // If this is a camera failure, then reset the application to allow the user to turn on/enable camera
- if (ex.Message.Equals("Unable to open webcam."))
- {
- MessageBoxResult result = MessageBox.Show(ex.Message,
- "AffdexMe Error",
- MessageBoxButton.OK,
- MessageBoxImage.Error);
- StopCameraProcessing();
- return;
- }
- }
-
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- catch(Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private void ResetCameraProcessing()
- {
- try
- {
- mCameraDetector.reset();
- }
- catch(Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private void StopCameraProcessing()
- {
- try
- {
- if ((mCameraDetector != null) && (mCameraDetector.isRunning()))
- {
- mCameraDetector.stop();
- mCameraDetector.Dispose();
- mCameraDetector = null;
- }
-
- // Enable/Disable buttons on start
- btnStartCamera.IsEnabled = true;
- btnResetCamera.IsEnabled =
- btnStopCamera.IsEnabled = false;
-
- }
- catch(Exception ex)
- {
- String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
- ShowExceptionAndShutDown(message);
- }
- }
-
- private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- StopCameraProcessing();
- SaveSettings();
- Application.Current.Shutdown();
- }
-
- private void btnChooseWin_Click(object sender, RoutedEventArgs e)
- {
- Boolean wasRunning = false;
- if ((mCameraDetector != null) && (mCameraDetector.isRunning()))
- {
- StopCameraProcessing();
- ResetDisplayArea();
- wasRunning = true;
- }
-
- MetricSelectionUI w = new MetricSelectionUI(mEnabledClassifiers);
- w.ShowDialog();
- mEnabledClassifiers = w.Classifiers;
- if (wasRunning)
- {
- StartCameraProcessing();
- }
- }
-
- }
-}
diff --git a/AffdexMe/MetricSelectionUI.xaml b/AffdexMe/MetricSelectionUI.xaml
deleted file mode 100644
index 2e3ce1f..0000000
--- a/AffdexMe/MetricSelectionUI.xaml
+++ /dev/null
@@ -1,312 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/AffdexMe/MetricSelectionUI.xaml.cs b/AffdexMe/MetricSelectionUI.xaml.cs
deleted file mode 100644
index 4cdc078..0000000
--- a/AffdexMe/MetricSelectionUI.xaml.cs
+++ /dev/null
@@ -1,200 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Collections.Specialized;
-using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-using WpfAnimatedGif;
-
-namespace AffdexMe
-{
- ///
- /// Interaction logic for Window1.xaml
- ///
- public partial class MetricSelectionUI : Window
- {
- const String SELECTMSG = "Please select 6 Emotions or Expressions to track.";
- const String ACTIVEMSG = "{0} Metrics chosen, please select {1} more.";
- const String DONEMSG = "{0} Metrics chosen.";
- const String DESELECTMSG = "Reached max number of metrics selected.";
-
- public MetricSelectionUI(StringCollection enabled_classifiers)
- {
- InitializeComponent();
- CenterWindowOnScreen();
- Classifiers = enabled_classifiers;
- foreach (String classifier in enabled_classifiers)
- {
- Border border = getBorder(classifier);
- border.BorderBrush = Brushes.Green;
- }
- }
-
- private void CenterWindowOnScreen()
- {
- double screenWidth = System.Windows.SystemParameters.PrimaryScreenWidth;
- double screenHeight = System.Windows.SystemParameters.PrimaryScreenHeight;
- double windowWidth = this.Width;
- double windowHeight = this.Height;
- this.Left = (screenWidth / 2) - (windowWidth / 2);
- this.Top = (screenHeight / 2) - (windowHeight / 2);
- }
-
- private void StackPanel_MouseEnter(object sender, MouseEventArgs e)
- {
- Border border = (Border)((StackPanel)sender).Parent;
- if (!isStackPanelSelected(border))
- border.BorderBrush = Brushes.Coral;
- var image = ((StackPanel)sender).Children.OfType().FirstOrDefault();
- NameToResourceConverter conv = new NameToResourceConverter();
- var gifUri = conv.Convert(((StackPanel)sender).Name, null, "gif", null);
-
- var img = new BitmapImage();
- img.BeginInit();
- img.UriSource = (Uri) gifUri;
- img.EndInit();
- ImageBehavior.SetAnimatedSource(image, img);
- playGif(image);
- }
-
- private void StackPanel_MouseLeave(object sender, MouseEventArgs e)
- {
- Border border = (Border)((StackPanel)sender).Parent;
- var image = ((StackPanel)sender).Children.OfType().FirstOrDefault();
- NameToResourceConverter conv = new NameToResourceConverter();
- stopGif(image);
- var img = new BitmapImage();
- img.BeginInit();
- img.UriSource = (Uri)conv.Convert(((StackPanel)sender).Name, null, "jpg", null);
- img.EndInit();
- ImageBehavior.SetAnimatedSource(image, img);
-
- if (!isStackPanelSelected(border))
- border.BorderBrush = Brushes.White;
-
- int classifersCount = Classifiers.Count;
- if (classifersCount == 6) txtBlkInfo.Text = String.Format(DONEMSG, classifersCount);
- else txtBlkInfo.Text = String.Format(ACTIVEMSG, classifersCount, 6 - classifersCount);
- }
-
- private void stopGif(Image image)
- {
- var control = ImageBehavior.GetAnimationController(image);
- if (control != null)
- {
- control.Pause();
- control.GotoFrame(control.FrameCount - 1);
- }
- }
-
- private void playGif(Image image)
- {
- var control = ImageBehavior.GetAnimationController(image);
- control.GotoFrame(0);
- control.Play();
- }
-
- private void StackPanel_MouseDown(object sender, MouseButtonEventArgs e)
- {
- Border border = (Border)((StackPanel)sender).Parent;
- if (isStackPanelSelected(border))
- {
- border.BorderBrush = Brushes.White;
- Classifiers.Remove(((StackPanel)sender).Name);
- }
- else {
- int classifersCount = Classifiers.Count;
- if ( classifersCount < 6)
- {
- border.BorderBrush = Brushes.Green;
- Classifiers.Add(((StackPanel)sender).Name);
- if (classifersCount + 1 == 6) txtBlkInfo.Text = String.Format(DONEMSG, classifersCount + 1);
- else txtBlkInfo.Text = String.Format(ACTIVEMSG, classifersCount+1, 6 - classifersCount);
- }
- else
- {
- border.BorderBrush = Brushes.Red;
- txtBlkInfo.Text = DESELECTMSG;
- }
-
- }
-
- }
-
- private Border getBorder(String name)
- {
- Border border = null;
- foreach (StackPanel panel in theGrid.Children.OfType())
- {
- var tempBorder = panel.Children.OfType().FirstOrDefault();
- var stackPanel = (StackPanel)tempBorder.Child;
- if (stackPanel.Name == name) border = tempBorder;
- }
- return border;
- }
-
- private bool isStackPanelSelected(Border border)
- {
- return (border.BorderBrush == Brushes.Green);
- }
-
- public StringCollection Classifiers {get;set;}
-
- public String ActiveClassifierList
- {
- get
- {
- String classifiers = "";
- foreach(String key in Classifiers)
- classifiers += String.Format("{0},", key);
- return String.Format("{0} active classifiers: {1}", Classifiers.Count, classifiers);
- }
- }
-
- private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- int selectedClassifiersCount = Classifiers.Count;
- if ( selectedClassifiersCount < 6)
- {
- int missing = 6 - selectedClassifiersCount;
- List panels = theGrid.Children.OfType().ToList();
- int index = 0;
- while (selectedClassifiersCount < 6)
- {
- var tempBorder = panels[index].Children.OfType().FirstOrDefault();
- var stackPanel = (StackPanel)tempBorder.Child;
- Classifiers.Add(stackPanel.Name);
- index++;
- selectedClassifiersCount++;
- }
- }
-
- }
-
- private void btnClearAll_Click(object sender, RoutedEventArgs e)
- {
- foreach (String classifier in Classifiers)
- {
- Border border = getBorder(classifier);
- border.BorderBrush = Brushes.White;
- txtBlkInfo.Text = SELECTMSG;
- }
- Classifiers.Clear();
- }
-
- private void btnOK_Click(object sender, RoutedEventArgs e)
- {
- this.Close();
- }
- }
-}
diff --git a/AffdexMe/NameToResourceConverter.cs b/AffdexMe/NameToResourceConverter.cs
deleted file mode 100644
index ce090cb..0000000
--- a/AffdexMe/NameToResourceConverter.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using AffdexMe.Properties;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using System.Windows.Media.Imaging;
-
-namespace AffdexMe
-{
- public class NameToResourceConverter : System.Windows.Data.IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- String classifier_name = SplitCamelCase(((String)value));
- classifier_name = classifier_name.ToLower().Replace(" ", "_");
- return new Uri("pack://application:,,,/" + classifier_name + "." +((String) parameter));
- //return new Uri(String.Format("pack://application:,,,/{0}.jpg", ((String)value).ToLower()));
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
-
- public string SplitCamelCase(String str)
- {
- return Regex.Replace(
- Regex.Replace(
- str,
- @"(\P{Ll})(\P{Ll}\p{Ll})",
- "$1 $2"
- ),
- @"(\p{Ll})(\P{Ll})",
- "$1 $2"
- );
- }
- }
-
-}
diff --git a/AffdexMe/Properties/AssemblyInfo.cs b/AffdexMe/Properties/AssemblyInfo.cs
deleted file mode 100644
index 9a16c40..0000000
--- a/AffdexMe/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("AffdexMe")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("AffdexMe")]
-[assembly: AssemblyCopyright("Copyright © 2015")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//CultureYouAreCodingWith in your .csproj file
-//inside a . For example, if you are using US english
-//in your source files, set the to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/AffdexMe/Properties/Resources.Designer.cs b/AffdexMe/Properties/Resources.Designer.cs
deleted file mode 100644
index 766f7c6..0000000
--- a/AffdexMe/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34209
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace AffdexMe.Properties
-{
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AffdexMe.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
- return resourceCulture;
- }
- set
- {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/AffdexMe/Properties/Resources.resx b/AffdexMe/Properties/Resources.resx
deleted file mode 100644
index af7dbeb..0000000
--- a/AffdexMe/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/AffdexMe/Properties/Settings.Designer.cs b/AffdexMe/Properties/Settings.Designer.cs
deleted file mode 100644
index 97e5fa4..0000000
--- a/AffdexMe/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.18444
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace AffdexMe {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute(@"
-
- Joy
- Sadness
- Anger
- Disgust
- Surprise
- Fear
-")]
- public global::System.Collections.Specialized.StringCollection Classifiers {
- get {
- return ((global::System.Collections.Specialized.StringCollection)(this["Classifiers"]));
- }
- set {
- this["Classifiers"] = value;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("False")]
- public bool ShowPoints {
- get {
- return ((bool)(this["ShowPoints"]));
- }
- set {
- this["ShowPoints"] = value;
- }
- }
-
- [global::System.Configuration.UserScopedSettingAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("False")]
- public bool ShowMeasurements {
- get {
- return ((bool)(this["ShowMeasurements"]));
- }
- set {
- this["ShowMeasurements"] = value;
- }
- }
- }
-}
diff --git a/AffdexMe/Properties/Settings.settings b/AffdexMe/Properties/Settings.settings
deleted file mode 100644
index e3c04fb..0000000
--- a/AffdexMe/Properties/Settings.settings
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
- <?xml version="1.0" encoding="utf-16"?>
-<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <string>Joy</string>
- <string>Sadness</string>
- <string>Anger</string>
- <string>Disgust</string>
- <string>Surprise</string>
- <string>Fear</string>
-</ArrayOfString>
-
-
- False
-
-
- False
-
-
-
\ No newline at end of file
diff --git a/AffdexMe/README.md b/AffdexMe/README.md
deleted file mode 100644
index f300403..0000000
--- a/AffdexMe/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# AffdexMe
-
-**Affdex SDK** is the culmination of years of scientific research into emotion detection, validated across thousands of tests worldwide on PC platforms, and now made available as a software development kit for Windows. Affdex SDK turns your ordinary app into an extraordinary app by emotion-enabling it to respond in real-time to user emotions.
-
-**AffdexMe** is a windows application that demonstrates the use of the Affdex SDK for Windows. It uses the camera on your Windows PC to view, process and analyze live video of your face. Start the app and you will see your own face on the screen, and metrics describing your expressions.
-
-#### This app includes the following command buttons:
-
-* Start - Starts the camera processing.
-* Reset - Resets the context of the video frames.
-* ShowPoints/HidePoints - toggles the display of facial feature points, which Affdex uses to detect expressions.
-* Stop - Stops the camera processing.
-* Exit - exits the application.
-
-This application runs on Windows 7.0, 8.0 and 8.1
-
-#### To use this project, you will need:
-
-* Visual Studio 2013
-
-* To download and install the Windows SDK (32-bit) from Affectiva By default, the Windows SDK is installed to the following location: C:\Program Files (x86)\Affectiva\Affdex SDK
-
- If you have installed the SDK to a location other than the default, you will have to modify the following String constants located in the MainWindow.xaml.cs file:
-
- * **AFFDEX_DATA_PATH** - the classifier data path
- * **AFFDEX_LICENSE_FILE** - the full path to the Affdex license file (including the license file name)
-* The AffdexMe app can be built and run in either debug or release mode.
-
- **To build and run in Debug Mode**
-
- * Through Visual Studio select the "Debug" configuration.
-
- * Add the following to your system path: C:\Program Files (x86)\Affectiva\Affdex SDK\bin\debug
-
- * Clean, rebuild and then run the project.
-
- **To build and run in Release Mode:**
-
- * Through Visual Studio select the "Debug" configuration.
-
- * Add the following to your system path: C:\Program Files (x86)\Affectiva\Affdex SDK\bin\release
-
- * Clean, rebuild and then run the project.
-
- **It is important** not to mix Release and Debug versions of the DLLs. If you run into issues when switching between the two different build types, check to make sure that your system path points to the matching build type.
-
-* In order to modify the system path, from the Control Panel, navigiate to the following: **Control Panel -> Advanced System Settings -> Environment Variables -> System Variables -> Path**
-
-* Build the project
-
-* Run the app through Visual Studio
-
-Copyright (c) 2015 Affectiva. All rights reserved.
diff --git a/AffdexMe/Resources/AffdexMe_Logo.ico b/AffdexMe/Resources/AffdexMe_Logo.ico
deleted file mode 100644
index c8d8a83..0000000
Binary files a/AffdexMe/Resources/AffdexMe_Logo.ico and /dev/null differ
diff --git a/AffdexMe/Resources/AffectivaLogo1.png b/AffdexMe/Resources/AffectivaLogo1.png
deleted file mode 100644
index 831ef03..0000000
Binary files a/AffdexMe/Resources/AffectivaLogo1.png and /dev/null differ
diff --git a/AffdexMe/UpperCaseConverter.cs b/AffdexMe/UpperCaseConverter.cs
deleted file mode 100644
index f4d9047..0000000
--- a/AffdexMe/UpperCaseConverter.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-
-namespace AffdexMe
-{
- public class UpperCaseConverter : System.Windows.Data.IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return SplitCamelCase(((String)value)).ToUpper();
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- public string SplitCamelCase(String str)
- {
- return Regex.Replace(
- Regex.Replace(
- str,
- @"(\P{Ll})(\P{Ll}\p{Ll})",
- "$1 $2"
- ),
- @"(\p{Ll})(\P{Ll})",
- "$1 $2"
- );
- }
- }
-}
diff --git a/AffdexMe/anger.gif b/AffdexMe/anger.gif
deleted file mode 100644
index 49d6fc9..0000000
Binary files a/AffdexMe/anger.gif and /dev/null differ
diff --git a/AffdexMe/anger.jpg b/AffdexMe/anger.jpg
deleted file mode 100644
index 5787d92..0000000
Binary files a/AffdexMe/anger.jpg and /dev/null differ
diff --git a/AffdexMe/attention.gif b/AffdexMe/attention.gif
deleted file mode 100644
index 4f927b0..0000000
Binary files a/AffdexMe/attention.gif and /dev/null differ
diff --git a/AffdexMe/attention.jpg b/AffdexMe/attention.jpg
deleted file mode 100644
index 88f63d2..0000000
Binary files a/AffdexMe/attention.jpg and /dev/null differ
diff --git a/AffdexMe/brow_furrow.gif b/AffdexMe/brow_furrow.gif
deleted file mode 100644
index ae6e5e0..0000000
Binary files a/AffdexMe/brow_furrow.gif and /dev/null differ
diff --git a/AffdexMe/brow_furrow.jpg b/AffdexMe/brow_furrow.jpg
deleted file mode 100644
index 1dc7ad6..0000000
Binary files a/AffdexMe/brow_furrow.jpg and /dev/null differ
diff --git a/AffdexMe/brow_raise.gif b/AffdexMe/brow_raise.gif
deleted file mode 100644
index 5a0dbd5..0000000
Binary files a/AffdexMe/brow_raise.gif and /dev/null differ
diff --git a/AffdexMe/brow_raise.jpg b/AffdexMe/brow_raise.jpg
deleted file mode 100644
index 935e9ff..0000000
Binary files a/AffdexMe/brow_raise.jpg and /dev/null differ
diff --git a/AffdexMe/chin_raise.gif b/AffdexMe/chin_raise.gif
deleted file mode 100644
index a731170..0000000
Binary files a/AffdexMe/chin_raise.gif and /dev/null differ
diff --git a/AffdexMe/chin_raise.jpg b/AffdexMe/chin_raise.jpg
deleted file mode 100644
index 6ef3dbd..0000000
Binary files a/AffdexMe/chin_raise.jpg and /dev/null differ
diff --git a/AffdexMe/contempt.gif b/AffdexMe/contempt.gif
deleted file mode 100644
index 873adae..0000000
Binary files a/AffdexMe/contempt.gif and /dev/null differ
diff --git a/AffdexMe/contempt.jpg b/AffdexMe/contempt.jpg
deleted file mode 100644
index 872e7a7..0000000
Binary files a/AffdexMe/contempt.jpg and /dev/null differ
diff --git a/AffdexMe/disgust.gif b/AffdexMe/disgust.gif
deleted file mode 100644
index 19f5da3..0000000
Binary files a/AffdexMe/disgust.gif and /dev/null differ
diff --git a/AffdexMe/disgust.jpg b/AffdexMe/disgust.jpg
deleted file mode 100644
index 9a0610f..0000000
Binary files a/AffdexMe/disgust.jpg and /dev/null differ
diff --git a/AffdexMe/engagement.gif b/AffdexMe/engagement.gif
deleted file mode 100644
index 9e264ed..0000000
Binary files a/AffdexMe/engagement.gif and /dev/null differ
diff --git a/AffdexMe/engagement.jpg b/AffdexMe/engagement.jpg
deleted file mode 100644
index 6001e0e..0000000
Binary files a/AffdexMe/engagement.jpg and /dev/null differ
diff --git a/AffdexMe/eye_closure.gif b/AffdexMe/eye_closure.gif
deleted file mode 100644
index 12555ef..0000000
Binary files a/AffdexMe/eye_closure.gif and /dev/null differ
diff --git a/AffdexMe/eye_closure.jpg b/AffdexMe/eye_closure.jpg
deleted file mode 100644
index ade5aa6..0000000
Binary files a/AffdexMe/eye_closure.jpg and /dev/null differ
diff --git a/AffdexMe/fear.gif b/AffdexMe/fear.gif
deleted file mode 100644
index 569ce17..0000000
Binary files a/AffdexMe/fear.gif and /dev/null differ
diff --git a/AffdexMe/fear.jpg b/AffdexMe/fear.jpg
deleted file mode 100644
index f97b009..0000000
Binary files a/AffdexMe/fear.jpg and /dev/null differ
diff --git a/AffdexMe/frown.gif b/AffdexMe/frown.gif
deleted file mode 100644
index 8c747b6..0000000
Binary files a/AffdexMe/frown.gif and /dev/null differ
diff --git a/AffdexMe/frown.jpg b/AffdexMe/frown.jpg
deleted file mode 100644
index 4e7a934..0000000
Binary files a/AffdexMe/frown.jpg and /dev/null differ
diff --git a/AffdexMe/inner_brow_raise.gif b/AffdexMe/inner_brow_raise.gif
deleted file mode 100644
index ebd6627..0000000
Binary files a/AffdexMe/inner_brow_raise.gif and /dev/null differ
diff --git a/AffdexMe/inner_brow_raise.jpg b/AffdexMe/inner_brow_raise.jpg
deleted file mode 100644
index ef0b904..0000000
Binary files a/AffdexMe/inner_brow_raise.jpg and /dev/null differ
diff --git a/AffdexMe/joy.gif b/AffdexMe/joy.gif
deleted file mode 100644
index fdd9be3..0000000
Binary files a/AffdexMe/joy.gif and /dev/null differ
diff --git a/AffdexMe/joy.jpg b/AffdexMe/joy.jpg
deleted file mode 100644
index d08bf33..0000000
Binary files a/AffdexMe/joy.jpg and /dev/null differ
diff --git a/AffdexMe/lip_press.gif b/AffdexMe/lip_press.gif
deleted file mode 100644
index 9981010..0000000
Binary files a/AffdexMe/lip_press.gif and /dev/null differ
diff --git a/AffdexMe/lip_press.jpg b/AffdexMe/lip_press.jpg
deleted file mode 100644
index 442ce43..0000000
Binary files a/AffdexMe/lip_press.jpg and /dev/null differ
diff --git a/AffdexMe/lip_pucker.gif b/AffdexMe/lip_pucker.gif
deleted file mode 100644
index e867d1b..0000000
Binary files a/AffdexMe/lip_pucker.gif and /dev/null differ
diff --git a/AffdexMe/lip_pucker.jpg b/AffdexMe/lip_pucker.jpg
deleted file mode 100644
index 2958181..0000000
Binary files a/AffdexMe/lip_pucker.jpg and /dev/null differ
diff --git a/AffdexMe/lip_suck.gif b/AffdexMe/lip_suck.gif
deleted file mode 100644
index 9d1430e..0000000
Binary files a/AffdexMe/lip_suck.gif and /dev/null differ
diff --git a/AffdexMe/lip_suck.jpg b/AffdexMe/lip_suck.jpg
deleted file mode 100644
index 777c573..0000000
Binary files a/AffdexMe/lip_suck.jpg and /dev/null differ
diff --git a/AffdexMe/mouth_open.gif b/AffdexMe/mouth_open.gif
deleted file mode 100644
index fdc8627..0000000
Binary files a/AffdexMe/mouth_open.gif and /dev/null differ
diff --git a/AffdexMe/mouth_open.jpg b/AffdexMe/mouth_open.jpg
deleted file mode 100644
index b8c983b..0000000
Binary files a/AffdexMe/mouth_open.jpg and /dev/null differ
diff --git a/AffdexMe/negative_valence.gif b/AffdexMe/negative_valence.gif
deleted file mode 100644
index dbc7bf4..0000000
Binary files a/AffdexMe/negative_valence.gif and /dev/null differ
diff --git a/AffdexMe/negative_valence.jpg b/AffdexMe/negative_valence.jpg
deleted file mode 100644
index a959ef5..0000000
Binary files a/AffdexMe/negative_valence.jpg and /dev/null differ
diff --git a/AffdexMe/nose_wrinkle.gif b/AffdexMe/nose_wrinkle.gif
deleted file mode 100644
index 7a10fe2..0000000
Binary files a/AffdexMe/nose_wrinkle.gif and /dev/null differ
diff --git a/AffdexMe/nose_wrinkle.jpg b/AffdexMe/nose_wrinkle.jpg
deleted file mode 100644
index 88a6a9b..0000000
Binary files a/AffdexMe/nose_wrinkle.jpg and /dev/null differ
diff --git a/AffdexMe/obj/Release/AffdexMe_Content.g.i.cs b/AffdexMe/obj/Release/AffdexMe_Content.g.i.cs
deleted file mode 100644
index 5f65857..0000000
--- a/AffdexMe/obj/Release/AffdexMe_Content.g.i.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("affdex-native.dll")]
-
-
diff --git a/AffdexMe/obj/Release/GeneratedInternalTypeHelper.g.cs b/AffdexMe/obj/Release/GeneratedInternalTypeHelper.g.cs
deleted file mode 100644
index bb0e440..0000000
--- a/AffdexMe/obj/Release/GeneratedInternalTypeHelper.g.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace XamlGeneratedNamespace {
-
-
- ///
- /// GeneratedInternalTypeHelper
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
-
- ///
- /// CreateInstance
- ///
- protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
- return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
- | (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
- }
-
- ///
- /// GetPropertyValue
- ///
- protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
- return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
- }
-
- ///
- /// SetPropertyValue
- ///
- protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
- propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
- }
-
- ///
- /// CreateDelegate
- ///
- protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
- return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
- | (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
- delegateType,
- handler}, null)));
- }
-
- ///
- /// AddEventHandler
- ///
- protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
- eventInfo.AddEventHandler(target, handler);
- }
- }
-}
-
diff --git a/AffdexMe/obj/Release/GeneratedInternalTypeHelper.g.i.cs b/AffdexMe/obj/Release/GeneratedInternalTypeHelper.g.i.cs
deleted file mode 100644
index bb0e440..0000000
--- a/AffdexMe/obj/Release/GeneratedInternalTypeHelper.g.i.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace XamlGeneratedNamespace {
-
-
- ///
- /// GeneratedInternalTypeHelper
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
-
- ///
- /// CreateInstance
- ///
- protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
- return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
- | (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
- }
-
- ///
- /// GetPropertyValue
- ///
- protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
- return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
- }
-
- ///
- /// SetPropertyValue
- ///
- protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
- propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
- }
-
- ///
- /// CreateDelegate
- ///
- protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
- return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
- | (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
- delegateType,
- handler}, null)));
- }
-
- ///
- /// AddEventHandler
- ///
- protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
- eventInfo.AddEventHandler(target, handler);
- }
- }
-}
-
diff --git a/AffdexMe/obj/Release/MainWindow.g.cs b/AffdexMe/obj/Release/MainWindow.g.cs
deleted file mode 100644
index 4104055..0000000
--- a/AffdexMe/obj/Release/MainWindow.g.cs
+++ /dev/null
@@ -1,625 +0,0 @@
-#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B279F512EBDA81A09036AAE4C1816AE2"
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-
-
-namespace AffdexMe {
-
-
- ///
- /// MainWindow
- ///
- public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
-
-
- #line 123 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridMainDisplay;
-
- #line default
- #line hidden
-
-
- #line 125 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridContentDisplay;
-
- #line default
- #line hidden
-
-
- #line 128 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelImage;
-
- #line default
- #line hidden
-
-
- #line 130 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridAffdexFaceDisplay;
-
- #line default
- #line hidden
-
-
- #line 131 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Image imgAffdexFaceDisplay;
-
- #line default
- #line hidden
-
-
- #line 133 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Image imgAffdexLogoDisplay;
-
- #line default
- #line hidden
-
-
- #line 136 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Canvas canvasFacePoints;
-
- #line default
- #line hidden
-
-
- #line 137 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock interocularDistanceDisplay;
-
- #line default
- #line hidden
-
-
- #line 138 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock pitchDisplay;
-
- #line default
- #line hidden
-
-
- #line 139 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock yawDisplay;
-
- #line default
- #line hidden
-
-
- #line 140 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock rollDisplay;
-
- #line default
- #line hidden
-
-
- #line 145 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelClassifiersBackground;
-
- #line default
- #line hidden
-
-
- #line 148 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelClassifiers;
-
- #line default
- #line hidden
-
-
- #line 150 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridClassifierDisplay;
-
- #line default
- #line hidden
-
-
- #line 165 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel0;
-
- #line default
- #line hidden
-
-
- #line 166 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel0Name;
-
- #line default
- #line hidden
-
-
- #line 168 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel0ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 169 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel0Value;
-
- #line default
- #line hidden
-
-
- #line 173 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel1;
-
- #line default
- #line hidden
-
-
- #line 174 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel1Name;
-
- #line default
- #line hidden
-
-
- #line 176 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel1ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 177 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel1Value;
-
- #line default
- #line hidden
-
-
- #line 181 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel2;
-
- #line default
- #line hidden
-
-
- #line 182 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel2Name;
-
- #line default
- #line hidden
-
-
- #line 184 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel2ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 185 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel2Value;
-
- #line default
- #line hidden
-
-
- #line 189 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel3;
-
- #line default
- #line hidden
-
-
- #line 190 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel3Name;
-
- #line default
- #line hidden
-
-
- #line 192 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel3ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 193 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel3Value;
-
- #line default
- #line hidden
-
-
- #line 197 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel4;
-
- #line default
- #line hidden
-
-
- #line 198 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel4Name;
-
- #line default
- #line hidden
-
-
- #line 200 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel4ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 201 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel4Value;
-
- #line default
- #line hidden
-
-
- #line 205 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel5;
-
- #line default
- #line hidden
-
-
- #line 206 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel5Name;
-
- #line default
- #line hidden
-
-
- #line 208 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel5ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 209 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel5Value;
-
- #line default
- #line hidden
-
-
- #line 215 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelLogoBackground;
-
- #line default
- #line hidden
-
-
- #line 216 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridLogoBackground;
-
- #line default
- #line hidden
-
-
- #line 229 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Image imgAffdexLogoBackground;
-
- #line default
- #line hidden
-
-
- #line 241 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnStartCamera;
-
- #line default
- #line hidden
-
-
- #line 242 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnResetCamera;
-
- #line default
- #line hidden
-
-
- #line 243 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnShowPoints;
-
- #line default
- #line hidden
-
-
- #line 244 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnShowMeasurements;
-
- #line default
- #line hidden
-
-
- #line 245 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnChooseWin;
-
- #line default
- #line hidden
-
-
- #line 246 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnStopCamera;
-
- #line default
- #line hidden
-
-
- #line 247 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnExit;
-
- #line default
- #line hidden
-
- private bool _contentLoaded;
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- public void InitializeComponent() {
- if (_contentLoaded) {
- return;
- }
- _contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/AffdexMe;component/mainwindow.xaml", System.UriKind.Relative);
-
- #line 1 "..\..\MainWindow.xaml"
- System.Windows.Application.LoadComponent(this, resourceLocater);
-
- #line default
- #line hidden
- }
-
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
- switch (connectionId)
- {
- case 1:
-
- #line 9 "..\..\MainWindow.xaml"
- ((AffdexMe.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
-
- #line default
- #line hidden
-
- #line 10 "..\..\MainWindow.xaml"
- ((AffdexMe.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
-
- #line default
- #line hidden
- return;
- case 2:
- this.gridMainDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 3:
- this.gridContentDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 4:
- this.stackPanelImage = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 5:
- this.gridAffdexFaceDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 6:
- this.imgAffdexFaceDisplay = ((System.Windows.Controls.Image)(target));
- return;
- case 7:
- this.imgAffdexLogoDisplay = ((System.Windows.Controls.Image)(target));
- return;
- case 8:
- this.canvasFacePoints = ((System.Windows.Controls.Canvas)(target));
- return;
- case 9:
- this.interocularDistanceDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 10:
- this.pitchDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 11:
- this.yawDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 12:
- this.rollDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 13:
- this.stackPanelClassifiersBackground = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 14:
- this.stackPanelClassifiers = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 15:
- this.gridClassifierDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 16:
- this.stackPanel0 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 17:
- this.stackPanel0Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 18:
- this.stackPanel0ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 19:
- this.stackPanel0Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 20:
- this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 21:
- this.stackPanel1Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 22:
- this.stackPanel1ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 23:
- this.stackPanel1Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 24:
- this.stackPanel2 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 25:
- this.stackPanel2Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 26:
- this.stackPanel2ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 27:
- this.stackPanel2Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 28:
- this.stackPanel3 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 29:
- this.stackPanel3Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 30:
- this.stackPanel3ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 31:
- this.stackPanel3Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 32:
- this.stackPanel4 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 33:
- this.stackPanel4Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 34:
- this.stackPanel4ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 35:
- this.stackPanel4Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 36:
- this.stackPanel5 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 37:
- this.stackPanel5Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 38:
- this.stackPanel5ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 39:
- this.stackPanel5Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 40:
- this.stackPanelLogoBackground = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 41:
- this.gridLogoBackground = ((System.Windows.Controls.Grid)(target));
- return;
- case 42:
- this.imgAffdexLogoBackground = ((System.Windows.Controls.Image)(target));
- return;
- case 43:
- this.btnStartCamera = ((System.Windows.Controls.Button)(target));
- return;
- case 44:
- this.btnResetCamera = ((System.Windows.Controls.Button)(target));
- return;
- case 45:
- this.btnShowPoints = ((System.Windows.Controls.Button)(target));
- return;
- case 46:
- this.btnShowMeasurements = ((System.Windows.Controls.Button)(target));
- return;
- case 47:
- this.btnChooseWin = ((System.Windows.Controls.Button)(target));
-
- #line 245 "..\..\MainWindow.xaml"
- this.btnChooseWin.Click += new System.Windows.RoutedEventHandler(this.btnChooseWin_Click);
-
- #line default
- #line hidden
- return;
- case 48:
- this.btnStopCamera = ((System.Windows.Controls.Button)(target));
- return;
- case 49:
- this.btnExit = ((System.Windows.Controls.Button)(target));
- return;
- }
- this._contentLoaded = true;
- }
- }
-}
-
diff --git a/AffdexMe/obj/Release/MainWindow.g.i.cs b/AffdexMe/obj/Release/MainWindow.g.i.cs
deleted file mode 100644
index 4104055..0000000
--- a/AffdexMe/obj/Release/MainWindow.g.i.cs
+++ /dev/null
@@ -1,625 +0,0 @@
-#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B279F512EBDA81A09036AAE4C1816AE2"
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-
-
-namespace AffdexMe {
-
-
- ///
- /// MainWindow
- ///
- public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
-
-
- #line 123 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridMainDisplay;
-
- #line default
- #line hidden
-
-
- #line 125 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridContentDisplay;
-
- #line default
- #line hidden
-
-
- #line 128 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelImage;
-
- #line default
- #line hidden
-
-
- #line 130 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridAffdexFaceDisplay;
-
- #line default
- #line hidden
-
-
- #line 131 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Image imgAffdexFaceDisplay;
-
- #line default
- #line hidden
-
-
- #line 133 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Image imgAffdexLogoDisplay;
-
- #line default
- #line hidden
-
-
- #line 136 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Canvas canvasFacePoints;
-
- #line default
- #line hidden
-
-
- #line 137 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock interocularDistanceDisplay;
-
- #line default
- #line hidden
-
-
- #line 138 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock pitchDisplay;
-
- #line default
- #line hidden
-
-
- #line 139 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock yawDisplay;
-
- #line default
- #line hidden
-
-
- #line 140 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock rollDisplay;
-
- #line default
- #line hidden
-
-
- #line 145 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelClassifiersBackground;
-
- #line default
- #line hidden
-
-
- #line 148 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelClassifiers;
-
- #line default
- #line hidden
-
-
- #line 150 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridClassifierDisplay;
-
- #line default
- #line hidden
-
-
- #line 165 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel0;
-
- #line default
- #line hidden
-
-
- #line 166 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel0Name;
-
- #line default
- #line hidden
-
-
- #line 168 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel0ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 169 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel0Value;
-
- #line default
- #line hidden
-
-
- #line 173 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel1;
-
- #line default
- #line hidden
-
-
- #line 174 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel1Name;
-
- #line default
- #line hidden
-
-
- #line 176 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel1ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 177 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel1Value;
-
- #line default
- #line hidden
-
-
- #line 181 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel2;
-
- #line default
- #line hidden
-
-
- #line 182 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel2Name;
-
- #line default
- #line hidden
-
-
- #line 184 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel2ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 185 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel2Value;
-
- #line default
- #line hidden
-
-
- #line 189 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel3;
-
- #line default
- #line hidden
-
-
- #line 190 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel3Name;
-
- #line default
- #line hidden
-
-
- #line 192 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel3ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 193 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel3Value;
-
- #line default
- #line hidden
-
-
- #line 197 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel4;
-
- #line default
- #line hidden
-
-
- #line 198 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel4Name;
-
- #line default
- #line hidden
-
-
- #line 200 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel4ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 201 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel4Value;
-
- #line default
- #line hidden
-
-
- #line 205 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanel5;
-
- #line default
- #line hidden
-
-
- #line 206 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel5Name;
-
- #line default
- #line hidden
-
-
- #line 208 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel5ValueBackgroud;
-
- #line default
- #line hidden
-
-
- #line 209 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock stackPanel5Value;
-
- #line default
- #line hidden
-
-
- #line 215 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel stackPanelLogoBackground;
-
- #line default
- #line hidden
-
-
- #line 216 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid gridLogoBackground;
-
- #line default
- #line hidden
-
-
- #line 229 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Image imgAffdexLogoBackground;
-
- #line default
- #line hidden
-
-
- #line 241 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnStartCamera;
-
- #line default
- #line hidden
-
-
- #line 242 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnResetCamera;
-
- #line default
- #line hidden
-
-
- #line 243 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnShowPoints;
-
- #line default
- #line hidden
-
-
- #line 244 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnShowMeasurements;
-
- #line default
- #line hidden
-
-
- #line 245 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnChooseWin;
-
- #line default
- #line hidden
-
-
- #line 246 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnStopCamera;
-
- #line default
- #line hidden
-
-
- #line 247 "..\..\MainWindow.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnExit;
-
- #line default
- #line hidden
-
- private bool _contentLoaded;
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- public void InitializeComponent() {
- if (_contentLoaded) {
- return;
- }
- _contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/AffdexMe;component/mainwindow.xaml", System.UriKind.Relative);
-
- #line 1 "..\..\MainWindow.xaml"
- System.Windows.Application.LoadComponent(this, resourceLocater);
-
- #line default
- #line hidden
- }
-
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
- switch (connectionId)
- {
- case 1:
-
- #line 9 "..\..\MainWindow.xaml"
- ((AffdexMe.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
-
- #line default
- #line hidden
-
- #line 10 "..\..\MainWindow.xaml"
- ((AffdexMe.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
-
- #line default
- #line hidden
- return;
- case 2:
- this.gridMainDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 3:
- this.gridContentDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 4:
- this.stackPanelImage = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 5:
- this.gridAffdexFaceDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 6:
- this.imgAffdexFaceDisplay = ((System.Windows.Controls.Image)(target));
- return;
- case 7:
- this.imgAffdexLogoDisplay = ((System.Windows.Controls.Image)(target));
- return;
- case 8:
- this.canvasFacePoints = ((System.Windows.Controls.Canvas)(target));
- return;
- case 9:
- this.interocularDistanceDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 10:
- this.pitchDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 11:
- this.yawDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 12:
- this.rollDisplay = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 13:
- this.stackPanelClassifiersBackground = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 14:
- this.stackPanelClassifiers = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 15:
- this.gridClassifierDisplay = ((System.Windows.Controls.Grid)(target));
- return;
- case 16:
- this.stackPanel0 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 17:
- this.stackPanel0Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 18:
- this.stackPanel0ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 19:
- this.stackPanel0Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 20:
- this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 21:
- this.stackPanel1Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 22:
- this.stackPanel1ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 23:
- this.stackPanel1Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 24:
- this.stackPanel2 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 25:
- this.stackPanel2Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 26:
- this.stackPanel2ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 27:
- this.stackPanel2Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 28:
- this.stackPanel3 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 29:
- this.stackPanel3Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 30:
- this.stackPanel3ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 31:
- this.stackPanel3Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 32:
- this.stackPanel4 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 33:
- this.stackPanel4Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 34:
- this.stackPanel4ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 35:
- this.stackPanel4Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 36:
- this.stackPanel5 = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 37:
- this.stackPanel5Name = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 38:
- this.stackPanel5ValueBackgroud = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 39:
- this.stackPanel5Value = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 40:
- this.stackPanelLogoBackground = ((System.Windows.Controls.StackPanel)(target));
- return;
- case 41:
- this.gridLogoBackground = ((System.Windows.Controls.Grid)(target));
- return;
- case 42:
- this.imgAffdexLogoBackground = ((System.Windows.Controls.Image)(target));
- return;
- case 43:
- this.btnStartCamera = ((System.Windows.Controls.Button)(target));
- return;
- case 44:
- this.btnResetCamera = ((System.Windows.Controls.Button)(target));
- return;
- case 45:
- this.btnShowPoints = ((System.Windows.Controls.Button)(target));
- return;
- case 46:
- this.btnShowMeasurements = ((System.Windows.Controls.Button)(target));
- return;
- case 47:
- this.btnChooseWin = ((System.Windows.Controls.Button)(target));
-
- #line 245 "..\..\MainWindow.xaml"
- this.btnChooseWin.Click += new System.Windows.RoutedEventHandler(this.btnChooseWin_Click);
-
- #line default
- #line hidden
- return;
- case 48:
- this.btnStopCamera = ((System.Windows.Controls.Button)(target));
- return;
- case 49:
- this.btnExit = ((System.Windows.Controls.Button)(target));
- return;
- }
- this._contentLoaded = true;
- }
- }
-}
-
diff --git a/AffdexMe/obj/Release/MetricSelectionUI.g.cs b/AffdexMe/obj/Release/MetricSelectionUI.g.cs
deleted file mode 100644
index ea0f2df..0000000
--- a/AffdexMe/obj/Release/MetricSelectionUI.g.cs
+++ /dev/null
@@ -1,983 +0,0 @@
-#pragma checksum "..\..\MetricSelectionUI.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DD7E5A98ECDD3C1FE8EDEE3BC3CD4094"
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-using AffdexMe;
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-using WpfAnimatedGif;
-
-
-namespace AffdexMe {
-
-
- ///
- /// MetricSelectionUI
- ///
- public partial class MetricSelectionUI : System.Windows.Window, System.Windows.Markup.IComponentConnector {
-
-
- #line 10 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid theGrid;
-
- #line default
- #line hidden
-
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Anger;
-
- #line default
- #line hidden
-
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Disgust;
-
- #line default
- #line hidden
-
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Fear;
-
- #line default
- #line hidden
-
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Joy;
-
- #line default
- #line hidden
-
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Sadness;
-
- #line default
- #line hidden
-
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Surprise;
-
- #line default
- #line hidden
-
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Contempt;
-
- #line default
- #line hidden
-
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Valence;
-
- #line default
- #line hidden
-
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Engagement;
-
- #line default
- #line hidden
-
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Attention;
-
- #line default
- #line hidden
-
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel BrowFurrow;
-
- #line default
- #line hidden
-
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel BrowRaise;
-
- #line default
- #line hidden
-
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel ChinRaise;
-
- #line default
- #line hidden
-
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel EyeClosure;
-
- #line default
- #line hidden
-
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel InnerBrowRaise;
-
- #line default
- #line hidden
-
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Frown;
-
- #line default
- #line hidden
-
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel LipPress;
-
- #line default
- #line hidden
-
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel LipPucker;
-
- #line default
- #line hidden
-
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel LipSuck;
-
- #line default
- #line hidden
-
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel MouthOpen;
-
- #line default
- #line hidden
-
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel NoseWrinkle;
-
- #line default
- #line hidden
-
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Smile;
-
- #line default
- #line hidden
-
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Smirk;
-
- #line default
- #line hidden
-
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel UpperLipRaise;
-
- #line default
- #line hidden
-
-
- #line 304 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnClearAll;
-
- #line default
- #line hidden
-
-
- #line 305 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock txtBlkInfo;
-
- #line default
- #line hidden
-
-
- #line 306 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnOK;
-
- #line default
- #line hidden
-
- private bool _contentLoaded;
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- public void InitializeComponent() {
- if (_contentLoaded) {
- return;
- }
- _contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/AffdexMe;component/metricselectionui.xaml", System.UriKind.Relative);
-
- #line 1 "..\..\MetricSelectionUI.xaml"
- System.Windows.Application.LoadComponent(this, resourceLocater);
-
- #line default
- #line hidden
- }
-
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
- switch (connectionId)
- {
- case 1:
-
- #line 7 "..\..\MetricSelectionUI.xaml"
- ((AffdexMe.MetricSelectionUI)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
-
- #line default
- #line hidden
- return;
- case 2:
- this.theGrid = ((System.Windows.Controls.Grid)(target));
- return;
- case 3:
- this.Anger = ((System.Windows.Controls.StackPanel)(target));
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 4:
- this.Disgust = ((System.Windows.Controls.StackPanel)(target));
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 5:
- this.Fear = ((System.Windows.Controls.StackPanel)(target));
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 6:
- this.Joy = ((System.Windows.Controls.StackPanel)(target));
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 7:
- this.Sadness = ((System.Windows.Controls.StackPanel)(target));
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 8:
- this.Surprise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 9:
- this.Contempt = ((System.Windows.Controls.StackPanel)(target));
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 10:
- this.Valence = ((System.Windows.Controls.StackPanel)(target));
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 11:
- this.Engagement = ((System.Windows.Controls.StackPanel)(target));
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 12:
- this.Attention = ((System.Windows.Controls.StackPanel)(target));
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 13:
- this.BrowFurrow = ((System.Windows.Controls.StackPanel)(target));
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 14:
- this.BrowRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 15:
- this.ChinRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 16:
- this.EyeClosure = ((System.Windows.Controls.StackPanel)(target));
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 17:
- this.InnerBrowRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 18:
- this.Frown = ((System.Windows.Controls.StackPanel)(target));
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 19:
- this.LipPress = ((System.Windows.Controls.StackPanel)(target));
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 20:
- this.LipPucker = ((System.Windows.Controls.StackPanel)(target));
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 21:
- this.LipSuck = ((System.Windows.Controls.StackPanel)(target));
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 22:
- this.MouthOpen = ((System.Windows.Controls.StackPanel)(target));
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 23:
- this.NoseWrinkle = ((System.Windows.Controls.StackPanel)(target));
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 24:
- this.Smile = ((System.Windows.Controls.StackPanel)(target));
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 25:
- this.Smirk = ((System.Windows.Controls.StackPanel)(target));
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 26:
- this.UpperLipRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 27:
- this.btnClearAll = ((System.Windows.Controls.Button)(target));
-
- #line 304 "..\..\MetricSelectionUI.xaml"
- this.btnClearAll.Click += new System.Windows.RoutedEventHandler(this.btnClearAll_Click);
-
- #line default
- #line hidden
- return;
- case 28:
- this.txtBlkInfo = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 29:
- this.btnOK = ((System.Windows.Controls.Button)(target));
-
- #line 306 "..\..\MetricSelectionUI.xaml"
- this.btnOK.Click += new System.Windows.RoutedEventHandler(this.btnOK_Click);
-
- #line default
- #line hidden
- return;
- }
- this._contentLoaded = true;
- }
- }
-}
-
diff --git a/AffdexMe/obj/Release/MetricSelectionUI.g.i.cs b/AffdexMe/obj/Release/MetricSelectionUI.g.i.cs
deleted file mode 100644
index ea0f2df..0000000
--- a/AffdexMe/obj/Release/MetricSelectionUI.g.i.cs
+++ /dev/null
@@ -1,983 +0,0 @@
-#pragma checksum "..\..\MetricSelectionUI.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DD7E5A98ECDD3C1FE8EDEE3BC3CD4094"
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-using AffdexMe;
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-using WpfAnimatedGif;
-
-
-namespace AffdexMe {
-
-
- ///
- /// MetricSelectionUI
- ///
- public partial class MetricSelectionUI : System.Windows.Window, System.Windows.Markup.IComponentConnector {
-
-
- #line 10 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Grid theGrid;
-
- #line default
- #line hidden
-
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Anger;
-
- #line default
- #line hidden
-
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Disgust;
-
- #line default
- #line hidden
-
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Fear;
-
- #line default
- #line hidden
-
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Joy;
-
- #line default
- #line hidden
-
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Sadness;
-
- #line default
- #line hidden
-
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Surprise;
-
- #line default
- #line hidden
-
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Contempt;
-
- #line default
- #line hidden
-
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Valence;
-
- #line default
- #line hidden
-
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Engagement;
-
- #line default
- #line hidden
-
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Attention;
-
- #line default
- #line hidden
-
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel BrowFurrow;
-
- #line default
- #line hidden
-
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel BrowRaise;
-
- #line default
- #line hidden
-
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel ChinRaise;
-
- #line default
- #line hidden
-
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel EyeClosure;
-
- #line default
- #line hidden
-
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel InnerBrowRaise;
-
- #line default
- #line hidden
-
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Frown;
-
- #line default
- #line hidden
-
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel LipPress;
-
- #line default
- #line hidden
-
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel LipPucker;
-
- #line default
- #line hidden
-
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel LipSuck;
-
- #line default
- #line hidden
-
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel MouthOpen;
-
- #line default
- #line hidden
-
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel NoseWrinkle;
-
- #line default
- #line hidden
-
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Smile;
-
- #line default
- #line hidden
-
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel Smirk;
-
- #line default
- #line hidden
-
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.StackPanel UpperLipRaise;
-
- #line default
- #line hidden
-
-
- #line 304 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnClearAll;
-
- #line default
- #line hidden
-
-
- #line 305 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.TextBlock txtBlkInfo;
-
- #line default
- #line hidden
-
-
- #line 306 "..\..\MetricSelectionUI.xaml"
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
- internal System.Windows.Controls.Button btnOK;
-
- #line default
- #line hidden
-
- private bool _contentLoaded;
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- public void InitializeComponent() {
- if (_contentLoaded) {
- return;
- }
- _contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/AffdexMe;component/metricselectionui.xaml", System.UriKind.Relative);
-
- #line 1 "..\..\MetricSelectionUI.xaml"
- System.Windows.Application.LoadComponent(this, resourceLocater);
-
- #line default
- #line hidden
- }
-
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
- switch (connectionId)
- {
- case 1:
-
- #line 7 "..\..\MetricSelectionUI.xaml"
- ((AffdexMe.MetricSelectionUI)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
-
- #line default
- #line hidden
- return;
- case 2:
- this.theGrid = ((System.Windows.Controls.Grid)(target));
- return;
- case 3:
- this.Anger = ((System.Windows.Controls.StackPanel)(target));
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 42 "..\..\MetricSelectionUI.xaml"
- this.Anger.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 4:
- this.Disgust = ((System.Windows.Controls.StackPanel)(target));
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 50 "..\..\MetricSelectionUI.xaml"
- this.Disgust.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 5:
- this.Fear = ((System.Windows.Controls.StackPanel)(target));
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 58 "..\..\MetricSelectionUI.xaml"
- this.Fear.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 6:
- this.Joy = ((System.Windows.Controls.StackPanel)(target));
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 66 "..\..\MetricSelectionUI.xaml"
- this.Joy.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 7:
- this.Sadness = ((System.Windows.Controls.StackPanel)(target));
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 74 "..\..\MetricSelectionUI.xaml"
- this.Sadness.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 8:
- this.Surprise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 82 "..\..\MetricSelectionUI.xaml"
- this.Surprise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 9:
- this.Contempt = ((System.Windows.Controls.StackPanel)(target));
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 90 "..\..\MetricSelectionUI.xaml"
- this.Contempt.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 10:
- this.Valence = ((System.Windows.Controls.StackPanel)(target));
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 98 "..\..\MetricSelectionUI.xaml"
- this.Valence.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 11:
- this.Engagement = ((System.Windows.Controls.StackPanel)(target));
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 106 "..\..\MetricSelectionUI.xaml"
- this.Engagement.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 12:
- this.Attention = ((System.Windows.Controls.StackPanel)(target));
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 121 "..\..\MetricSelectionUI.xaml"
- this.Attention.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 13:
- this.BrowFurrow = ((System.Windows.Controls.StackPanel)(target));
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 129 "..\..\MetricSelectionUI.xaml"
- this.BrowFurrow.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 14:
- this.BrowRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 137 "..\..\MetricSelectionUI.xaml"
- this.BrowRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 15:
- this.ChinRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 145 "..\..\MetricSelectionUI.xaml"
- this.ChinRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 16:
- this.EyeClosure = ((System.Windows.Controls.StackPanel)(target));
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 153 "..\..\MetricSelectionUI.xaml"
- this.EyeClosure.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 17:
- this.InnerBrowRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 161 "..\..\MetricSelectionUI.xaml"
- this.InnerBrowRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 18:
- this.Frown = ((System.Windows.Controls.StackPanel)(target));
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 169 "..\..\MetricSelectionUI.xaml"
- this.Frown.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 19:
- this.LipPress = ((System.Windows.Controls.StackPanel)(target));
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 177 "..\..\MetricSelectionUI.xaml"
- this.LipPress.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 20:
- this.LipPucker = ((System.Windows.Controls.StackPanel)(target));
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 185 "..\..\MetricSelectionUI.xaml"
- this.LipPucker.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 21:
- this.LipSuck = ((System.Windows.Controls.StackPanel)(target));
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 193 "..\..\MetricSelectionUI.xaml"
- this.LipSuck.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 22:
- this.MouthOpen = ((System.Windows.Controls.StackPanel)(target));
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 201 "..\..\MetricSelectionUI.xaml"
- this.MouthOpen.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 23:
- this.NoseWrinkle = ((System.Windows.Controls.StackPanel)(target));
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 209 "..\..\MetricSelectionUI.xaml"
- this.NoseWrinkle.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 24:
- this.Smile = ((System.Windows.Controls.StackPanel)(target));
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 217 "..\..\MetricSelectionUI.xaml"
- this.Smile.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 25:
- this.Smirk = ((System.Windows.Controls.StackPanel)(target));
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 225 "..\..\MetricSelectionUI.xaml"
- this.Smirk.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 26:
- this.UpperLipRaise = ((System.Windows.Controls.StackPanel)(target));
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseEnter += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseEnter);
-
- #line default
- #line hidden
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);
-
- #line default
- #line hidden
-
- #line 233 "..\..\MetricSelectionUI.xaml"
- this.UpperLipRaise.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseLeave);
-
- #line default
- #line hidden
- return;
- case 27:
- this.btnClearAll = ((System.Windows.Controls.Button)(target));
-
- #line 304 "..\..\MetricSelectionUI.xaml"
- this.btnClearAll.Click += new System.Windows.RoutedEventHandler(this.btnClearAll_Click);
-
- #line default
- #line hidden
- return;
- case 28:
- this.txtBlkInfo = ((System.Windows.Controls.TextBlock)(target));
- return;
- case 29:
- this.btnOK = ((System.Windows.Controls.Button)(target));
-
- #line 306 "..\..\MetricSelectionUI.xaml"
- this.btnOK.Click += new System.Windows.RoutedEventHandler(this.btnOK_Click);
-
- #line default
- #line hidden
- return;
- }
- this._contentLoaded = true;
- }
- }
-}
-
diff --git a/AffdexMe/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/AffdexMe/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
deleted file mode 100644
index e69de29..0000000
diff --git a/AffdexMe/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/AffdexMe/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
deleted file mode 100644
index e69de29..0000000
diff --git a/AffdexMe/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/AffdexMe/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
deleted file mode 100644
index e69de29..0000000
diff --git a/AffdexMe/packages/WpfAnimatedGif.1.4.13/WpfAnimatedGif.1.4.13.nupkg b/AffdexMe/packages/WpfAnimatedGif.1.4.13/WpfAnimatedGif.1.4.13.nupkg
deleted file mode 100644
index 06f61b9..0000000
Binary files a/AffdexMe/packages/WpfAnimatedGif.1.4.13/WpfAnimatedGif.1.4.13.nupkg and /dev/null differ
diff --git a/AffdexMe/packages/WpfAnimatedGif.1.4.13/lib/net/WpfAnimatedGif.dll b/AffdexMe/packages/WpfAnimatedGif.1.4.13/lib/net/WpfAnimatedGif.dll
deleted file mode 100644
index 3f162ab..0000000
Binary files a/AffdexMe/packages/WpfAnimatedGif.1.4.13/lib/net/WpfAnimatedGif.dll and /dev/null differ
diff --git a/AffdexMe/packages/WpfAnimatedGif.1.4.13/lib/net/WpfAnimatedGif.xml b/AffdexMe/packages/WpfAnimatedGif.1.4.13/lib/net/WpfAnimatedGif.xml
deleted file mode 100644
index 6446577..0000000
--- a/AffdexMe/packages/WpfAnimatedGif.1.4.13/lib/net/WpfAnimatedGif.xml
+++ /dev/null
@@ -1,214 +0,0 @@
-
-
-
- WpfAnimatedGif
-
-
-
-
- Provides a way to pause, resume or seek a GIF animation.
-
-
-
-
- Returns the number of frames in the image.
-
-
-
-
- Returns a value that indicates whether the animation is paused.
-
-
-
-
- Returns a value that indicates whether the animation is complete.
-
-
-
-
- Seeks the animation to the specified frame index.
-
- The index of the frame to seek to
-
-
-
- Returns the current frame index.
-
-
-
-
- Pauses the animation.
-
-
-
-
- Starts or resumes the animation. If the animation is complete, it restarts from the beginning.
-
-
-
-
- Raised when the current frame changes.
-
-
-
-
- Finalizes the current object.
-
-
-
-
- Disposes the current object.
-
-
-
-
- Disposes the current object
-
- true to dispose both managed an unmanaged resources, false to dispose only managed resources
-
-
-
- Provides attached properties that display animated GIFs in a standard Image control.
-
-
-
-
- Gets the value of the AnimatedSource attached property for the specified object.
-
- The element from which to read the property value.
- The currently displayed animated image.
-
-
-
- Sets the value of the AnimatedSource attached property for the specified object.
-
- The element on which to set the property value.
- The animated image to display.
-
-
-
- Identifies the AnimatedSource attached property.
-
-
-
-
- Gets the value of the RepeatBehavior attached property for the specified object.
-
- The element from which to read the property value.
- The repeat behavior of the animated image.
-
-
-
- Sets the value of the RepeatBehavior attached property for the specified object.
-
- The element on which to set the property value.
- The repeat behavior of the animated image.
-
-
-
- Identifies the RepeatBehavior attached property.
-
-
-
-
- Gets the value of the AnimateInDesignMode attached property for the specified object.
-
- The element from which to read the property value.
- true if GIF animations are shown in design mode; false otherwise.
-
-
-
- Sets the value of the AnimateInDesignMode attached property for the specified object.
-
- The element on which to set the property value.
- true to show GIF animations in design mode; false otherwise.
-
-
-
- Identifies the AnimateInDesignMode attached property.
-
-
-
-
- Gets the value of the AutoStart attached property for the specified object.
-
- The element from which to read the property value.
- true if the animation should start immediately when loaded. Otherwise, false.
-
-
-
- Sets the value of the AutoStart attached property for the specified object.
-
- The element from which to read the property value.
- true if the animation should start immediately when loaded. Otherwise, false.
- The default value is true.
-
-
-
- Identifies the AutoStart attached property.
-
-
-
-
- Gets the animation controller for the specified Image control.
-
-
-
-
-
-
- Gets the value of the IsAnimationLoaded attached property for the specified object.
-
- The element from which to read the property value.
- true if the animation is loaded. Otherwise, false.
-
-
-
- Identifies the IsAnimationLoaded attached property.
-
-
-
-
- Identifies the AnimationLoaded attached event.
-
-
-
-
- Adds a handler for the AnimationLoaded attached event.
-
- The UIElement that listens to this event.
- The event handler to be added.
-
-
-
- Removes a handler for the AnimationLoaded attached event.
-
- The UIElement that listens to this event.
- The event handler to be removed.
-
-
-
- Identifies the AnimationCompleted attached event.
-
-
-
-
- Adds a handler for the AnimationCompleted attached event.
-
- The UIElement that listens to this event.
- The event handler to be added.
-
-
-
- Removes a handler for the AnimationCompleted attached event.
-
- The UIElement that listens to this event.
- The event handler to be removed.
-
-
-
- Single place to define version
-
-
-
-
diff --git a/AffdexMe/positive_valence.gif b/AffdexMe/positive_valence.gif
deleted file mode 100644
index c54c9d2..0000000
Binary files a/AffdexMe/positive_valence.gif and /dev/null differ
diff --git a/AffdexMe/positive_valence.jpg b/AffdexMe/positive_valence.jpg
deleted file mode 100644
index a9b04a9..0000000
Binary files a/AffdexMe/positive_valence.jpg and /dev/null differ
diff --git a/AffdexMe/sadness.gif b/AffdexMe/sadness.gif
deleted file mode 100644
index 856a0bb..0000000
Binary files a/AffdexMe/sadness.gif and /dev/null differ
diff --git a/AffdexMe/sadness.jpg b/AffdexMe/sadness.jpg
deleted file mode 100644
index c379aef..0000000
Binary files a/AffdexMe/sadness.jpg and /dev/null differ
diff --git a/AffdexMe/smile.gif b/AffdexMe/smile.gif
deleted file mode 100644
index 0e7c122..0000000
Binary files a/AffdexMe/smile.gif and /dev/null differ
diff --git a/AffdexMe/smile.jpg b/AffdexMe/smile.jpg
deleted file mode 100644
index 385e79a..0000000
Binary files a/AffdexMe/smile.jpg and /dev/null differ
diff --git a/AffdexMe/smirk.gif b/AffdexMe/smirk.gif
deleted file mode 100644
index 873adae..0000000
Binary files a/AffdexMe/smirk.gif and /dev/null differ
diff --git a/AffdexMe/smirk.jpg b/AffdexMe/smirk.jpg
deleted file mode 100644
index 8dbdabc..0000000
Binary files a/AffdexMe/smirk.jpg and /dev/null differ
diff --git a/AffdexMe/surprise.gif b/AffdexMe/surprise.gif
deleted file mode 100644
index ef2a90a..0000000
Binary files a/AffdexMe/surprise.gif and /dev/null differ
diff --git a/AffdexMe/surprise.jpg b/AffdexMe/surprise.jpg
deleted file mode 100644
index 4d4eb54..0000000
Binary files a/AffdexMe/surprise.jpg and /dev/null differ
diff --git a/AffdexMe/upper_lip_raise.gif b/AffdexMe/upper_lip_raise.gif
deleted file mode 100644
index 47ddb06..0000000
Binary files a/AffdexMe/upper_lip_raise.gif and /dev/null differ
diff --git a/AffdexMe/upper_lip_raise.jpg b/AffdexMe/upper_lip_raise.jpg
deleted file mode 100644
index 00adfe8..0000000
Binary files a/AffdexMe/upper_lip_raise.jpg and /dev/null differ
diff --git a/AffdexMe/valence.gif b/AffdexMe/valence.gif
deleted file mode 100644
index 6a87cb1..0000000
Binary files a/AffdexMe/valence.gif and /dev/null differ
diff --git a/AffdexMe/valence.jpg b/AffdexMe/valence.jpg
deleted file mode 100644
index a959ef5..0000000
Binary files a/AffdexMe/valence.jpg and /dev/null differ
diff --git a/README.md b/README.md
index 506b28a..ee5b62c 100644
--- a/README.md
+++ b/README.md
@@ -1,28 +1,68 @@
#Sample Apps for Affdex SDK for Windows
-Welcome to our repository on GitHub! Here you will find example code to get you started with our Affdex SDK 2.0 for Windows and begin emotion-enabling you own app! Documentation for the Windows SDK is at Affectiva's Developer Portal.
+Welcome to our repository on GitHub! Here you will find example code to get you started with our Affdex SDK 3.0 for Windows and begin emotion-enabling you own app! Documentation for the Windows SDK is at Affectiva's Developer Portal.
-OpenCV-webcam-demo
-------------------
+[![Build status](https://ci.appveyor.com/api/projects/status/pn2y9h8a3nnkiw41?svg=true)]
+(https://ci.appveyor.com/project/ahamino/win-sdk-samples)
-*Dependencies*
+Dependencies
+------------
-- Affdex SDK 2.0 (32 bit)
-- OpenCV for Windows 2.4.9: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.9/
+- Affdex SDK 3.0 (32 bit)
- Visual Studio 2013 or higher
-OpenCV-webcam-demo is a simple app that uses the camera connected to your PC to view your facial expressions and face points.
-In order to use the project, you will need to:
-- Contact Affectiva at sales@affectiva.com to obtain the SDK.
+*Additional dependencies for the C++ projects*
+
+- OpenCV 3.1
+- Boost 1.59
+
+Installation
+------------
+- Download Affdex SDK for windows [from here](http://developer.affectiva.com/downloads)
+- Sign up for an evaluation license [by submitting this form](http://www.affectiva.com/45-day-free-trial/)
- Install the SDK using MSI installer.
-- Download OpenCV package and extract it into ${SRC_ROOT}\opencv
-- Use affdex-win-samples.sln to build the sample app
+- The additional dependencies get installed automatically by NuGet.
-AffdexMe
---------
+OpenCV-webcam-demo (C++)
+------------------
-**AffdexMe** is a windows application that demonstrates the use of the Affdex SDK for Windows. It uses the camera on your Windows PC to view, process and analyze live video of your face. Start the app and you will see your own face on the screen, and metrics describing your expressions.
+Project for demoing the [FrameDetector class](http://developer.affectiva.com/v3/windows/analyze-frames/). It grabs frames from the camera, analyzes them and displays the results on screen.
-See AffdexMe/README.md for more information
+The following command line arguments can be used to run it:
+
+ -h [ --help ] Display this help message.
+ -d [ --data ] arg (=data) Path to the data folder
+ -l [ --license ] arg (=test.license) License file.
+ -r [ --resolution ] arg (=640 480) Resolution in pixels (2-values): width
+ height
+ --pfps arg (=30) Processing framerate.
+ --cfps arg (=30) Camera capture framerate.
+ --bufferLen arg (=30) process buffer size.
+ --cid arg (=0) Camera ID.
+ --faceMode arg (=0) Face detector mode (large faces vs small
+ faces).
+ --numFaces arg (=1) Number of faces to be tracked.
+ --draw arg (=1) Draw metrics on screen.
+
+Video-demo (c++)
+----------
+
+Project for demoing the Windows SDK [VideoDetector class](http://developer.affectiva.com/v3/windows/analyze-video/). It processs video files, displays the emotion metrics and exports the results in a csv file.
+
+The following command line arguments can be used to run it:
+
+ -h [ --help ] Display this help message.
+ -d [ --data ] arg (=data) Path to the data folder
+ -l [ --license ] arg (=test.license) License file.
+ -i [ --input ] arg Video file to processs
+ --pfps arg (=30) Processing framerate.
+ --draw arg (=1) Draw video on screen.
+ --faceMode arg (=1) Face detector mode (large faces vs small
+ faces).
+ --numFaces arg (=1) Number of faces to be tracked.
+ --loop arg (=0) Loop over the video being processed.
+
+
+For an example of how to use Affdex in a C# application .. please refer to [AffdexMe](https://github.com/affectiva/affdexme-win)
diff --git a/affdex-win-samples.sln b/affdex-win-samples.sln
index 6b925f4..76bce73 100644
--- a/affdex-win-samples.sln
+++ b/affdex-win-samples.sln
@@ -5,16 +5,27 @@ VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "opencv-webcam-demo", "opencv-webcam-demo\opencv-webcam-demo.vcxproj", "{8DCDC209-C25D-4C61-B2AC-2FBA1775DD6B}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AffdexMe", "AffdexMe\AffdexMe.csproj", "{5B893EA1-EB11-425A-BF8A-05822F5E2C9A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "video-demo", "video-demo\video-demo.vcxproj", "{5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Release|Mixed Platforms = Release|Mixed Platforms
Release|Win32 = Release|Win32
+ Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {8DCDC209-C25D-4C61-B2AC-2FBA1775DD6B}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {8DCDC209-C25D-4C61-B2AC-2FBA1775DD6B}.Release|Mixed Platforms.Build.0 = Release|Win32
{8DCDC209-C25D-4C61-B2AC-2FBA1775DD6B}.Release|Win32.ActiveCfg = Release|Win32
{8DCDC209-C25D-4C61-B2AC-2FBA1775DD6B}.Release|Win32.Build.0 = Release|Win32
- {5B893EA1-EB11-425A-BF8A-05822F5E2C9A}.Release|Win32.ActiveCfg = Release|Any CPU
+ {8DCDC209-C25D-4C61-B2AC-2FBA1775DD6B}.Release|x86.ActiveCfg = Release|Win32
+ {8DCDC209-C25D-4C61-B2AC-2FBA1775DD6B}.Release|x86.Build.0 = Release|Win32
+ {5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}.Release|Win32.ActiveCfg = Release|Win32
+ {5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}.Release|Win32.Build.0 = Release|Win32
+ {5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}.Release|x86.ActiveCfg = Release|Win32
+ {5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/common/AFaceListener.hpp b/common/AFaceListener.hpp
new file mode 100644
index 0000000..df8e64f
--- /dev/null
+++ b/common/AFaceListener.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "FaceListener.h"
+
+using namespace affdex;
+
+class AFaceListener : public FaceListener
+{
+ void onFaceFound(float timestamp, FaceId faceId)
+ {
+ std::cout << "Face id " << faceId << " found at timestamp " << timestamp << std::endl;
+ }
+ void onFaceLost(float timestamp, FaceId faceId)
+ {
+ std::cout << "Face id " << faceId << " lost at timestamp " << timestamp << std::endl;
+ }
+};
diff --git a/common/PlottingImageListener.hpp b/common/PlottingImageListener.hpp
new file mode 100644
index 0000000..cbf3638
--- /dev/null
+++ b/common/PlottingImageListener.hpp
@@ -0,0 +1,287 @@
+#pragma once
+
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
-
- Application
- true
- v120
- Unicode
-
Application
false
@@ -32,35 +25,15 @@
-
-
-
-
-
- true
+
+ 635eb584
false
-
-
-
-
- Level3
- Disabled
- WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
- true
- ..\affdex-sdk\include;..\opencv\build\include
-
-
- Console
- true
- ..\affdex-sdk\lib\affdex-sdk.lib;..\opencv\build\x86\vc12\lib\opencv_highgui2411d.lib;..\opencv\build\x86\vc12\lib\opencv_core2411d.lib;%(AdditionalDependencies)
-
-
Level3
@@ -71,20 +44,75 @@
true
WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
true
- C:\Program Files %28x86%29\Affectiva\Affdex SDK\include;..\opencv\build\include
+ C:\Program Files %28x86%29\Affectiva\Affdex SDK\include;../common/;%(AdditionalDependencies)
Console
true
true
true
- C:\Program Files (x86)\Affectiva\Affdex SDK\lib\release\affdex-native.lib;..\opencv\build\x86\vc12\lib\opencv_highgui249.lib;..\opencv\build\x86\vc12\lib\opencv_core249.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
+ C:\Program Files (x86)\Affectiva\Affdex SDK\lib\release\affdex-native.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
+
+ xcopy /d /y "C:\Program Files (x86)\Affectiva\Affdex SDK\bin\release\affdex-native.dll" "$(OutDir)"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
\ No newline at end of file
diff --git a/opencv-webcam-demo/opencv-webcam-demo.vcxproj.filters b/opencv-webcam-demo/opencv-webcam-demo.vcxproj.filters
index 0c04a10..96c9df8 100644
--- a/opencv-webcam-demo/opencv-webcam-demo.vcxproj.filters
+++ b/opencv-webcam-demo/opencv-webcam-demo.vcxproj.filters
@@ -19,4 +19,18 @@
Source Files
+
+
+
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
\ No newline at end of file
diff --git a/opencv-webcam-demo/opencv-webcam-demo.vcxproj.user b/opencv-webcam-demo/opencv-webcam-demo.vcxproj.user
index db4f958..dbeabab 100644
--- a/opencv-webcam-demo/opencv-webcam-demo.vcxproj.user
+++ b/opencv-webcam-demo/opencv-webcam-demo.vcxproj.user
@@ -1,7 +1,7 @@
-
-
-
- PATH=%PATH%;C:\Program Files (x86)\Affectiva\Affdex SDK\bin\release;..\opencv\build\x86\vc12\bin
- WindowsLocalDebugger
-
+
+
+
+ PATH=%PATH%;C:\Program Files (x86)\Affectiva\Affdex SDK\bin\release\;C:\Program Files (x86)\Affectiva\Affdex SDK\bin
+ WindowsLocalDebugger
+
\ No newline at end of file
diff --git a/opencv-webcam-demo/packages.config b/opencv-webcam-demo/packages.config
new file mode 100644
index 0000000..0c59163
--- /dev/null
+++ b/opencv-webcam-demo/packages.config
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/video-demo/packages.config b/video-demo/packages.config
new file mode 100644
index 0000000..0c59163
--- /dev/null
+++ b/video-demo/packages.config
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/video-demo/video-demo.cpp b/video-demo/video-demo.cpp
new file mode 100644
index 0000000..4e9d29d
--- /dev/null
+++ b/video-demo/video-demo.cpp
@@ -0,0 +1,181 @@
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+
+#include "VideoDetector.h"
+#include "AffdexException.h"
+
+#include "AFaceListener.hpp"
+#include "PlottingImageListener.hpp"
+#include "StatusListener.hpp"
+
+
+using namespace std;
+using namespace affdex;
+
+///
+/// Project demos how to use the Affdex Windows SDK VideoDetector
+///
+int main(int argsc, char ** argsv)
+{
+
+ //Defaults, overridden by the command line parameters
+ affdex::path DATA_FOLDER;
+ affdex::path LICENSE_PATH;
+ affdex::path videoPath;
+ int process_framerate = 30;
+ bool draw_display = true;
+ bool loop = false;
+ unsigned int nFaces = 1;
+ int faceDetectorMode = (int)FaceDetectorMode::SMALL_FACES;
+
+ const int precision = 2;
+ std::cerr.precision(precision);
+ std::cout.precision(precision);
+
+ namespace po = boost::program_options; // abbreviate namespace
+ po::options_description description("Project for demoing the Windows SDK VideoDetector class (processing video files).");
+ description.add_options()
+ ("help,h", po::bool_switch()->default_value(false), "Display this help message.")
+#ifdef _WIN32
+ ("data,d", po::wvalue< affdex::path >(&DATA_FOLDER)->default_value(affdex::path(L"data"), std::string("data")), "Path to the data folder")
+ ("license,l", po::wvalue< affdex::path >(&LICENSE_PATH)->default_value(affdex::path(L"test.license"), std::string("test.license")), "License file.")
+ ("input,i", po::wvalue< affdex::path >(&videoPath)->required(), "Video file to processs")
+#else // _WIN32
+ ("data,d", po::value< affdex::path >(&DATA_FOLDER)->default_value(affdex::path("data"), std::string("data")), "Path to the data folder")
+ ("license,l", po::value< affdex::path >(&LICENSE_PATH)->default_value(affdex::path("test.license"), std::string("test.license")), "License file.")
+ ("input,i", po::value< affdex::path >(&videoPath)->required(), "Video file to processs")
+#endif // _WIN32
+ ("pfps", po::value< int >(&process_framerate)->default_value(30), "Processing framerate.")
+ ("draw", po::value< bool >(&draw_display)->default_value(true), "Draw video on screen.")
+ ("faceMode", po::value< int >(&faceDetectorMode)->default_value((int)FaceDetectorMode::SMALL_FACES), "Face detector mode (large faces vs small faces).")
+ ("numFaces", po::value< unsigned int >(&nFaces)->default_value(1), "Number of faces to be tracked.")
+ ("loop", po::value< bool >(&loop)->default_value(false), "Loop over the video being processed.")
+ ;
+ po::variables_map args;
+ try
+ {
+ po::store(po::command_line_parser(argsc, argsv).options(description).run(), args);
+ if (args["help"].as())
+ {
+ std::cout << description << std::endl;
+ return 0;
+ }
+ po::notify(args);
+ }
+ catch (po::error& e)
+ {
+ std::cerr << "ERROR: " << e.what() << std::endl << std::endl;
+ std::cerr << "For help, use the -h option." << std::endl << std::endl;
+ return 1;
+ }
+
+ // Parse and check the data folder (with assets)
+ if (!boost::filesystem::exists(DATA_FOLDER))
+ {
+ std::cerr << "Data folder doesn't exist: " << std::string(DATA_FOLDER.begin(), DATA_FOLDER.end()) << std::endl;
+ std::cerr << "Try specifying the folder through the command line" << std::endl;
+ std::cerr << description << std::endl;
+ return 1;
+ }
+ try
+ {
+ //Initialize the video file detector
+ VideoDetector videoDetector(process_framerate, nFaces, (affdex::FaceDetectorMode) faceDetectorMode);
+
+ //Initialize out file
+ boost::filesystem::path csvPath(videoPath);
+ csvPath.replace_extension(".csv");
+ std::ofstream csvFileStream(csvPath.c_str());
+
+ if (!csvFileStream.is_open())
+ {
+ std::cerr << "Unable to open csv file " << csvPath << std::endl;
+ return 1;
+ }
+
+
+
+ std::cout << "Max num of faces set to: " << videoDetector.getMaxNumberFaces() << std::endl;
+ std::string mode;
+ switch (videoDetector.getFaceDetectorMode())
+ {
+ case FaceDetectorMode::LARGE_FACES:
+ mode = "LARGE_FACES";
+ break;
+ case FaceDetectorMode::SMALL_FACES:
+ mode = "SMALL_FACES";
+ break;
+ default:
+ break;
+ }
+
+ std::cout << "Face detector mode set to: " << mode << std::endl;
+ shared_ptr listenPtr(new PlottingImageListener(csvFileStream, draw_display));
+
+ //Activate all the detectors
+ videoDetector.setDetectAllEmotions(true);
+ videoDetector.setDetectAllExpressions(true);
+ videoDetector.setDetectGender(true);
+ videoDetector.setDetectGlasses(true);
+ //Set the location of the data folder and license file
+ videoDetector.setClassifierPath(DATA_FOLDER);
+ videoDetector.setLicensePath(LICENSE_PATH);
+ //Add callback functions implementations
+ videoDetector.setImageListener(listenPtr.get());
+
+
+ videoDetector.start(); //Initialize the detectors .. call only once
+
+ do
+ {
+ shared_ptr videoListenPtr = std::make_shared();
+ videoDetector.setProcessStatusListener(videoListenPtr.get());
+ videoDetector.process(videoPath); //Process a video
+
+ //For each frame processed
+ while (videoListenPtr->isRunning())
+ {
+ if (listenPtr->getDataSize() > 0)
+ {
+ std::pair > dataPoint = listenPtr->getData();
+ Frame frame = dataPoint.first;
+ std::map faces = dataPoint.second;
+
+
+ //Draw on the GUI
+ if (draw_display)
+ {
+ listenPtr->draw(faces, frame);
+ }
+
+ std::cerr << "timestamp: " << frame.getTimestamp()
+ << " cfps: " << listenPtr->getCaptureFrameRate()
+ << " pfps: " << listenPtr->getProcessingFrameRate()
+ << " faces: "<< faces.size() << endl;
+
+ //Output metrics to file
+ listenPtr->outputToFile(faces, frame.getTimestamp());
+ }
+ }
+ } while(loop);
+
+ videoDetector.stop();
+ csvFileStream.close();
+
+ std::cout << "Output written to file: " << csvPath << std::endl;
+ }
+ catch (AffdexException ex)
+ {
+ std::cerr << ex.what();
+ }
+
+ return 0;
+}
diff --git a/video-demo/video-demo.vcxproj b/video-demo/video-demo.vcxproj
new file mode 100644
index 0000000..f4d22c9
--- /dev/null
+++ b/video-demo/video-demo.vcxproj
@@ -0,0 +1,119 @@
+
+
+
+
+
+ Release
+ Win32
+
+
+
+ {5D5E4401-09DE-40D3-9E29-AFC4F2EF2C80}
+ Win32Proj
+ videodemo
+ ..\
+ true
+
+
+
+ Application
+ false
+ v120
+ true
+ Unicode
+
+
+
+
+
+
+
+
+ 5c6c3308
+
+
+ false
+
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
+ true
+ C:\Program Files %28x86%29\Affectiva\Affdex SDK\include;../common;%(AdditionalDependencies)
+
+
+ Console
+ true
+ true
+ true
+ C:\Program Files (x86)\Affectiva\Affdex SDK\lib\release\affdex-native.lib;%(AdditionalDependencies)
+
+
+ xcopy /d /y "C:\Program Files (x86)\Affectiva\Affdex SDK\bin\release\affdex-native.dll" "$(OutDir)"
+xcopy /d /y "C:\Program Files (x86)\Affectiva\Affdex SDK\bin\opencv_ffmpeg248.dll" "$(OutDir)"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
+
\ No newline at end of file
diff --git a/video-demo/video-demo.vcxproj.filters b/video-demo/video-demo.vcxproj.filters
new file mode 100644
index 0000000..a60a09a
--- /dev/null
+++ b/video-demo/video-demo.vcxproj.filters
@@ -0,0 +1,36 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;hm;inl;inc;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+
+
+ Source Files
+
+
+
+
+
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+
\ No newline at end of file