OdessaPCTestHelpers.FindDarkFramesHelper.FindDarkFramesHelper C# (CSharp) Method

FindDarkFramesHelper() public method

public FindDarkFramesHelper ( ) : System
return System
        public FindDarkFramesHelper()
        {
            MainModel.Initialize();

            /* REMED because we now use NLog
            if (logger = null)
            {
                Logger = new OdessaEngineV2HelperProject.LoggingHelper();
                Logger.InitLogger("Odessa_EngineFindDarkFramesUnitTest.log");
            }
            else
            {
                Logger = logger;
            }
            */

            const string root = @"D:\Projects\Odessa\Test Videos\trunk\";

            var validExtensions = MainModel.GetVideoExtensions();

            foreach (var filename in Directory.EnumerateFiles(root, "*.*", SearchOption.TopDirectoryOnly))
            {
                if (validExtensions.Contains(Path.GetExtension(filename).ToLowerInvariant()))
                {
                    AddInputFile(new FileInfo(filename));
                }
            }

            /*

            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_sample.MOV.highlight.00.00.00.to.00.00.11.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_sample.MOV.highlight.00.00.15.to.00.00.39.MOV")));
            // AddInputFile(new FileInfo(Path.Combine(root, @"Contour_allblack.MOV"))); // REMED because this is not a real world sample

            #region Boat tests
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_boat_001.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_boat_002.MP4")));
            #endregion

            #region Paddleboarding tests
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_014.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_015.MP4.highlight.00.00.00.to.00.00.18.MP4")));
            // REMED because I fall in the water and it's too dark
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0016.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_015.MP4.highlight.00.00.53.to.00.01.08.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_015.MP4.highlight.00.01.36.to.00.01.48.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_015.MP4.highlight.00.03.23.to.00.03.38.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_015.MP4.highlight.00.04.24.to.00.04.38.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_016.MP4.highlight.00.00.23.to.00.00.33.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_016.MP4.highlight.00.01.58.to.00.02.18.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_016.MP4.highlight.00.03.43.to.00.03.55.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_016.MP4.highlight.00.05.03.to.00.05.13.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_020.MP4.highlight.00.05.13.to.00.05.28.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_022.MP4.highlight.00.00.03.to.00.00.13.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_022.MP4.highlight.00.00.54.to.00.01.02.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_022.MP4.highlight.00.02.33.to.00.02.43.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_023.MP4.highlight.00.01.23.to.00.01.33.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_023.MP4.highlight.00.01.53.to.00.02.08.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_026.MP4.highlight.00.02.23.to.00.02.43.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.06.08.to.00.06.20.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.06.41.to.00.06.52.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.07.13.to.00.07.23.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.08.53.to.00.09.10.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.12.56.to.00.13.06.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.14.23.to.00.14.35.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.14.45.to.00.14.55.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_027.MP4.highlight.00.15.58.to.00.16.12.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_paddle_028.MP4.highlight.00.00.23.to.00.01.03.MP4")));
            #endregion

            #region Biking tests
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_bike_030_1.MP4.highlight.00.00.00.to.00.00.41.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_bike_030_2.MP4.highlight.00.00.00.to.00.00.11.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_bike_030_5.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_bike_030_6.MP4.highlight.00.00.00.to.00.00.18.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_bike_030_8.MP4")));
            #endregion

            #region Snow shade tests
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 2.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 3.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 5.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 6.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 7.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 8.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 9.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 10.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_false positive shade 11.MOV")));
            #endregion

            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_false positive gloves.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_false positive gloves 2.MP4")));

            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_speed.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_snowball fight.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_trev backside 180.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"Contour_snow_trevor 180.MOV")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_noah jump.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_stevens view from top.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_trev jump.MP4")));

            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_inside_1.MP4")));

            #region Kiting tests
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_kite_001.MP4.highlight.00.00.24.to.00.00.44.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_kite_001.MP4.highlight.00.01.24.to.00.01.44.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_kite_005.MP4.highlight.00.00.00.to.00.00.13.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_kite_006.MP4.highlight.00.00.00.to.00.00.18.MP4")));
            #endregion

            #region Snorkel tests
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snorkel_008.MP4.highlight.00.00.00.to.00.00.18.MP4")));
            #endregion

            #region Snowboarding tests
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_005.MP4.highlight.00.04.04.to.00.04.24.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_008.MP4.highlight.00.00.41.to.00.00.54.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_009.MP4.highlight.00.01.59.to.00.02.09.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_013.MP4.highlight.00.00.00.to.00.00.14.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_014.MP4.highlight.00.00.10.to.00.00.20.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_021.MP4.highlight.00.00.00.to.00.00.16.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_022.MP4.highlight.00.06.58.to.00.07.16.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_045.MP4.highlight.00.00.39.to.00.01.19.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_045.MP4.highlight.00.02.49.to.00.03.19.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_045.MP4.highlight.00.06.04.to.00.06.19.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_045.MP4.highlight.00.06.29.to.00.06.49.MP4")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_045.MP4.highlight.00.11.39.to.00.11.54.MP4")));
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR0_snow_057.MP4.highlight.00.04.48.to.00.05.08.MP4")));
            #endregion

            #region Gideon's webcam
            // for some reason we have a hard time detecting bookmarks in these videos. it may be specific to webcam so i'm excluding for now
            //AddInputFile(new FileInfo(Path.Combine(root, @"Gideon_webcam.m4v.highlight.00.03.09.to.00.03.25.m4v")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"Gideon_webcam.m4v.highlight.00.06.29.to.00.06.44.m4v")));
            //AddInputFile(new FileInfo(Path.Combine(root, @"Gideon_webcam.m4v.highlight.00.24.15.to.00.24.30.m4v")));
            #endregion

            #region Motorcycle
            AddInputFile(new FileInfo(Path.Combine(root, @"GOPR8417_marius.MP4")));
            #endregion

            */
        }