Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            Vision.Core.Init(new Vision.Windows.WindowsCore());

            //detector = new FaceDetector(new FaceDetectorXmlLoader());
            detector = new OpenFaceDetector();

            UpdateLib();

            CompositionTarget.Rendering += CompositionTarget_Rendering;
        }
Exemplo n.º 2
0
        public ModelViewer(Window wnd, EyeGazeModel model, FaceDetectionProvider prov)
        {
            InitializeComponent();

            viewControl = new ModelViewerControl(prov);
            Grid.Children.Add(viewControl);
            this.model = model;

            Owner = wnd;
            Title = model.SessionName;

            viewControl.Model = model;
            viewControl.Update();
        }