Example #1
0
        private static async Task BuildAndRunHiFromOCRImage(ImageReader reader, ImageCompiler compiler)
        {
            //process main image.
            var ocrProgram = await reader.GetText("../../../ocr.png");

            var compileResult = compiler.Compile(ocrProgram, "OCRAndRoslyn");

            if (compileResult)
            {
                //call the library
                var running = Process.Start("OCRAndRoslyn.exe");
                running.WaitForExit();
            }
        }
Example #2
0
        private static async Task BuildAndRunHiImage(ImageReader reader, ImageCompiler compiler)
        {
            //process main image.
            var hiProgram = await reader.GetText("../../../main.png");

            var compileResult = compiler.Compile(hiProgram, "Hi");

            if (compileResult)
            {
                //call the library
                var running = Process.Start("Hi.exe");
                running.WaitForExit();
            }
        }