static void Main()
        {
            // First compute features for all the images.
            // Comment the next 2 lines out if the images have not changed and you don't want to re-compute the features each run.
            var features = new ImageFeatures();
            features.ComputeImageFeatures();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ItemsModel model = new ItemsModel();
            model.PopulateFromStringsAndVectors(Form1.ReadLines(model.form1.folder + "Images.txt"), model.form1.data);
            ClassifierView cv = new ClassifierView();
            cv.DataContext = model;
            cv.ShowInForm("Image Classifer using Infer.NET");
        }
예제 #2
0
파일: Program.cs 프로젝트: mesgarpour/ERMER
        static void Main()
        {
            // First compute features for all the images.
            // Comment the next 2 lines out if the images have not changed and you don't want to re-compute the features each run.
            var features = new ImageFeatures();

            features.ComputeImageFeatures();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ItemsModel model = new ItemsModel();

            model.PopulateFromStringsAndVectors(Form1.ReadLines(model.form1.folder + "Images.txt"), model.form1.data);
            ClassifierView cv = new ClassifierView();

            cv.DataContext = model;
            cv.ShowInForm("Image Classifer using Infer.NET");
        }