Exemple #1
0
        private static void Main(string[] args)
        {
            Sdk.ConfigureLogging(TraceLevel.Warning, logToStdout: true);
            Sdk.ConfigureRecordLogging(TraceLevel.Warning, logToStdout: true);
            Sdk.ConfigureBodyTrackingLogging(TraceLevel.Warning, logToStdout: true);

            Console.WriteLine("Body tracking speed test on prerecorded video from Kinect for Azure device");

            var processingParameters = args.Length == 0
                ? AskProcessingParameters()
                : ParseCommandLineArguments(args);

            if (processingParameters == null)
            {
                PrintHowToUse();
                return;
            }

            Console.WriteLine();
            Process(processingParameters);

            if (args.Length == 0)
            {
                Console.WriteLine("Press any key to exit");
                Console.ReadKey();
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Sdk.ConfigureLogging(TraceLevel.Warning, logToStdout: true);
            Sdk.ConfigureRecordLogging(TraceLevel.Warning, logToStdout: true);

            Parser.Default.ParseArguments <Options>(args).WithParsed(Run);
        }