public MainWindow() { InitializeComponent(); Vision.Core.Init(new Vision.Windows.WindowsCore()); //detector = new FaceDetector(new FaceDetectorXmlLoader()); detector = new OpenFaceDetector(); UpdateLib(); CompositionTarget.Rendering += CompositionTarget_Rendering; }
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(); }