Beispiel #1
0
        public static void Main(string[] args)
        {
            //   /$$   /$$
            //  | $$  /$$/
            //  | $$ /$$/   /$$$$$$  /$$   /$$  /$$$$$$  /$$$$$$$
            //  | $$$$$/   /$$__  $$| $$  | $$ /$$__  $$| $$__  $$
            //  | $$  $$  | $$  \__/| $$  | $$| $$  \ $$| $$  \ $$
            //  | $$\  $$ | $$      | $$  | $$| $$  | $$| $$  | $$
            //  | $$ \  $$| $$      |  $$$$$$$|  $$$$$$/| $$  | $$
            //  |__/  \__/|__/       \____  $$ \______/ |__/  |__/
            //                       /$$  | $$
            //                      |  $$$$$$/
            //                       \______/

            // TODO: STAGE 1 - read and understand what this code is suppose to do //
            var paths = Enumerable.Range(1, 5)
                        .Select(i => $"demo-image-{i.ToString()}.jpeg");

            IOCRDataProcessorStartegy ocrDataProcessorStartegy = InitOCRDataProcessorStartegy();

            foreach (string path in paths)
            {
                Console.WriteLine("\nReading challenge file " + path + "...\n");
                var process = HandwritingAnalyzer.ReadHandwrittenText("./Image-files/" + path);
                process.Wait();
                JToken result = process.Result;
                // TODO: STAGE 2 - fix the code so it prints the wanted results //
                // WANT TO ANALYZE HUGE AMOUNTS OF TEXT
                // AND UTILIZE IT TO PARTICIPATE THE NEXT
                // INDUSTRIAL REVOLUTION?

                var tOCRProcess = ocrDataProcessorStartegy.RunTaskAsync(result, new OCRProcessData {
                    Provider = OCRProvider.Microsoft
                });
                tOCRProcess.Wait();
            }

            // TODO: STAGE 3 - find the connections between the outputs above //
            Console.WriteLine("\nCan you find the connection between the outputs above?");
            // Russian and American leaders in the 18th century

            // TODO: STAGE 4 - submit your answers, repo and CV, and join us for a cup of coffee //
            Console.WriteLine("\nSend us your solution with the github repo and your CV to [email protected] and wait for our call!\n");
            Console.ReadLine();
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            //   /$$   /$$
            //  | $$  /$$/
            //  | $$ /$$/   /$$$$$$  /$$   /$$  /$$$$$$  /$$$$$$$
            //  | $$$$$/   /$$__  $$| $$  | $$ /$$__  $$| $$__  $$
            //  | $$  $$  | $$  \__/| $$  | $$| $$  \ $$| $$  \ $$
            //  | $$\  $$ | $$      | $$  | $$| $$  | $$| $$  | $$
            //  | $$ \  $$| $$      |  $$$$$$$|  $$$$$$/| $$  | $$
            //  |__/  \__/|__/       \____  $$ \______/ |__/  |__/
            //                       /$$  | $$
            //                      |  $$$$$$/
            //                       \______/

            // TODO: STAGE 1 - read and understand what this code is suppose to do //
            string[] paths = { "demo-image-1.jpeg" };

            foreach (string path in paths)
            {
                Console.WriteLine("\nReading challenge file " + path + "...\n");
                var process = HandwritingAnalyzer.ReadHandwrittenText("./Image-files/" + path);
                process.Wait();
                JToken result = process.Result;
                // TODO: STAGE 2 - fix the code so it prints the wanted results //
                // WANT TO ANALYZE HUGE AMOUNTS OF TEXT
                // AND UTILIZE IT TO PARTICIPATE THE NEXT
                // INDUSTRIAL REVOLUTION?
                Console.WriteLine(result.ToString());
            }

            // TODO: STAGE 3 - find the connections between the outputs above //
            Console.WriteLine("\nCan you find the connection between the outputs above?");

            // TODO: STAGE 4 - submit your answers, repo and CV, and join us for a cup of coffee //
            Console.WriteLine("\nSend us your solution with the github repo and your CV to [email protected] and wait for our call!\n");
            Console.ReadLine();
        }