예제 #1
0
 public MainWindow()
 {
     rm = new RealsenseManager();
     InitializeComponent();
     rm.Init();
     rm.handDataChanged += HandDataChanged;
     DataContext         = this;
 }
예제 #2
0
 static void Main(string[] args)
 {
     rm = new RealsenseManager();
     rm.HandDataChanged += Rm_handDataChanged;
     rm.Init();
     Console.ReadLine();
     rm.Dispose();
 }
예제 #3
0
 public MainWindow()
 {
     InitializeComponent();
     rm = new RealsenseManager(true);
     rm.DataStreamUpdate += Rm_DataStreamUpdate;
     rm.HandDataChanged  += Rm_HandDataChanged;
     rm.Init();
 }
예제 #4
0
 public MainWindow()
 {
     InitializeComponent();
     rm = new RealsenseManager();
     rm.HandDataChanged += HandDataChanged;
     rm.Init();
     data        = new ViewModel.HandViewModel();
     DataContext = data;
 }
예제 #5
0
        public MainPage()
        {
            InitializeComponent();
            StartCameraCapture();
            rm = new RealsenseManager(true);
            rm.DataStreamUpdate += Rm_DataStreamUpdate;
            rm.HandDataChanged  += Rm_HandDataChanged;
            rm.Init();

            preditionEngine = new MLNetSignPrediction(MLNetClassifier.LightGBM, true);
        }
예제 #6
0
        public Form1()
        {
            InitializeComponent();
            rm = new RealsenseManager();
            rm.RGBImageRetreived   += Rm_RGBImageRetreived;
            rm.DepthImageRetreived += Rm_DepthImageRetreived;
            rm.HandDataChanged     += Rm_HandDataChanged;
            rm.DataStreamUpdate    += Rm_DataStreamUpdate;
            rm.ImageCaptured       += Rm_ImageCaptured;

            pb_ImgCam.Paint     += Pb_ImgCam_Paint;
            pb_DepthImage.Paint += Pb_DepthImage_Paint;

            renderRGB   = new D2D1Render();
            renderDepth = new D2D1Render();
            renderRGB.SetHWND(pb_ImgCam);
            renderDepth.SetHWND(pb_DepthImage);
            rm.Init();

            preditionEngine = new MLNetHierarchicalSignPrediciton(MLNetClassifier.LightGBM);
            InitiateDitionary();
        }