Пример #1
0
        private Task ThreadedCompute(RecognitionOptions ro)
        {
            Task task = new Task(() => {
                Mprc = new ManagerOfPatternRecognComputation {
                    ImageIn = pictureBox1.Image, RO = ro
                };

                Mprc.Computate();

                symbol = new Symbol((Figure <bool>)Mprc.PatternRecognResult.figureList.Last.Value);
            });

            task.Start();

            return(task);
        }
Пример #2
0
        private Task ThreadedCompute(RecognitionOptions ro)
        {
            Task task = new Task(() => {
                Mprc = new ManagerOfPatternRecognComputation {
                    ImageIn = pictureBox1.Image, RO = ro
                };

                Mprc.Computate();

                pictureBox2.Image = Mprc.ImageOut;
            });

            task.Start();

            return(task);
        }