コード例 #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            PreviewService.previewSetup();
            CortexCore.DecoderSetup();

            if (ConnectionService.ConnectCamera())
            {
                PreviewService.startPreview(previewFPS.HIGH);
            }
        }
コード例 #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.WindowState         = WindowState.Maximized;
            this.MainPageArea.Width  = SystemParameters.PrimaryScreenWidth;
            this.MainPageArea.Height = SystemParameters.PrimaryScreenHeight;

            Panel_stop.Visibility = Visibility.Collapsed;

            PreviewService.previewSetup();
            ImageProcessService.ImgProcessSetup();

            /// Load Yolo Model
            GV.ML_Folders[(int)MLFolders.ML_YOLO_model] = Environment.CurrentDirectory + MLFolders.ML_YOLO_model.GetDescription();
            if (!Directory.Exists(GV.ML_Folders[(int)MLFolders.ML_YOLO_model]))
            {
                Directory.CreateDirectory(GV.ML_Folders[(int)MLFolders.ML_YOLO_model]);
            }

            mYolo.LoadModel(GV.ML_Folders[(int)MLFolders.ML_YOLO_model]);

            PreviewService.startPreview(PreviewService.previewFPS.HIGH);
        }