コード例 #1
0
        public static void RunTestAutomation()
        {
            FaceBusinessForMoreTest.Initialize();
            FaceBusinessForMoreTest.SetXMLPath(@"C:\Users\Hoang\Documents\Visual Studio 2010\Projects\RollSystemMobile\RollSystemMobile\");
            FaceBusinessForMoreTest.SetTrainingFolderPath(@"C:\Users\Hoang\Documents\Visual Studio 2010\Projects\RollSystemMobile\RollSystemMobile\Content\Training Data");

            Console.WriteLine("Face Recognition More Automation Test");
            Console.WriteLine("============================================================================");
            Console.WriteLine("1. Find the required number of images to recognize all the student present.");
            Console.WriteLine("2. With the number of images acsending, find the number of student detected.");
            Console.WriteLine("============================================================================");

            Console.Write("Enter option: ");
            int option = int.Parse(Console.ReadLine());

            switch (option)
            {
            case 1: FindRequiredImageNumber(); break;

            case 2: FindAvarageStudentDetected(); break;

            default: Console.WriteLine("Good bye");
                break;
            }
        }