public ICU() { InitializeComponent(); current_frame_num1 = 0; current_frame_num2 = 0; F_E = new FeaturesExtraction(); knn = Serializer.Load <KNearestNeighbors>(Path.Combine(path, "knn7.bin")); RF = Serializer.Load <RandomForest>(Path.Combine(path, "RF7.bin")); LR = Serializer.Load <LogisticRegression>(Path.Combine(path, "LR7.bin")); SVM = Serializer.Load <SupportVectorMachine <Gaussian> >(Path.Combine(path, "SVM7.bin")); NB = Serializer.Load <NaiveBayes>(Path.Combine(path, "NB7.bin")); HMM = Serializer.Load <HiddenMarkovModel>(Path.Combine(path, "HMM_seq7.bin")); dataGridView1.RowTemplate.Height = 120; ((DataGridViewImageColumn)dataGridView1.Columns[0]).ImageLayout = DataGridViewImageCellLayout.Stretch; dataGridView1.Columns[1].Visible = false; }
/// <summary> /// Extract the features of the video using the extraction algortithm implimented /// in FeaturesExtraction class. /// </summary> /// <param name="Video_Path">Path of the video on the disk.</param> /// <param name="Features_Path">Path of the features on the disk.</param> /// <returns></returns> public void FeaturesExtraction(String Video_Path, String Features_Path) { FeaturesExtraction t = new FeaturesExtraction(); t.Extract_Featurers2(Video_Path, Features_Path); }